Dictionary of association between key and value. More...
Dictionary of association between key and value.
| KeyType | Keys items type. Items must be instanciable whitout parameters. (scalar type or class with constructor without parameters or with default values.) |
| ValueType | Values item type. Items must be instanciable whitout parameters. (scalar type or class with constructor without parameters or with default values.) |
| Size | Dictionary size (maximum associations count). |
Public Member Methods | |
| Int32 | GetCount () const |
| Gets the number of associations contained in the dictionary. More... | |
| bool | IsEmpty () const |
| Query if the dictionary is empty. More... | |
| bool | IsFull () const |
| Query if the dictionary is full. More... | |
| bool | Lookup (const KeyType &key, ValueType &value) const |
| Looks up a given key to find its associated value. More... | |
| ValueType & | operator[] (const KeyType &key) |
| Array indexer operator. More... | |
| void | SetAt (const KeyType &key, const ValueType &newValue) |
| Sets at. More... | |
| bool | RemoveKey (const KeyType &key) |
| Removes the key described by key. More... | |
| void | RemoveAll () |
| Removes all. More... | |
| void | GetAssociation (Int32 index, KeyType &key, ValueType &value) const |
| Gets an association. More... | |
| Int32 | FindKey (const KeyType &key) const |
| Searches for a key. More... | |
| Int32 FindKey | ( | const KeyType & | key | ) | const |
Searches for a key.
| key | The key. |
| void GetAssociation | ( | Int32 | index, |
| KeyType & | key, | ||
| ValueType & | value | ||
| ) | const |
Gets an association.
| index | Zero-based index of the. |
| key | [in,out] The key. |
| value | [in,out] The value. |
| Int32 GetCount | ( | ) | const |
Gets the number of associations contained in the dictionary.
| bool IsEmpty | ( | ) | const |
Query if the dictionary is empty.
| bool IsFull | ( | ) | const |
Query if the dictionary is full.
| bool Lookup | ( | const KeyType & | key, |
| ValueType & | value | ||
| ) | const |
Looks up a given key to find its associated value.
| key | The key. |
| value | [in,out] The value. |
| ValueType & operator[] | ( | const KeyType & | key | ) |
Array indexer operator.
| key | The key. |
| void RemoveAll | ( | ) |
Removes all.
| bool RemoveKey | ( | const KeyType & | key | ) |
Removes the key described by key.
| key | The key. |
| void SetAt | ( | const KeyType & | key, |
| const ValueType & | newValue | ||
| ) |
Sets at.
| key | The key. |
| newValue | The new value. |