16#ifndef __STDC_LIMIT_MACROS
17# define __STDC_LIMIT_MACROS
19#ifndef __STDC_CONSTANT_MACROS
20# define __STDC_CONSTANT_MACROS
23#include "objfw-defs.h"
25#ifdef OF_HAVE_SYS_TYPES_H
26# include <sys/types.h>
29#import "OFJSONRepresentation.h"
30#import "OFMessagePackRepresentation.h"
33OF_ASSUME_NONNULL_BEGIN
52@property (readonly, nonatomic)
signed char charValue;
114+ (instancetype)valueWithPointer: (const
void *)pointer OF_UNAVAILABLE;
115+ (instancetype)valueWithNonretainedObject: (
id)object OF_UNAVAILABLE;
116+ (instancetype)valueWithRange: (
OFRange)range OF_UNAVAILABLE;
117+ (instancetype)valueWithPoint: (
OFPoint)point OF_UNAVAILABLE;
118+ (instancetype)valueWithSize: (
OFSize)size OF_UNAVAILABLE;
119+ (instancetype)valueWithRect: (
OFRect)rect OF_UNAVAILABLE;
127+ (instancetype)numberWithBool: (
bool)value;
135+ (instancetype)numberWithChar: (
signed char)value;
143+ (instancetype)numberWithShort: (
short)value;
151+ (instancetype)numberWithInt: (
int)value;
159+ (instancetype)numberWithLong: (
long)value;
167+ (instancetype)numberWithLongLong: (
long long)value;
175+ (instancetype)numberWithUnsignedChar: (
unsigned char)value;
183+ (instancetype)numberWithUnsignedShort: (
unsigned short)value;
191+ (instancetype)numberWithUnsignedInt: (
unsigned int)value;
199+ (instancetype)numberWithUnsignedLong: (
unsigned long)value;
207+ (instancetype)numberWithUnsignedLongLong: (
unsigned long long)value;
215+ (instancetype)numberWithFloat: (
float)value;
223+ (instancetype)numberWithDouble: (
double)value;
231- (instancetype)initWithBool: (
bool)value;
240- (instancetype)initWithChar: (
signed char)value;
248- (instancetype)initWithShort: (
short)value;
256- (instancetype)initWithInt: (
int)value;
264- (instancetype)initWithLong: (
long)value;
273- (instancetype)initWithLongLong: (
long long)value;
282- (instancetype)initWithUnsignedChar: (
unsigned char)value;
291- (instancetype)initWithUnsignedShort: (
unsigned short)value;
300- (instancetype)initWithUnsignedInt: (
unsigned int)value;
309- (instancetype)initWithUnsignedLong: (
unsigned long)value;
318- (instancetype)initWithUnsignedLongLong: (
unsigned long long)value;
326- (instancetype)initWithFloat: (
float)value;
334- (instancetype)initWithDouble: (
double)value;
347#if !defined(NSINTEGER_DEFINED) && !__has_feature(modules)
349@compatibility_alias NSNumber
OFNumber;
OFComparisonResult
A result of a comparison.
Definition OFObject.h:54
Provides a way to store a number in an object.
Definition OFNumber.h:43
unsigned short unsignedShortValue
The OFNumber as an unsigned short.
Definition OFNumber.h:82
long long longLongValue
The OFNumber as a long long.
Definition OFNumber.h:72
unsigned int unsignedIntValue
The OFNumber as an unsigned int.
Definition OFNumber.h:87
long longValue
The OFNumber as a long.
Definition OFNumber.h:67
double doubleValue
The OFNumber as a double.
Definition OFNumber.h:107
float floatValue
The OFNumber as a float.
Definition OFNumber.h:102
int intValue
The OFNumber as an int.
Definition OFNumber.h:62
OFString * stringValue
The OFNumber as a string.
Definition OFNumber.h:112
short shortValue
The OFNumber as a short.
Definition OFNumber.h:57
unsigned long unsignedLongValue
The OFNumber as an unsigned long.
Definition OFNumber.h:92
bool boolValue
The OFNumber as a bool.
Definition OFNumber.h:47
unsigned long long unsignedLongLongValue
The OFNumber as an unsigned long long.
Definition OFNumber.h:97
unsigned char unsignedCharValue
The OFNumber as an unsigned char.
Definition OFNumber.h:77
signed char charValue
The OFNumber as a signed char.
Definition OFNumber.h:52
A class for handling strings.
Definition OFString.h:135
A class for storing arbitrary values in an object.
Definition OFValue.h:25
A protocol for comparing objects.
Definition OFObject.h:1384
A protocol implemented by classes that support encoding to a JSON representation.
Definition OFJSONRepresentation.h:44
A protocol implemented by classes that support encoding to a MessagePack representation.
Definition OFMessagePackRepresentation.h:29
A point in 2D space.
Definition OFObject.h:157
A range.
Definition OFObject.h:106
A rectangle.
Definition OFObject.h:249
A size.
Definition OFObject.h:203