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
- (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) initWithUInt16: |
|
(uint16_t) |
uint16 |
|
|
Initializes an already allocated OFNumber with the specified uint16_t.
- Parameters:
-
| uint16 | A 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 | A 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 | A 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 | A uint8_t 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 | A uintmax_t which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithUIntPtr: |
|
(uintptr_t) |
uintptr |
|
|
Initializes an already allocated OFNumber with the specified uintptr_t.
- Parameters:
-
| uintptr | A uintptr_t which the OFNumber should contain |
- Returns:
- An initialized OFNumber
- (id) initWithUnsignedChar: |
|
(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) initWithUnsignedInt: |
|
(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) initWithUnsignedLong: |
|
(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) initWithUnsignedShort: |
|
(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
- Parameters:
-
- Returns:
- A new autoreleased OFNumber added with the specified OFNumber
ANDs two OFNumbers, returning a new one.
Does not work with floating point types!
- Parameters:
-
| num | The number to AND with. |
- Returns:
- A new autoreleased OFNumber ANDed with the specified OFNumber
- Returns:
- A new autoreleased OFNumber with the value decreased by one.
- Parameters:
-
- Returns:
- A new autoreleased OFNumber devided by the specified OFNumber
- Returns:
- A new autoreleased OFNumber with the value increased by one.
- Parameters:
-
- Returns:
- A new autoreleased OFNumber multiplied with the specified OFNumber
ORs two OFNumbers, returning a new one.
Does not work with floating point types!
- Parameters:
-
| num | The number to OR with. |
- Returns:
- A new autoreleased OFNumber ORed with the specified OFNumber
Bitshifts the OFNumber to the left by the specified OFNumber, returning a new one.
Does not work with floating point types!
- Parameters:
-
| num | The number of bits to shift to the left |
- Returns:
- A new autoreleased OFNumber bitshifted to the left with the specified OFNumber
Bitshifts the OFNumber to the right by the specified OFNumber, returning a new one.
Does not work with floating point types!
- Parameters:
-
| num | The number of bits to shift to the right |
- Returns:
- A new autoreleased OFNumber bitshifted to the right with the specified OFNumber
- Parameters:
-
- Returns:
- A new autoreleased OFNumber subtracted by the specified OFNumber
XORs two OFNumbers, returning a new one.
Does not work with floating point types!
- Parameters:
-
| num | The number to XOR with. |
- Returns:
- A new autoreleased OFNumber XORed with the specified 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) numberWithUInt16: |
|
(uint16_t) |
uint16 |
|
|
- Parameters:
-
| uint16 | A uint16_t which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithUInt32: |
|
(uint32_t) |
uint32 |
|
|
- Parameters:
-
| uint32 | A uint32_t which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithUInt64: |
|
(uint64_t) |
uint64 |
|
|
- Parameters:
-
| uint64 | A uint64_t which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithUInt8: |
|
(uint8_t) |
uint8 |
|
|
- Parameters:
-
| uint8 | A uint8_t which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithUIntMax: |
|
(uintmax_t) |
uintmax |
|
|
- Parameters:
-
| uintmax | A uintmax_t which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithUIntPtr: |
|
(uintptr_t) |
uintptr |
|
|
- Parameters:
-
| uintptr | A uintptr_t which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithUnsignedChar: |
|
(unsigned char) |
uchar |
|
|
- Parameters:
-
| uchar | An unsigned char which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithUnsignedInt: |
|
(unsigned int) |
uint |
|
|
- Parameters:
-
| uint | An unsigned int which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithUnsignedLong: |
|
(unsigned long) |
ulong |
|
|
- Parameters:
-
| ulong | An unsigned long which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
+ (id) numberWithUnsignedShort: |
|
(unsigned short) |
ushort |
|
|
- Parameters:
-
| ushort | An unsigned short which the OFNumber should contain |
- Returns:
- A new autoreleased OFNumber
- (ptrdiff_t) ptrDiffValue |
|
|
|
|
- (enum of_number_type) type |
|
|
|
|
- Returns:
- An enum of type of_number_type indicating the type of contained number of the OFNumber
- (uintmax_t) uIntMaxValue |
|
|
|
|
- (uintptr_t) uIntPtrValue |
|
|
|
|
- (unsigned char) unsignedCharValue |
|
|
|
|
- Returns:
- The OFNumber as an unsigned char
- (unsigned int) unsignedIntValue |
|
|
|
|
- (unsigned long) unsignedLongValue |
|
|
|
|
- Returns:
- The OFNumber as an unsigned long
- (unsigned short) unsignedShortValue |
|
|
|
|
- Returns:
- The OFNumber as an unsigned short
The documentation for this class was generated from the following files: