|
Kiwi Engine
VM for interpreter
|
Dictionary of KEValue objects. More...
Go to the source code of this file.
Data Structures | |
| struct | KEDictionary |
| Dictionary class. The key is CNString and the value is KEValue. More... | |
Macros | |
| #define | KESizeOfDictionaryHashTable 64 |
Functions | |
| struct KEDictionary * | KEAllocateDictionary (struct CNResource *resource) |
| Allocate dictionary. More... | |
| void | KESetValueToDictionary (struct KEDictionary *dst, struct CNString *key, struct KEValue *val) |
| Set value to dictionary. More... | |
| struct KEValue * | KEValueInDictionary (struct KEDictionary *src, struct CNString *key) |
| Get value in the dictionary by the key. More... | |
| struct CNObjectList | KEKeysInDictionary (struct KEDictionary *src, struct CNResource *resource) |
| Get string keys from dictionary. More... | |
| void | KEDumpDictionary (struct CNText *outbuf, struct KEDictionary *src) |
| Dump all elements in value dictionary. More... | |
Dictionary of KEValue objects.
| #define KESizeOfDictionaryHashTable 64 |
The size of hash table in the KEDictionary
| struct KEDictionary* KEAllocateDictionary | ( | struct CNResource * | resource | ) |
Allocate dictionary.
| resource | Resource to allocate the dictionary |
| void KEDumpDictionary | ( | struct CNText * | outbuf, |
| struct KEDictionary * | src | ||
| ) |
Dump all elements in value dictionary.
| outbuf | Output buffer |
| src | Source value array |
| struct CNObjectList KEKeysInDictionary | ( | struct KEDictionary * | src, |
| struct CNResource * | resource | ||
| ) |
Get string keys from dictionary.
| src | Source dictionary |
| resource | Resource to allocate the list |
| void KESetValueToDictionary | ( | struct KEDictionary * | dst, |
| struct CNString * | key, | ||
| struct KEValue * | val | ||
| ) |
Set value to dictionary.
| dst | Destination dictionary |
| key | Key of the source data |
| val | Value of the source data |
| struct KEValue* KEValueInDictionary | ( | struct KEDictionary * | src, |
| struct CNString * | key | ||
| ) |
Get value in the dictionary by the key.
| val | Value which has the key |
| NULL | There are no value with given key |
| src | Source dictionary to be searched |
| key | Key to search the value |
1.8.5