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
59@property (readonly, nonatomic)
signed char charValue;
148+ (instancetype)valueWithPointer: (const
void *)pointer OF_UNAVAILABLE;
149+ (instancetype)valueWithNonretainedObject: (
id)object OF_UNAVAILABLE;
150+ (instancetype)valueWithRange: (
OFRange)range OF_UNAVAILABLE;
151+ (instancetype)valueWithPoint: (
OFPoint)point OF_UNAVAILABLE;
152+ (instancetype)valueWithSize: (
OFSize)size OF_UNAVAILABLE;
153+ (instancetype)valueWithRect: (
OFRect)rect OF_UNAVAILABLE;
161+ (instancetype)numberWithBool: (
bool)value;
169+ (instancetype)numberWithChar: (
signed char)value;
177+ (instancetype)numberWithShort: (
short)value;
185+ (instancetype)numberWithInt: (
int)value;
193+ (instancetype)numberWithLong: (
long)value;
201+ (instancetype)numberWithLongLong: (
long long)value;
209+ (instancetype)numberWithUnsignedChar: (
unsigned char)value;
217+ (instancetype)numberWithUnsignedShort: (
unsigned short)value;
225+ (instancetype)numberWithUnsignedInt: (
unsigned int)value;
233+ (instancetype)numberWithUnsignedLong: (
unsigned long)value;
241+ (instancetype)numberWithUnsignedLongLong: (
unsigned long long)value;
249+ (instancetype)numberWithFloat: (
float)value;
257+ (instancetype)numberWithDouble: (
double)value;
265- (instancetype)initWithBool: (
bool)value;
274- (instancetype)initWithChar: (
signed char)value;
282- (instancetype)initWithShort: (
short)value;
290- (instancetype)initWithInt: (
int)value;
298- (instancetype)initWithLong: (
long)value;
307- (instancetype)initWithLongLong: (
long long)value;
316- (instancetype)initWithUnsignedChar: (
unsigned char)value;
325- (instancetype)initWithUnsignedShort: (
unsigned short)value;
334- (instancetype)initWithUnsignedInt: (
unsigned int)value;
343- (instancetype)initWithUnsignedLong: (
unsigned long)value;
352- (instancetype)initWithUnsignedLongLong: (
unsigned long long)value;
360- (instancetype)initWithFloat: (
float)value;
368- (instancetype)initWithDouble: (
double)value;
381#if !defined(NSINTEGER_DEFINED) && !__has_feature(modules)
383@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:107
long long longLongValue
The OFNumber as a long long.
Definition OFNumber.h:91
unsigned int unsignedIntValue
The OFNumber as an unsigned int.
Definition OFNumber.h:115
long longValue
The OFNumber as a long.
Definition OFNumber.h:83
double doubleValue
The OFNumber as a double.
Definition OFNumber.h:141
float floatValue
The OFNumber as a float.
Definition OFNumber.h:136
int intValue
The OFNumber as an int.
Definition OFNumber.h:75
OFString * stringValue
The OFNumber as a string.
Definition OFNumber.h:146
short shortValue
The OFNumber as a short.
Definition OFNumber.h:67
unsigned long unsignedLongValue
The OFNumber as an unsigned long.
Definition OFNumber.h:123
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:131
unsigned char unsignedCharValue
The OFNumber as an unsigned char.
Definition OFNumber.h:99
signed char charValue
The OFNumber as a signed char.
Definition OFNumber.h:59
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:1392
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