| Library | File | Frames | Expand |
| void | clearall () | |
| static xrealdictionary * | create () | |
| Creates a new empty dictionary. | ||
| static xrealdictionary * | createCapacity (xint count) | |
| Creates a new empty dictionary with a specified initial capacity. Capacity is the number of elements, that can be added to the dictionary without having to reallocate its internal buffers. | ||
| xbool | find (xrstring key, xreal *value) | |
| Finds an element with the specified key in the dictionary. If an element is found, returns xtrue and sets the value pointer to point to the found value, otherwise returns xfalse. If the value pointer is 0, this method only verifies if an element with the specified key exists in the dictionary without returning its value. | ||
| xbool | getbyindex (xint idx, xreal *value) | |
| Gets the value of an element with the specified index from a dictionary. If an element is found, returns yxtrue and sets the value pointer to point to the found value, otherwise returns xfalse. If the value pointer is 0, this method only verifies if an element with the specified index exists in the dictionary without returning its value. Use this method together with methods getmapsize and getkeybyindex to iterate through the dictionary. | ||
| xbool | getkeybyindex (xint idx, xstring *key) | |
| Gets the key of an element with the specified index from a dictionary. If an element is found, returns xtrue and sets the key pointer to point to the found string value, otherwise returns xfalse. If the key pointer is 0, this method only verifies if an element with the specified index exists in the dictionary without returning its key. Use this method together with methods getmapsize and getbyindex to iterate through the dictionary. | ||
| xint | getmapsize () | |
| Returns the dictionary size. This size can be greater than the current number of elements in the dictionary, in fact this is a size of the dictionary hashtable. | ||
| void | remove (xrstring key) | |
| Removes an element with the specified key from a dictionary. | ||
| void | removebyindex (xint idx) | |
| Removes an element with the specified index from a dictionary. If an element with this index does not exist in the dictionary, throws exception cipXInvalidDictIndex. | ||
| void | set (xrstring key, xreal value) | |
| Assigns a new value to the dictionary element with the specified key, if such an element exists, otherwise adds a new element with the given key and value to the dictionary. | ||
| void | setbyindex (xint idx, xreal value) | |
| Changes the value of a dictionary element with the specified index to the specified value. If an element with the specified index does not exist in the dictionary, throws exception cipXInvalidDictIndex. | ||
| xint | getmapsize | () |
|
Returns the dictionary size. This size can be greater than the current number of elements in the dictionary, in fact this is a size of the dictionary hashtable.
|
| xbool | find | (xrstring key, xreal *value) |
|
Finds an element with the specified key in the dictionary. If an element is found, returns xtrue and sets the value pointer to point to the found value, otherwise returns xfalse. If the value pointer is 0, this method only verifies if an element with the specified key exists in the dictionary without returning its value.
|
| void | set | (xrstring key, xreal value) |
|
Assigns a new value to the dictionary element with the specified key, if such an element exists, otherwise adds a new element with the given key and value to the dictionary.
|
| void | setbyindex | (xint idx, xreal value) |
|
Changes the value of a dictionary element with the specified index to the specified value. If an element with the specified index does not exist in the dictionary, throws exception cipXInvalidDictIndex.
|
| void | remove | (xrstring key) |
|
Removes an element with the specified key from a dictionary.
|
| void | removebyindex | (xint idx) |
|
Removes an element with the specified index from a dictionary. If an element with this index does not exist in the dictionary, throws exception cipXInvalidDictIndex.
|
| xbool | getbyindex | (xint idx, xreal *value) |
|
Gets the value of an element with the specified index from a dictionary. If an element is found, returns yxtrue and sets the value pointer to point to the found value, otherwise returns xfalse. If the value pointer is 0, this method only verifies if an element with the specified index exists in the dictionary without returning its value. Use this method together with methods getmapsize and getkeybyindex to iterate through the dictionary.
|
| xbool | getkeybyindex | (xint idx, xstring *key) |
|
Gets the key of an element with the specified index from a dictionary. If an element is found, returns xtrue and sets the key pointer to point to the found string value, otherwise returns xfalse. If the key pointer is 0, this method only verifies if an element with the specified index exists in the dictionary without returning its key. Use this method together with methods getmapsize and getbyindex to iterate through the dictionary.
|
| void | clearall | () |
|
| static xrealdictionary * | create | () |
|
Creates a new empty dictionary.
|
| static xrealdictionary * | createCapacity | (xint count) |
|
Creates a new empty dictionary with a specified initial capacity. Capacity is the number of elements, that can be added to the dictionary without having to reallocate its internal buffers.
|