36#ifndef __YTLIB_VALUE_H
37#define __YTLIB_VALUE_H
51ytObject * ytValue_char_ptr(
char * ptr);
55ytObject * ytValue_charPP(
char ** ptr);
65ytObject * ytValue_doubleP(
double * ptr);
66char * ytValue_to_char_ptr(
ytValue * obj);
68char * ytValue_objCharP(
ytObject * obj);
71void * ytValue_objVoidP(
ytObject * obj);
72void ytValue_setINT_PR(
ytObject * a,
int v);
73void ytValue_setUINT_PR(
ytObject * a,
unsigned int v);
74void ytValue_setDOUBLE_PR(
ytObject * a,
double v);
75void ytValue_setCHAR_PPR(
ytObject * a,
char * v);
ytType
Types supported by ytLib.
Definition: ytType.h:41
Wrapper class for primitive and other arbitrary types.
Definition: ytValue.h:41
void ytValue_doubleSet(ytObject *obj, double value)
Sets a double integer value in the ytType_DOUBLE ytObject instance.
Definition: ytValue.c:183
char * ytValue_strValue(const ytObject *obj)
Converts ytObjbect of type ytType_CHAR_P to char pointer.
Definition: ytValue.c:206
ytObject * ytValue_obj(ytValue *val)
Returns a ytObject pointer of the ytValue instance.
Definition: ytValue.c:65
ytObject * ytValue_double(double value)
Definition: ytValue.c:159
void ytValue_intSet(ytObject *obj, int value)
Sets an integer value in the ytType_INT ytObject instance.
Definition: ytValue.c:145
int ytValue_intValue(const ytObject *obj)
Returns integer value.
Definition: ytValue.c:134
ytObject * ytValue_str(char *ptr)
Returns the ytObject instance containing the given char pointer.
Definition: ytValue.c:193
ytObject * ytValue_strCopy(const char *ptr)
Returns the ytObject instance containing the copy of the given char pointer.
Definition: ytValue.c:198
ytObject * ytValue_size_t(size_t value)
Returns the ytObject instance representing the given size_t value.
Definition: ytValue.c:225
double ytValue_doubleValue(const ytObject *obj)
Returns a double value.
Definition: ytValue.c:172
ytObject * ytValue_int(int value)
Returns the ytObject representing the given integer value.
Definition: ytValue.c:121
void ytValue_delete(void *this)
Deletes the ytValue instance.
Definition: ytValue.c:260
ytObject * ytValue_newObject(void *ptr, ytType type)
Creates a new ytValue instance that wraps given value, and returns it as a pointer to ytObject.
Definition: ytValue.c:74
void * ytValue_ptr(ytObject *this)
Returns the pointer to which this ytValue instance points.
Definition: ytValue.c:84
size_t ytValue_size_tValue(const ytObject *obj)
Returns a size_t value of this object.
Definition: ytValue.c:235