OFNumber Class Reference
Provides a way to store a number in an object.
More...
#import <OFNumber.h>
List of all members.
Detailed Description
Provides a way to store a number in an object.
Member Function Documentation
- (unsigned char) asUChar |
|
|
|
|
- Returns:
- The OFNumber as an unsigned char
- (unsigned long) asULong |
|
|
|
|
- Returns:
- The OFNumber as an unsigned long
- (unsigned short) asUShort |
|
|
|
|
- Returns:
- The OFNumber as an unsigned short
- (id) initWithChar: |
|
(char) |
char_ |
|
|
Initializes an already allocated OFNumber with the specified char.
- Parameters:
-
| char_ | A char which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithDouble: |
|
(double) |
double_ |
|
|
Initializes an already allocated OFNumber with the specified double.
- Parameters:
-
| double_ | A double which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithFloat: |
|
(float) |
float_ |
|
|
Initializes an already allocated OFNumber with the specified float.
- Parameters:
-
| float_ | A float which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithInt16: |
|
(int16_t) |
int16 |
|
|
Initializes an already allocated OFNumber with the specified int16_t.
- Parameters:
-
| int16 | An int16_t which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithInt32: |
|
(int32_t) |
int32 |
|
|
Initializes an already allocated OFNumber with the specified int32_t.
- Parameters:
-
| int32 | An int32_t which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithInt64: |
|
(int64_t) |
int64 |
|
|
Initializes an already allocated OFNumber with the specified int64_t.
- Parameters:
-
| int64 | An int64_t which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithInt8: |
|
(int8_t) |
int8 |
|
|
Initializes an already allocated OFNumber with the specified int8_t.
- Parameters:
-
| int8 | An int8_t which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithInt: |
|
(int) |
int_ |
|
|
Initializes an already allocated OFNumber with the specified int.
- Parameters:
-
| int_ | An int which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithIntMax: |
|
(intmax_t) |
intmax |
|
|
Initializes an already allocated OFNumber with the specified intmax_t.
- Parameters:
-
| intmax | An intmax_t which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithIntPtr: |
|
(intptr_t) |
intptr |
|
|
Initializes an already allocated OFNumber with the specified intptr_t.
- Parameters:
-
| intptr | An intptr_t which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithLong: |
|
(long) |
long_ |
|
|
Initializes an already allocated OFNumber with the specified long.
- Parameters:
-
| long_ | A long which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithPtrDiff: |
|
(ptrdiff_t) |
ptrdiff |
|
|
Initializes an already allocated OFNumber with the specified ptrdiff_t.
- Parameters:
-
| ptrdiff | A ptrdiff_t which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithShort: |
|
(short) |
short_ |
|
|
Initializes an already allocated OFNumber with the specified short.
- Parameters:
-
| short_ | A short which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithSize: |
|
(size_t) |
size |
|
|
Initializes an already allocated OFNumber with the specified size_t.
- Parameters:
-
| size | A size_t which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithSSize: |
|
(ssize_t) |
ssize |
|
|
Initializes an already allocated OFNumber with the specified ssize_t.
- Parameters:
-
| ssize | An ssize_t which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithUChar: |
|
(unsigned char) |
uchar |
|
|
Initializes an already allocated OFNumber with the specified unsigned char.
- Parameters:
-
| uchar | An unsigned char which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithUInt16: |
|
(uint16_t) |
uint16 |
|
|
Initializes an already allocated OFNumber with the specified uint16_t.
- Parameters:
-
| uint16 | An uint16_t which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithUInt32: |
|
(uint32_t) |
uint32 |
|
|
Initializes an already allocated OFNumber with the specified uint32_t.
- Parameters:
-
| uint32 | An uint32_t which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithUInt64: |
|
(uint64_t) |
uint64 |
|
|
Initializes an already allocated OFNumber with the specified uint64_t.
- Parameters:
-
| uint64 | An uint64_t which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithUInt8: |
|
(uint8_t) |
uint8 |
|
|
Initializes an already allocated OFNumber with the specified uint8_t.
- Parameters:
-
| uint8 | An uint8_t which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithUInt: |
|
(unsigned int) |
uint |
|
|
Initializes an already allocated OFNumber with the specified unsigned int .
- Parameters:
-
| uint | An unsigned int which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithUIntMax: |
|
(uintmax_t) |
uintmax |
|
|
Initializes an already allocated OFNumber with the specified uintmax_t.
- Parameters:
-
| uintmax | An uintmax_t which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithULong: |
|
(unsigned long) |
ulong |
|
|
Initializes an already allocated OFNumber with the specified unsigned long.
- Parameters:
-
| ulong | An unsigned long which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithUShort: |
|
(unsigned short) |
ushort |
|
|
Initializes an already allocated OFNumber with the specified unsigned short.
- Parameters:
-
| ushort | An unsigned short which the OFNumber should contain |
- Returns:
- An initialized OFNumber
+ (id) numberWithChar: |
|
(char) |
char_ |
|
|
- Parameters:
-
| char_ | A char which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithDouble: |
|
(double) |
double_ |
|
|
- Parameters:
-
| double_ | A double which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithFloat: |
|
(float) |
float_ |
|
|
- Parameters:
-
| float_ | A float which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithInt16: |
|
(int16_t) |
int16 |
|
|
- Parameters:
-
| int16 | An int16_t which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithInt32: |
|
(int32_t) |
int32 |
|
|
- Parameters:
-
| int32 | An int32_t which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithInt64: |
|
(int64_t) |
int64 |
|
|
- Parameters:
-
| int64 | An int64_t which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithInt8: |
|
(int8_t) |
int8 |
|
|
- Parameters:
-
| int8 | An int8_t which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithInt: |
|
(int) |
int_ |
|
|
- Parameters:
-
| int_ | An int which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithIntMax: |
|
(intmax_t) |
intmax |
|
|
- Parameters:
-
| intmax | An intmax_t which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithIntPtr: |
|
(intptr_t) |
intptr |
|
|
- Parameters:
-
| intptr | An intptr_t which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithLong: |
|
(long) |
long_ |
|
|
- Parameters:
-
| long_ | A long which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithPtrDiff: |
|
(ptrdiff_t) |
ptrdiff |
|
|
- Parameters:
-
| ptrdiff | A ptrdiff_t which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithShort: |
|
(short) |
short_ |
|
|
- Parameters:
-
| short_ | A short which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithSize: |
|
(size_t) |
size |
|
|
- Parameters:
-
| size | A size_t which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithSSize: |
|
(ssize_t) |
ssize |
|
|
- Parameters:
-
| ssize | An ssize_t which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithUChar: |
|
(unsigned char) |
uchar |
|
|
- Parameters:
-
| uchar | An unsigned char which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithUInt16: |
|
(uint16_t) |
uint16 |
|
|
- Parameters:
-
| uint16 | An uint16_t which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithUInt32: |
|
(uint32_t) |
uint32 |
|
|
- Parameters:
-
| uint32 | An uint32_t which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithUInt64: |
|
(uint64_t) |
uint64 |
|
|
- Parameters:
-
| uint64 | An uint64_t which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithUInt8: |
|
(uint8_t) |
uint8 |
|
|
- Parameters:
-
| uint8 | An uint8_t which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithUInt: |
|
(unsigned int) |
uint |
|
|
- Parameters:
-
| uint | An unsigned int which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithUIntMax: |
|
(uintmax_t) |
uintmax |
|
|
- Parameters:
-
| uintmax | An uintmax_t which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithULong: |
|
(unsigned long) |
ulong |
|
|
- Parameters:
-
| ulong | An unsigned long which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithUShort: |
|
(unsigned short) |
ushort |
|
|
- Parameters:
-
| ushort | An unsigned short which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
- (enum of_number_type) type |
|
|
|
|
- Returns:
- An enum of type of_number_type indicating the type of contained number of the OFNumber
The documentation for this class was generated from the following files: