Nyx Node
Loading...
Searching...
No Matches
Collaboration diagram for JSON List Object:

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_tnyx_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_tnyx_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)
 

Detailed Description

Macro Definition Documentation

◆ NYX_LIST_ITER

#define NYX_LIST_ITER ( object)
Value:
((nyx_list_iter_t) {.idx = 0, .type = ((nyx_list_t *) (object))->base.type, .head = ((nyx_list_t *) (object))->head})
Definition nyx_node.h:1258
Struct describing a JSON list.
Definition nyx_node.h:1247

Function Documentation

◆ nyx_list_new()

nyx_list_t * nyx_list_new ( )

Allocates a new JSON list.

Returns
The new JSON list.

◆ nyx_list_free()

void nyx_list_free ( nyx_list_t * object)

Frees memory of the provided JSON list object.

Parameters
objectThe provided JSON list object.

◆ nyx_list_clear()

void nyx_list_clear ( nyx_list_t * object)

Clears the content of the provided JSON list object.

Parameters
objectThe provided JSON dict object.

◆ nyx_list_del()

void nyx_list_del ( nyx_list_t * object,
int idx )
Parameters
object
idx

◆ nyx_list_iterate()

bool nyx_list_iterate ( nyx_list_iter_t * iter,
int * idx,
nyx_object_t ** object )
Parameters
iter
idx
object
Returns

◆ nyx_list_get()

nyx_object_t * nyx_list_get ( const nyx_list_t * object,
int idx )
Parameters
object
idx
Returns

◆ nyx_list_push()

__INLINE__ bool nyx_list_push ( nyx_list_t * object,
buff_t value )
Parameters
object
value
Returns

◆ nyx_list_size()

size_t nyx_list_size ( const nyx_list_t * object)

Gets the number of items in the provided JSON list object.

Parameters
objectThe provided JSON list object.
Returns
The number of items in the provided JSON list object.

◆ nyx_list_to_string()

str_t nyx_list_to_string ( const nyx_list_t * object)

Returns a string representing the provided JSON list object.

Parameters
objectThe provided object.
Returns
The string representing the provided JSON list object.

◆ nyx_list_get_number()

__INLINE__ double nyx_list_get_number ( const nyx_list_t * object,
int idx )
Parameters
object
idx
Returns

◆ nyx_list_get_string()

__INLINE__ STR_t nyx_list_get_string ( const nyx_list_t * object,
int idx )
Parameters
object
idx
Returns