Nyx Node
|
Classes | |
struct | nyx_dict_t |
Struct describing a JSON dict. More... | |
struct | nyx_dict_iter_t |
Macros | |
#define | NYX_DICT_ITER(object) |
Functions | |
nyx_dict_t * | nyx_dict_t::nyx_dict_new () |
Allocates a new JSON dict object. | |
void | nyx_dict_t::nyx_dict_free (nyx_dict_t *object) |
Frees memory of the provided JSON dict object. | |
void | nyx_dict_t::nyx_dict_clear (nyx_dict_t *object) |
Clears the content of the provided JSON dict object. | |
void | nyx_dict_t::nyx_dict_del (nyx_dict_t *object, STR_t key) |
bool | nyx_dict_t::nyx_dict_iterate (nyx_dict_iter_t *iter, STR_t *key, nyx_object_t **object) |
nyx_object_t * | nyx_dict_t::nyx_dict_get (const nyx_dict_t *object, STR_t key) |
__INLINE__ bool | nyx_dict_t::nyx_dict_set (nyx_dict_t *object, STR_t key, buff_t value) |
size_t | nyx_dict_t::nyx_dict_size (const nyx_dict_t *object) |
Gets the number of items in the provided JSON dict object. | |
str_t | nyx_dict_t::nyx_dict_to_string (const nyx_dict_t *object) |
Returns a string representing the provided JSON dict object. | |
__INLINE__ double | nyx_dict_t::nyx_dict_get_number (const nyx_dict_t *object, STR_t key) |
__INLINE__ STR_t | nyx_dict_t::nyx_dict_get_string (const nyx_dict_t *object, STR_t key) |
#define NYX_DICT_ITER | ( | object | ) |
nyx_dict_t * nyx_dict_new | ( | ) |
Allocates a new JSON dict object.
void nyx_dict_free | ( | nyx_dict_t * | object | ) |
Frees memory of the provided JSON dict object.
object | The provided JSON dict object. |
void nyx_dict_clear | ( | nyx_dict_t * | object | ) |
Clears the content of the provided JSON dict object.
object | The provided JSON dict object. |
void nyx_dict_del | ( | nyx_dict_t * | object, |
STR_t | key ) |
object | |
key |
bool nyx_dict_iterate | ( | nyx_dict_iter_t * | iter, |
STR_t * | key, | ||
nyx_object_t ** | object ) |
iter | |
key | |
object |
nyx_object_t * nyx_dict_get | ( | const nyx_dict_t * | object, |
STR_t | key ) |
object | |
key |
__INLINE__ bool nyx_dict_set | ( | nyx_dict_t * | object, |
STR_t | key, | ||
buff_t | value ) |
object | |
key | |
value |
size_t nyx_dict_size | ( | const nyx_dict_t * | object | ) |
Gets the number of items in the provided JSON dict object.
object | The provided JSON dict object. |
str_t nyx_dict_to_string | ( | const nyx_dict_t * | object | ) |
Returns a string representing the provided JSON dict object.
object | The provided object. |
__INLINE__ double nyx_dict_get_number | ( | const nyx_dict_t * | object, |
STR_t | key ) |
object | |
key |
__INLINE__ STR_t nyx_dict_get_string | ( | const nyx_dict_t * | object, |
STR_t | key ) |
object | |
key |