20 #ifndef __STDC_LIMIT_MACROS 21 # define __STDC_LIMIT_MACROS 23 #ifndef __STDC_CONSTANT_MACROS 24 # define __STDC_CONSTANT_MACROS 27 #include "objfw-defs.h" 29 #ifdef OF_HAVE_SYS_TYPES_H 30 # include <sys/types.h> 33 #import "OFJSONRepresentation.h" 34 #import "OFMessagePackRepresentation.h" 37 OF_ASSUME_NONNULL_BEGIN
56 @property (readonly, nonatomic)
signed char charValue;
118 + (instancetype)valueWithPointer: (const
void *)pointer OF_UNAVAILABLE;
119 + (instancetype)valueWithNonretainedObject: (
id)object OF_UNAVAILABLE;
120 + (instancetype)valueWithRange: (
OFRange)range OF_UNAVAILABLE;
121 + (instancetype)valueWithPoint: (
OFPoint)point OF_UNAVAILABLE;
122 + (instancetype)valueWithSize: (
OFSize)size OF_UNAVAILABLE;
123 + (instancetype)valueWithRect: (
OFRect)rect OF_UNAVAILABLE;
131 + (instancetype)numberWithBool: (
bool)value;
139 + (instancetype)numberWithChar: (
signed char)value;
147 + (instancetype)numberWithShort: (
short)value;
155 + (instancetype)numberWithInt: (
int)value;
163 + (instancetype)numberWithLong: (
long)value;
171 + (instancetype)numberWithLongLong: (
long long)value;
179 + (instancetype)numberWithUnsignedChar: (
unsigned char)value;
187 + (instancetype)numberWithUnsignedShort: (
unsigned short)value;
195 + (instancetype)numberWithUnsignedInt: (
unsigned int)value;
203 + (instancetype)numberWithUnsignedLong: (
unsigned long)value;
211 + (instancetype)numberWithUnsignedLongLong: (
unsigned long long)value;
219 + (instancetype)numberWithFloat: (
float)value;
227 + (instancetype)numberWithDouble: (
double)value;
235 - (instancetype)initWithBool: (
bool)value;
244 - (instancetype)initWithChar: (
signed char)value;
252 - (instancetype)initWithShort: (
short)value;
260 - (instancetype)initWithInt: (
int)value;
268 - (instancetype)initWithLong: (
long)value;
277 - (instancetype)initWithLongLong: (
long long)value;
286 - (instancetype)initWithUnsignedChar: (
unsigned char)value;
295 - (instancetype)initWithUnsignedShort: (
unsigned short)value;
304 - (instancetype)initWithUnsignedInt: (
unsigned int)value;
313 - (instancetype)initWithUnsignedLong: (
unsigned long)value;
322 - (instancetype)initWithUnsignedLongLong: (
unsigned long long)value;
330 - (instancetype)initWithFloat: (
float)value;
338 - (instancetype)initWithDouble: (
double)value;
349 OF_ASSUME_NONNULL_END
351 #if !defined(NSINTEGER_DEFINED) && !__has_feature(modules) 353 @compatibility_alias NSNumber
OFNumber;
double doubleValue
The OFNumber as a double.
Definition: OFNumber.h:111
A protocol for comparing objects.
Definition: OFObject.h:1388
float floatValue
The OFNumber as a float.
Definition: OFNumber.h:106
long longValue
The OFNumber as a long.
Definition: OFNumber.h:71
A protocol implemented by classes that support encoding to a JSON representation. ...
Definition: OFJSONRepresentation.h:49
A class for handling strings.
Definition: OFString.h:142
A rectangle.
Definition: OFObject.h:253
OFComparisonResult
A result of a comparison.
Definition: OFObject.h:58
unsigned long long unsignedLongLongValue
The OFNumber as an unsigned long long.
Definition: OFNumber.h:101
A protocol implemented by classes that support encoding to a MessagePack representation.
Definition: OFMessagePackRepresentation.h:33
short shortValue
The OFNumber as a short.
Definition: OFNumber.h:61
Provides a way to store a number in an object.
Definition: OFNumber.h:46
unsigned char unsignedCharValue
The OFNumber as an unsigned char.
Definition: OFNumber.h:81
int intValue
The OFNumber as an int.
Definition: OFNumber.h:66
A size.
Definition: OFObject.h:207
unsigned int unsignedIntValue
The OFNumber as an unsigned int.
Definition: OFNumber.h:91
A class for storing arbitrary values in an object.
Definition: OFValue.h:29
OFString * stringValue
The OFNumber as a string.
Definition: OFNumber.h:116
signed char charValue
The OFNumber as a signed char.
Definition: OFNumber.h:56
unsigned short unsignedShortValue
The OFNumber as an unsigned short.
Definition: OFNumber.h:86
unsigned long unsignedLongValue
The OFNumber as an unsigned long.
Definition: OFNumber.h:96
bool boolValue
The OFNumber as a bool.
Definition: OFNumber.h:51
A range.
Definition: OFObject.h:110
long long longLongValue
The OFNumber as a long long.
Definition: OFNumber.h:76
A point in 2D space.
Definition: OFObject.h:161