Nyx Node
|
Classes | |
struct | nyx_list_t |
Struct describing a JSON list. More... | |
struct | nyx_list_iter_t |
Macros | |
#define | NYX_LIST_ITER(object) |
Functions | |
nyx_list_t * | nyx_list_t::nyx_list_new () |
Allocates a new JSON list. | |
void | nyx_list_t::nyx_list_free (nyx_list_t *object) |
Frees memory of the provided JSON list object. | |
void | nyx_list_t::nyx_list_clear (nyx_list_t *object) |
Clears the content of the provided JSON list object. | |
void | nyx_list_t::nyx_list_del (nyx_list_t *object, int idx) |
bool | nyx_list_t::nyx_list_iterate (nyx_list_iter_t *iter, int *idx, nyx_object_t **object) |
nyx_object_t * | nyx_list_t::nyx_list_get (const nyx_list_t *object, int idx) |
__INLINE__ bool | nyx_list_t::nyx_list_push (nyx_list_t *object, buff_t value) |
size_t | nyx_list_t::nyx_list_size (const nyx_list_t *object) |
Gets the number of items in the provided JSON list object. | |
str_t | nyx_list_t::nyx_list_to_string (const nyx_list_t *object) |
Returns a string representing the provided JSON list object. | |
__INLINE__ double | nyx_list_t::nyx_list_get_number (const nyx_list_t *object, int idx) |
__INLINE__ STR_t | nyx_list_t::nyx_list_get_string (const nyx_list_t *object, int idx) |
#define NYX_LIST_ITER | ( | object | ) |
nyx_list_t * nyx_list_new | ( | ) |
Allocates a new JSON list.
void nyx_list_free | ( | nyx_list_t * | object | ) |
Frees memory of the provided JSON list object.
object | The provided JSON list object. |
void nyx_list_clear | ( | nyx_list_t * | object | ) |
Clears the content of the provided JSON list object.
object | The provided JSON dict object. |
void nyx_list_del | ( | nyx_list_t * | object, |
int | idx ) |
object | |
idx |
bool nyx_list_iterate | ( | nyx_list_iter_t * | iter, |
int * | idx, | ||
nyx_object_t ** | object ) |
iter | |
idx | |
object |
nyx_object_t * nyx_list_get | ( | const nyx_list_t * | object, |
int | idx ) |
object | |
idx |
__INLINE__ bool nyx_list_push | ( | nyx_list_t * | object, |
buff_t | value ) |
object | |
value |
size_t nyx_list_size | ( | const nyx_list_t * | object | ) |
Gets the number of items in the provided JSON list object.
object | The provided JSON list object. |
str_t nyx_list_to_string | ( | const nyx_list_t * | object | ) |
Returns a string representing the provided JSON list object.
object | The provided object. |
__INLINE__ double nyx_list_get_number | ( | const nyx_list_t * | object, |
int | idx ) |
object | |
idx |
__INLINE__ STR_t nyx_list_get_string | ( | const nyx_list_t * | object, |
int | idx ) |
object | |
idx |