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"
37OF_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;
351#if !defined(NSINTEGER_DEFINED) && !__has_feature(modules)
353@compatibility_alias NSNumber
OFNumber;
OFComparisonResult
A result of a comparison.
Definition OFObject.h:58
Provides a way to store a number in an object.
Definition OFNumber.h:47
unsigned short unsignedShortValue
The OFNumber as an unsigned short.
Definition OFNumber.h:86
long long longLongValue
The OFNumber as a long long.
Definition OFNumber.h:76
unsigned int unsignedIntValue
The OFNumber as an unsigned int.
Definition OFNumber.h:91
long longValue
The OFNumber as a long.
Definition OFNumber.h:71
double doubleValue
The OFNumber as a double.
Definition OFNumber.h:111
float floatValue
The OFNumber as a float.
Definition OFNumber.h:106
int intValue
The OFNumber as an int.
Definition OFNumber.h:66
OFString * stringValue
The OFNumber as a string.
Definition OFNumber.h:116
short shortValue
The OFNumber as a short.
Definition OFNumber.h:61
unsigned long unsignedLongValue
The OFNumber as an unsigned long.
Definition OFNumber.h:96
bool boolValue
The OFNumber as a bool.
Definition OFNumber.h:51
unsigned long long unsignedLongLongValue
The OFNumber as an unsigned long long.
Definition OFNumber.h:101
unsigned char unsignedCharValue
The OFNumber as an unsigned char.
Definition OFNumber.h:81
signed char charValue
The OFNumber as a signed char.
Definition OFNumber.h:56
A class for handling strings.
Definition OFString.h:143
A class for storing arbitrary values in an object.
Definition OFValue.h:29
A protocol for comparing objects.
Definition OFObject.h:1388
A protocol implemented by classes that support encoding to a JSON representation.
Definition OFJSONRepresentation.h:49
A protocol implemented by classes that support encoding to a MessagePack representation.
Definition OFMessagePackRepresentation.h:33
A point in 2D space.
Definition OFObject.h:161
A range.
Definition OFObject.h:110
A rectangle.
Definition OFObject.h:253
A size.
Definition OFObject.h:207