This class template implements a space‐efficient associative container that maps string keys to values of the specified t_VALUE type. The container uses a radix tree (compressed trie) data structure, which shares common prefixes among keys. The container provides O(k) insertion, lookup, and removal operations, where k is the key length.
Synopsis
Declared in <ball_categorymanager_radixtree.h>
template<class t_VALUE>
class CategoryManager_RadixTree;
Type Aliases
Name |
Description |
The return type of adding a value to the tree with |
|
Type for immutable access to the optional value. Used also as return type for immutable finders where empty optional signifies "not found". |
|
Type for mutable access to the optional value. Used also as return type for mutable finders where empty optional signifies "not found". |
|
|
|
|
|
|
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
Remove all entries from this tree. After this call |
|
Return |
|
Return the total number of nodes in this tree, including internal nodes without values. Note that this method has O(n) complexity where n is the number of nodes, and is intended for use in testing to verify tree structure invariants. In user code use |
|
Insert into this tree an entry with the specified |
|
Return |
|
Remove from this tree the entry with the specified |
|
Remove all children of the entry matching the specified |
|
Remove from this tree all entries with keys that have the specified |
|
|
|
|
|
|
|
|
|
Return the allocator used by this object to supply memory. Note that if no allocator was supplied at construction the default allocator in effect at construction is used. |
|
Write the value of this object to the specified output |
|
Return the number of entries in this tree. |
|
Efficiently exchange the value of this object with the value of the specified |
Friends
Name |
Description |
Exchange the values of the specified trees. |
|
Return |
Non-Member Functions
Name |
Description |
Return |
|
Return |
|
Exchange the values of the specified |
Created with MrDocs