ref.h
Functions | |
Allocates a ref pointing to the specified int value. | |
Allocates a ref pointing to the specified short value. | |
Allocates a ref pointing to the specified long value. | |
Allocates a ref pointing to the specified float value. | |
Allocates a ref pointing to the specified double value. | |
Allocates a ref pointing to the specified char value. | |
Allocates a ref pointing to the specified bool value. | |
Allocates a ref pointing to the specified unsigned value. | |
Allocates a ref pointing to the specified unsigned short value. | |
Allocates a ref pointing to the specified unsigned long value. | |
Allocates a ref pointing to the specified unsigned char value. | |
Returns the int to which this reference points. | |
Returns the short to which this reference points. | |
Returns the long to which this reference points. | |
Returns the float to which this reference points. | |
Returns the double to which this reference points. | |
Returns the char to which this reference points. | |
Returns the bool to which this reference points. | |
Returns the unsigned to which this reference points. | |
Returns the unsigned short to which this reference points. | |
Returns the unsigned long to which this reference points. | |
Returns the unsigned char to which this reference points. |
void *newRefInt(int value);
int
value.
Usage:
ref = newRefInt(value);
void *newRefShort(short value);
short
value.
Usage:
ref = newRefShort(value);
void *newRefLong(long value);
long
value.
Usage:
ref = newRefLong(value);
void *newRefFloat(float value);
float
value.
Usage:
ref = newRefFloat(value);
void *newRefDouble(double value);
double
value.
Usage:
ref = newRefDouble(value);
void *newRefChar(char value);
char
value.
Usage:
ref = newRefChar(value);
void *newRefBool(bool value);
bool
value.
Usage:
ref = newRefBool(value);
void *newRefUnsigned(unsigned value);
unsigned
value.
Usage:
ref = newRefUnsigned(value);
void *newRefUnsignedShort(unsigned short value);
unsigned short
value.
Usage:
ref = newRefUnsignedShort(value);
void *newRefUnsignedLong(unsigned long value);
unsigned long
value.
Usage:
ref = newRefUnsignedLong(value);
void *newRefUnsignedChar(unsigned char value);
unsigned char
value.
Usage:
ref = newRefUnsignedChar(value);
int refToInt(void *ref);
int
to which this reference points.
Usage:
i = refToInt(ref);
short refToShort(void *ref);
short
to which this reference points.
Usage:
s = refToShort(ref);
long refToLong(void *ref);
long
to which this reference points.
Usage:
l = refToLong(ref);
float refToFloat(void *ref);
float
to which this reference points.
Usage:
f = refToFloat(ref);
double refToDouble(void *ref);
double
to which this reference points.
Usage:
d = refToDouble(ref);
char refToChar(void *ref);
char
to which this reference points.
Usage:
c = refToChar(ref);
bool refToBool(void *ref);
bool
to which this reference points.
Usage:
b = refToBool(ref);
unsigned refToUnsigned(void *ref);
unsigned
to which this reference points.
Usage:
u = refToUnsigned(ref);
unsigned short refToUnsignedShort(void *ref);
unsigned short
to which this reference points.
Usage:
us = refToUnsignedShort(ref);
unsigned long refToUnsignedLong(void *ref);
unsigned long
to which this reference points.
Usage:
ul = refToUnsignedLong(ref);
unsigned char refToUnsignedChar(void *ref);
unsigned char
to which this reference points.
Usage:
uc = refToUnsignedChar(ref);