Vuo
1.2.6
|
A mapping from keys to values.
(To be replaced with a generic VuoDictionary type in the future.)
Classes | |
struct | VuoDictionary_VuoText_VuoText |
A mapping from keys to values. More... | |
struct VuoDictionary_VuoText_VuoText |
Class Members | ||
---|---|---|
VuoList_VuoText | keys | |
char | unused | |
VuoList_VuoText | values |
|
read |
Encodes the value as a JSON object.
char* VuoDictionary_VuoText_VuoText_getString | ( | const VuoDictionary_VuoText_VuoText | value | ) |
Automatically generated function.
char * VuoDictionary_VuoText_VuoText_getSummary | ( | const VuoDictionary_VuoText_VuoText | 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_getSummary().)
VuoDictionary_VuoText_VuoText VuoDictionary_VuoText_VuoText_makeFromJson | ( | json_object * | js | ) |
Decodes the JSON object to create a new value.
VuoDictionary_VuoText_VuoText VuoDictionary_VuoText_VuoText_makeFromString | ( | const char * | str | ) |
Automatically generated function.
void VuoDictionary_VuoText_VuoText_release | ( | VuoDictionary_VuoText_VuoText | value | ) |
Automatically generated function.
void VuoDictionary_VuoText_VuoText_retain | ( | VuoDictionary_VuoText_VuoText | value | ) |
Automatically generated function.
VuoDictionary_VuoText_VuoText VuoDictionaryCreate_VuoText_VuoText | ( | void | ) |
Creates an empty dictionary.
VuoDictionary_VuoText_VuoText VuoDictionaryCreateWithLists_VuoText_VuoText | ( | const VuoList_VuoText | keys, |
const VuoList_VuoText | values | ||
) |
Creates a dictionary consisting of the specified keys and values.
VuoText VuoDictionaryGetValueForKey_VuoText_VuoText | ( | VuoDictionary_VuoText_VuoText | d, |
VuoText | key | ||
) |
Returns the value mapped from key in the dictionary.
In order to match, key
must use the same Unicode character compositions as the dictionary's key.
void VuoDictionarySetKeyValue_VuoText_VuoText | ( | VuoDictionary_VuoText_VuoText | d, |
VuoText | key, | ||
VuoText | 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.)