CPNumber Class Reference
[Foundation]

List of all members.

Public Member Functions

(id) - initWithBool: [implementation]
(id) - initWithChar: [implementation]
(id) - initWithDouble: [implementation]
(id) - initWithFloat: [implementation]
(id) - initWithInt: [implementation]
(id) - initWithLong: [implementation]
(id) - initWithLongLong: [implementation]
(id) - initWithShort: [implementation]
(id) - initWithUnsignedChar: [implementation]
(id) - initWithUnsignedInt: [implementation]
(id) - initWithUnsignedLong: [implementation]
(id) - initWithUnsignedShort: [implementation]
(CPString- hash [implementation]
(BOOL) - boolValue [implementation]
(char) - charValue [implementation]
(CPDecimal) - decimalValue [implementation]
(CPString- descriptionWithLocale: [implementation]
(CPString- description [implementation]
(double) - doubleValue [implementation]
(float) - floatValue [implementation]
(int) - intValue [implementation]
(long long) - longLongValue [implementation]
(long) - longValue [implementation]
(short) - shortValue [implementation]
(CPString- stringValue [implementation]
(unsigned char) - unsignedCharValue [implementation]
(unsigned int) - unsignedIntValue [implementation]
(unsigned long) - unsignedLongValue [implementation]
(unsigned short) - unsignedShortValue [implementation]
(CPComparisonResult) - compare: [implementation]
(BOOL) - isEqualToNumber: [implementation]
(id) - initWithCoder: [implementation]
(void) - encodeWithCoder: [implementation]

Static Public Member Functions

(id) + numberWithBool: [implementation]
(id) + numberWithChar: [implementation]
(id) + numberWithDouble: [implementation]
(id) + numberWithFloat: [implementation]
(id) + numberWithInt: [implementation]
(id) + numberWithLong: [implementation]
(id) + numberWithLongLong: [implementation]
(id) + numberWithShort: [implementation]
(id) + numberWithUnsignedChar: [implementation]
(id) + numberWithUnsignedInt: [implementation]
(id) + numberWithUnsignedLong: [implementation]
(id) + numberWithUnsignedShort: [implementation]


Detailed Description

This class primarily exists for source compatability. The JavaScript Number type can be changed on the fly based on context, so there is no need to call any of these methods.

In other words, native JavaScript numbers are bridged to CPNumber, so you can use them interchangeably (including operators and methods).

Definition at line 40 of file CPNumber.j.


Member Function Documentation

- (BOOL) boolValue   [implementation]

Definition at line 197 of file CPNumber.j.

- (char) charValue   [implementation]

Definition at line 203 of file CPNumber.j.

- (CPComparisonResult) compare: (CPNumber aNumber   [implementation]

Definition at line 298 of file CPNumber.j.

- (CPDecimal) decimalValue   [implementation]

Definition at line 211 of file CPNumber.j.

- (CPString) description   [implementation]

Definition at line 223 of file CPNumber.j.

- (CPString) descriptionWithLocale: (CPDictionary aDictionary   [implementation]

Definition at line 216 of file CPNumber.j.

- (double) doubleValue   [implementation]

Definition at line 228 of file CPNumber.j.

- (void) encodeWithCoder: (CPCoder aCoder   [implementation]

Definition at line 320 of file CPNumber.j.

- (float) floatValue   [implementation]

Definition at line 234 of file CPNumber.j.

- (CPString) hash   [implementation]

Definition at line 189 of file CPNumber.j.

- (id) initWithBool: (BOOL)  aBoolean   [implementation]

Definition at line 118 of file CPNumber.j.

- (id) initWithChar: (char)  aChar   [implementation]

Definition at line 123 of file CPNumber.j.

- (id) initWithCoder: (CPCoder aCoder   [implementation]

Definition at line 315 of file CPNumber.j.

- (id) initWithDouble: (double)  aDouble   [implementation]

Definition at line 131 of file CPNumber.j.

- (id) initWithFloat: (float)  aFloat   [implementation]

Definition at line 136 of file CPNumber.j.

- (id) initWithInt: (int)  anInt   [implementation]

Definition at line 141 of file CPNumber.j.

- (id) initWithLong: (long)  aLong   [implementation]

Definition at line 146 of file CPNumber.j.

- (id) initWithLongLong: (long long)  aLongLong   [implementation]

Definition at line 151 of file CPNumber.j.

- (id) initWithShort: (short)  aShort   [implementation]

Definition at line 156 of file CPNumber.j.

- (id) initWithUnsignedChar: (unsigned char)  aChar   [implementation]

Definition at line 161 of file CPNumber.j.

- (id) initWithUnsignedInt: (unsigned)  anUnsignedInt   [implementation]

Definition at line 169 of file CPNumber.j.

- (id) initWithUnsignedLong: (unsigned long)  anUnsignedLong   [implementation]

Definition at line 174 of file CPNumber.j.

- (id) initWithUnsignedShort: (unsigned short)  anUnsignedShort   [implementation]

Definition at line 184 of file CPNumber.j.

- (int) intValue   [implementation]

Definition at line 240 of file CPNumber.j.

- (BOOL) isEqualToNumber: (CPNumber aNumber   [implementation]

Definition at line 306 of file CPNumber.j.

- (long long) longLongValue   [implementation]

Definition at line 246 of file CPNumber.j.

- (long) longValue   [implementation]

Definition at line 252 of file CPNumber.j.

+ (id) numberWithBool: (BOOL)  aBoolean   [implementation]

Definition at line 47 of file CPNumber.j.

+ (id) numberWithChar: (char)  aChar   [implementation]

Definition at line 52 of file CPNumber.j.

+ (id) numberWithDouble: (double)  aDouble   [implementation]

Definition at line 60 of file CPNumber.j.

+ (id) numberWithFloat: (float)  aFloat   [implementation]

Definition at line 65 of file CPNumber.j.

+ (id) numberWithInt: (int)  anInt   [implementation]

Definition at line 70 of file CPNumber.j.

+ (id) numberWithLong: (long)  aLong   [implementation]

Definition at line 75 of file CPNumber.j.

+ (id) numberWithLongLong: (long long)  aLongLong   [implementation]

Definition at line 80 of file CPNumber.j.

+ (id) numberWithShort: (short)  aShort   [implementation]

Definition at line 85 of file CPNumber.j.

+ (id) numberWithUnsignedChar: (unsigned char)  aChar   [implementation]

Definition at line 90 of file CPNumber.j.

+ (id) numberWithUnsignedInt: (unsigned)  anUnsignedInt   [implementation]

Definition at line 98 of file CPNumber.j.

+ (id) numberWithUnsignedLong: (unsigned long)  anUnsignedLong   [implementation]

Definition at line 103 of file CPNumber.j.

+ (id) numberWithUnsignedShort: (unsigned short)  anUnsignedShort   [implementation]

Definition at line 113 of file CPNumber.j.

- (short) shortValue   [implementation]

Definition at line 258 of file CPNumber.j.

- (CPString) stringValue   [implementation]

Definition at line 264 of file CPNumber.j.

- (unsigned char) unsignedCharValue   [implementation]

Definition at line 269 of file CPNumber.j.

- (unsigned int) unsignedIntValue   [implementation]

Definition at line 274 of file CPNumber.j.

- (unsigned long) unsignedLongValue   [implementation]

Definition at line 286 of file CPNumber.j.

- (unsigned short) unsignedShortValue   [implementation]

Definition at line 292 of file CPNumber.j.


The documentation for this class was generated from the following file:

Generated on Wed May 20 12:44:01 2009 for Cappuccino by  doxygen 1.5.8