The base class for NXNumber instances.
More...
#import <Foundation/Foundation.h>
|
|
id | _zone |
| | The memory zone where the object is allocated.
|
| |
|
unsigned short | _retain |
| | The retain count of the object.
|
| |
|
id | _next |
| | The next object in an autorelease pool.
|
| |
| Class | isa |
| | A pointer to the object's class structure. More...
|
| |
The base class for NXNumber instances.
NXNumber represents a numeric value in the Foundation framework.
Definition at line 47 of file NXNumber.h.
◆ boolValue()
Returns the boolean value stored in this NXNumber instance.
- Returns
- The boolean value stored in this instance.
This method returns YES if the stored value is non-zero, NO otherwise.
◆ falseValue()
Returns a NXNumber instance representing the boolean value false.
- Returns
- A NXNumber instance with the value false.
◆ int16Value()
Returns the 16-bit signed integer value stored in this NXNumber instance.
- Returns
- The 16-bit signed integer value stored in this instance.
◆ int32Value()
Returns the 32-bit signed integer value stored in this NXNumber instance.
- Returns
- The 32-bit signed integer value stored in this instance.
◆ int64Value()
Returns the 64-bit signed integer value stored in this NXNumber instance.
- Returns
- The 64-bit signed integer value stored in this instance.
◆ numberWithBool:()
Creates a new NXNumber instance with a boolean value.
- Parameters
-
| value | The boolean value to wrap in the number instance. |
- Returns
- A new NXNumber instance containing the value.
◆ numberWithInt16:()
| + (NXNumber *) numberWithInt16: |
|
(int16_t) |
value |
|
Creates a new NXNumber instance with a 16-bit signed integer value.
- Parameters
-
| value | The 16-bit signed integer value to wrap in the number instance. |
- Returns
- A new NXNumber instance containing the value.
◆ numberWithInt32:()
| + (NXNumber *) numberWithInt32: |
|
(int32_t) |
value |
|
Creates a new NXNumber instance with a 32-bit signed integer value.
- Parameters
-
| value | The 32-bit signed integer value to wrap in the number instance. |
- Returns
- A new NXNumber instance containing the value.
◆ numberWithInt64:()
| + (NXNumber *) numberWithInt64: |
|
(int64_t) |
value |
|
Creates a new NXNumber instance with a 64-bit signed integer value.
- Parameters
-
| value | The 64-bit signed integer value to wrap in the number instance. |
- Returns
- A new NXNumber instance containing the value.
◆ numberWithUnsignedInt16:()
| + (NXNumber *) numberWithUnsignedInt16: |
|
(uint16_t) |
value |
|
Creates a new NXNumber instance with an unsigned 16-bit integer value.
- Parameters
-
| value | The 16-bit unsigned integer value to wrap in the number instance. |
- Returns
- A new NXNumber instance containing the value.
◆ numberWithUnsignedInt32:()
| + (NXNumber *) numberWithUnsignedInt32: |
|
(uint32_t) |
value |
|
Creates a new NXNumber instance with an unsigned 32-bit integer value.
- Parameters
-
| value | The 32-bit unsigned integer value to wrap in the number instance. |
- Returns
- A new NXNumber instance containing the value.
◆ numberWithUnsignedInt64:()
| + (NXNumber *) numberWithUnsignedInt64: |
|
(uint64_t) |
value |
|
Creates a new NXNumber instance with an unsigned 64-bit integer value.
- Parameters
-
| value | The 64-bit unsigned integer value to wrap in the number instance. |
- Returns
- A new NXNumber instance containing the value.
◆ trueValue()
Returns a NXNumber instance representing the boolean value true.
- Returns
- A NXNumber instance with the value true.
◆ unsignedInt16Value()
| - (uint16_t) unsignedInt16Value |
|
|
|
Returns the 16-bit unsigned integer value stored in this NXNumber instance.
- Returns
- The 16-bit unsigned integer value stored in this instance.
◆ unsignedInt32Value()
| - (uint32_t) unsignedInt32Value |
|
|
|
Returns the 32-bit unsigned integer value stored in this NXNumber instance.
- Returns
- The 32-bit unsigned integer value stored in this instance.
◆ unsignedInt64Value()
| - (uint64_t) unsignedInt64Value |
|
|
|
Returns the 64-bit unsigned integer value stored in this NXNumber instance.
- Returns
- The 64-bit unsigned integer value stored in this instance.
◆ zeroValue()
Return an instance of a zero value.
- Returns
- A statically allocated NXNumber instance representing zero.
The documentation for this class was generated from the following file: