Vuo
0.9.0
|
A mapping from keys to values.
(To be replaced with a generic VuoDictionary type in the future.)
Classes | |
struct | VuoDictionary_VuoText_VuoReal |
A mapping from keys to values. More... | |
struct VuoDictionary_VuoText_VuoReal |
Class Members | ||
---|---|---|
VuoList_VuoText | keys | |
char | unused | |
VuoList_VuoReal | values |
|
read |
Encodes the value as a JSON object.
void VuoDictionary_VuoText_VuoReal_release | ( | VuoDictionary_VuoText_VuoReal | value | ) |
Automatically generated function.
void VuoDictionary_VuoText_VuoReal_retain | ( | VuoDictionary_VuoText_VuoReal | value | ) |
Automatically generated function.
char* VuoDictionary_VuoText_VuoReal_stringFromValue | ( | const VuoDictionary_VuoText_VuoReal | value | ) |
Automatically generated function.
char * VuoDictionary_VuoText_VuoReal_summaryFromValue | ( | const VuoDictionary_VuoText_VuoReal | d | ) |
Returns a brief description of the value.
(When this type is replaced with a generic VuoDictionary type, this function will be replaced with a nicer implementation, more like VuoList_summaryFromValue().)
VuoDictionary_VuoText_VuoReal VuoDictionary_VuoText_VuoReal_valueFromJson | ( | json_object * | js | ) |
Decodes the JSON object to create a new value.
VuoDictionary_VuoText_VuoReal VuoDictionary_VuoText_VuoReal_valueFromString | ( | const char * | str | ) |
Automatically generated function.
VuoDictionary_VuoText_VuoReal VuoDictionaryCreate_VuoText_VuoReal | ( | void | ) |
Creates an empty dictionary.
VuoList_VuoText VuoDictionaryGetKeys_VuoText_VuoReal | ( | VuoDictionary_VuoText_VuoReal | d | ) |
Returns the keys of the dictionary.
VuoReal VuoDictionaryGetValueForKey_VuoText_VuoReal | ( | VuoDictionary_VuoText_VuoReal | d, |
VuoText | key | ||
) |
Returns the value mapped from key in the dictionary.
void VuoDictionarySetKeyValue_VuoText_VuoReal | ( | VuoDictionary_VuoText_VuoReal | d, |
VuoText | key, | ||
VuoReal | value | ||
) |
Sets the value mapped from key in the dictionary to value.
(Currently, this only allows adding a key-value mapping, not changing an existing one. When this type is replaced with a generic VuoDictionary type, this function will allow the latter.)