|
Home2L - C/C++ API v1.4-2-g83f4c (2025-08-23)
Smart Tools for a Private Home
|
Dictionary of references.
This class is similar to CDict, but stores references to named objects without taking over ownership.
#include "base.H"

Additional Inherited Members | |
Public Member Functions inherited from CDict< T > | |
| int | Set (const char *key, T *value) |
| Add or replace the keyed entry. Complexity is O(n). | |
| void | SetValue (int idx, T *value) |
| Set (replace) a value. | |
| T * | DisownValue (int idx) |
| Disown a value and clear it in the dictionary. | |
| T * | DisownValue (const char *key) |
| Disown a value and clear it in the dictionary. | |
| void | Merge (CDict< T > *dict2) |
| Merge another dictionary into this one. Complexity is O(n_this + n_dict2). 'dict2' will be empty afterwards. | |
Public Member Functions inherited from CDictRaw | |
| void | Del (int idx) |
| Delete entry; complexity is O(n). | |
| void | Del (const char *key) |
| Delete entry by key; complexity is O(n). | |
| const char * | GetKey (int idx) const |
| Get key by index. | |
| int | Find (const char *key, int *retInsIdx=NULL) |
Make binary search and return index of entry found or -1 if the key does not exist. If retInsIdx != NULL, the index to insert a new item is return in *retInsIdx. | |
| void | PrefixSearch (const char *key, int *retIdx0, int *retIdx1) |
Determine all elements with keys starting with key. | |
| virtual void | Dump (const char *name) |
Dump contents by means of INFO logs (for debugging) | |
Public Member Functions inherited from CListRaw | |
| int | Entries () const |
| Get number of entries. | |
| void | Clear () |
| Clear the list. | |
| void | Del (int idx) |
| Delete entry; complexity is O(n). | |