Vuo  0.4.3
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Typedefs | Functions
VuoList_VuoInteger

Description

A list of VuoInteger elements.

Typedefs

typedef void * VuoList_VuoInteger
 A list of VuoInteger elements.
 

Functions

VuoList_VuoInteger VuoListCreate_VuoInteger (void)
 Creates a new list of VuoInteger elements.
 
VuoInteger VuoListGetValueAtIndex_VuoInteger (const VuoList_VuoInteger list, const unsigned long index)
 Returns the VuoInteger at index.
 
void VuoListAppendValue_VuoInteger (VuoList_VuoInteger list, const VuoInteger value)
 Appends value to list.
 
void VuoListRemoveLastValue_VuoInteger (VuoList_VuoInteger list)
 Removes the last value from list.
 
void VuoListRemoveAll_VuoInteger (VuoList_VuoInteger list)
 Removes all values from list.
 
unsigned long VuoListGetCount_VuoInteger (const VuoList_VuoInteger list)
 Returns the number of elements in list.
 
VuoList_VuoInteger VuoList_VuoInteger_valueFromString (const char *initializer)
 Parses the C string initializer to create a new list.
 
VuoList_VuoInteger VuoList_VuoInteger_valueFromJson (struct json_object *js)
 Parses the JSON object to create a new list.
 
char * VuoList_VuoInteger_stringFromValue (const VuoList_VuoInteger value)
 Serializes value as a C string.
 
struct json_object * VuoList_VuoInteger_jsonFromValue (const VuoList_VuoInteger value)
 Encodes value as a JSON object.
 
char * VuoList_VuoInteger_summaryFromValue (const VuoList_VuoInteger value)
 Produces a brief human-readable summary of value.
 

Function Documentation

struct json_object* VuoList_VuoInteger_jsonFromValue ( const VuoList_VuoInteger  value)
read

Encodes value as a JSON object.

Parameters
valueThe list to be encoded.
Returns
A JSON object containing an array of items.
char* VuoList_VuoInteger_stringFromValue ( const VuoList_VuoInteger  value)

Serializes value as a C string.

Parameters
valueThe list to be serialized.
Returns
A JSON string containing an array of items.
VuoList_VuoInteger VuoList_VuoInteger_valueFromJson ( struct json_object *  js)

Parses the JSON object to create a new list.

Parameters
jsA JSON object containing an array of items.
Returns
A list containing the items.
VuoList_VuoInteger VuoList_VuoInteger_valueFromString ( const char *  initializer)

Parses the C string initializer to create a new list.

Parameters
initializerA JSON string containing an array of items.
Returns
A list containing the items.
Example:
["uno", "dos", "tres", "catorce"]
VuoInteger VuoListGetValueAtIndex_VuoInteger ( const VuoList_VuoInteger  list,
const unsigned long  index 
)

Returns the VuoInteger at index.

Attempting to access an out-of-bounds index results in undefined behavior.