CPNumber Class Reference
[Foundation]

A bridged object to native Javascript numbers. More...

List of all members.

Public Member Functions

(BOOL) - boolValue [implementation]
(char) - charValue [implementation]
(CPComparisonResult) - compare: [implementation]
(CPDecimal) - decimalValue [implementation]
(CPString- description [implementation]
(CPString- descriptionWithLocale: [implementation]
(double) - doubleValue [implementation]
(void) - encodeWithCoder: [implementation]
(float) - floatValue [implementation]
(id) - initWithBool: [implementation]
(id) - initWithChar: [implementation]
(id) - initWithCoder: [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]
(int) - intValue [implementation]
(BOOL) - isEqualToNumber: [implementation]
(long long) - longLongValue [implementation]
(long) - longValue [implementation]
(short) - shortValue [implementation]
(CPString- stringValue [implementation]
(CPString- UID [implementation]
(unsigned char) - unsignedCharValue [implementation]
(unsigned int) - unsignedIntValue [implementation]
(unsigned long) - unsignedLongValue [implementation]
(unsigned short) - unsignedShortValue [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

A bridged object to native Javascript numbers.

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 42 of file CPNumber.j.


Member Function Documentation

- (BOOL) boolValue   [implementation]

Definition at line 204 of file CPNumber.j.

- (char) charValue   [implementation]

Definition at line 210 of file CPNumber.j.

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

Definition at line 305 of file CPNumber.j.

- (CPDecimal) decimalValue   [implementation]

Definition at line 218 of file CPNumber.j.

- (CPString) description   [implementation]

Definition at line 230 of file CPNumber.j.

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

Definition at line 223 of file CPNumber.j.

- (double) doubleValue   [implementation]

Definition at line 235 of file CPNumber.j.

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

Definition at line 327 of file CPNumber.j.

- (float) floatValue   [implementation]

Definition at line 241 of file CPNumber.j.

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

Definition at line 120 of file CPNumber.j.

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

Definition at line 125 of file CPNumber.j.

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

Definition at line 322 of file CPNumber.j.

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

Definition at line 133 of file CPNumber.j.

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

Definition at line 138 of file CPNumber.j.

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

Definition at line 143 of file CPNumber.j.

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

Definition at line 148 of file CPNumber.j.

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

Definition at line 153 of file CPNumber.j.

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

Definition at line 158 of file CPNumber.j.

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

Definition at line 163 of file CPNumber.j.

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

Definition at line 171 of file CPNumber.j.

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

Definition at line 176 of file CPNumber.j.

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

Definition at line 186 of file CPNumber.j.

- (int) intValue   [implementation]

Definition at line 247 of file CPNumber.j.

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

Definition at line 313 of file CPNumber.j.

- (long long) longLongValue   [implementation]

Definition at line 253 of file CPNumber.j.

- (long) longValue   [implementation]

Definition at line 259 of file CPNumber.j.

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

Definition at line 49 of file CPNumber.j.

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

Definition at line 54 of file CPNumber.j.

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

Definition at line 62 of file CPNumber.j.

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

Definition at line 67 of file CPNumber.j.

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

Definition at line 72 of file CPNumber.j.

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

Definition at line 77 of file CPNumber.j.

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

Definition at line 82 of file CPNumber.j.

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

Definition at line 87 of file CPNumber.j.

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

Definition at line 92 of file CPNumber.j.

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

Definition at line 100 of file CPNumber.j.

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

Definition at line 105 of file CPNumber.j.

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

Definition at line 115 of file CPNumber.j.

- (short) shortValue   [implementation]

Definition at line 265 of file CPNumber.j.

- (CPString) stringValue   [implementation]

Definition at line 271 of file CPNumber.j.

- (CPString) UID   [implementation]

Definition at line 191 of file CPNumber.j.

- (unsigned char) unsignedCharValue   [implementation]

Definition at line 276 of file CPNumber.j.

- (unsigned int) unsignedIntValue   [implementation]

Definition at line 281 of file CPNumber.j.

- (unsigned long) unsignedLongValue   [implementation]

Definition at line 293 of file CPNumber.j.

- (unsigned short) unsignedShortValue   [implementation]

Definition at line 299 of file CPNumber.j.


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

Generated on Fri Apr 9 11:04:21 2010 for Cappuccino API by  doxygen 1.6.1