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

Classes

struct  nyx_boolean_t
 Struct describing a JSON boolean. More...
 

Functions

nyx_boolean_tnyx_boolean_t::nyx_boolean_new ()
 Allocates a new JSON boolean object.
 
void nyx_boolean_t::nyx_boolean_free (nyx_boolean_t *object)
 Frees memory of the provided JSON boolean object.
 
bool nyx_boolean_t::nyx_boolean_get (const nyx_boolean_t *object)
 Get the value of the provided JSON boolean object.
 
__INLINE__ bool nyx_boolean_t::nyx_boolean_set (nyx_boolean_t *object, bool value)
 Set the value of the provided JSON boolean object.
 
str_t nyx_boolean_t::nyx_boolean_to_string (const nyx_boolean_t *object)
 Returns a string representing the provided JSON boolean object.
 
__INLINE__ nyx_boolean_tnyx_boolean_t::nyx_boolean_from (bool value)
 Returns a JSON boolean object holding the value of the provided argument.
 

Detailed Description

Function Documentation

◆ nyx_boolean_new()

nyx_boolean_t * nyx_boolean_new ( )

Allocates a new JSON boolean object.

Returns
The new JSON boolean.

◆ nyx_boolean_free()

void nyx_boolean_free ( nyx_boolean_t * object)

Frees memory of the provided JSON boolean object.

Parameters
objectThe provided JSON boolean object.

◆ nyx_boolean_get()

bool nyx_boolean_get ( const nyx_boolean_t * object)

Get the value of the provided JSON boolean object.

Parameters
objectThe provided JSON boolean object.
Returns
The value of the provided JSON boolean object.

◆ nyx_boolean_set()

__INLINE__ bool nyx_boolean_set ( nyx_boolean_t * object,
bool value )

Set the value of the provided JSON boolean object.

Parameters
objectThe provided JSON boolean object.
valueThe value for the provided JSON boolean object.
Returns
true if the value was modified, false otherwise.

◆ nyx_boolean_to_string()

str_t nyx_boolean_to_string ( const nyx_boolean_t * object)

Returns a string representing the provided JSON boolean object.

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

◆ nyx_boolean_from()

__INLINE__ nyx_boolean_t * nyx_boolean_from ( bool value)

Returns a JSON boolean object holding the value of the provided argument.

Parameters
valueThe value for the new JSON boolean object.
Returns
The new JSON boolean object.