143 static inline int64_t
154 static inline uint64_t
Definition: CNNumber.h:27
struct CNNumber * CNAllocateUnsignedIntegerNumber(uint64_t value, struct CNResource *resource)
Allocate CNNumber object witl unsigned integer value.
Number data class.
Definition: CNNumber.h:37
double floatValue
Definition: CNNumber.h:51
struct CNNumber * CNAllocateSignedIntegerNumber(int64_t value, struct CNResource *resource)
Allocate CNNumber object witl signed integer value.
Root object.
Definition: CNObject.h:38
static double CNFloatNumber(const struct CNNumber *src)
Get floating point value in number object.
Definition: CNNumber.h:166
CNNumberType
Type of the context of the CNNumber.
Definition: CNNumber.h:23
static struct CNObject * CNObjectOfNumber(struct CNNumber *src)
Get super class of CNNumber.
Definition: CNNumber.h:111
void CNPrintNumber(FILE *outfp, const struct CNNumber *src)
Print number to the file.
int64_t signedIntegerValue
Definition: CNNumber.h:47
CNBoolean booleanValue
Definition: CNNumber.h:45
struct CNString * CNNumberToString(struct CNNumber *src, struct CNResource *resource)
Get string which presents the value of source number.
static CNBoolean CNBooleanNumber(const struct CNNumber *src)
Get boolean value in number object.
Definition: CNNumber.h:133
uint64_t unsignedIntegerValue
Definition: CNNumber.h:49
struct CNObject superClass
Definition: CNNumber.h:39
Fixed size string class.
Definition: CNString.h:27
Define CNObject data structure.
Methods for CNNumber class.
Definition: CNNumber.h:17
static int64_t CNSignedIntegerNumber(const struct CNNumber *src)
Get signed integer value in number object.
Definition: CNNumber.h:144
Definition: CNNumber.h:25
Methods for CNObject.
Definition: CNObject.h:29
static CNNumberType CNTypeOfNumber(const struct CNNumber *src)
Get context data of CNNumber.
Definition: CNNumber.h:122
Define primitive data types.
struct CNObjectMethods superClass
Definition: CNNumber.h:19
void CNReleaseObject(struct CNObject *dst)
Release the object.
Definition: CNNumber.h:31
static uint64_t CNUnsignedIntegerNumber(const struct CNNumber *src)
Get unsigned integer value in number object.
Definition: CNNumber.h:155
struct CNNumber * CNAllocateFloatNumber(double value, struct CNResource *resource)
Allocate CNNumber object witl floating value.
struct CNNumber * CNAllocateBooleanNumber(CNBoolean value, struct CNResource *resource)
Allocate CNNumber object witl boolean value.
Definition: CNNumber.h:29
unsigned int CNBoolean
Boolean type.
Definition: CNType.h:14
static void CNReleaseNumber(struct CNNumber *dst)
Release CNNumber object.
Definition: CNNumber.h:100
CNNumberType numberType
Definition: CNNumber.h:41