CategoryManager_RadixTree [constructor] | Constructors |
operator= | Assignment operators |
clear | Remove all entries from this tree. After this call empty() will return true. After this call the tree will have 0 nodes. |
contains | Return true if this tree contains an entry for the specified key, and false otherwise. |
countNodes | 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 size() that tells the actual number of entries with values. |
emplace | Insert into this tree an entry with the specified key and a newly created t_VALUE object, constructed by forwarding get_allocator() (if required) and the specified (variable number of) args to the corresponding constructor of t_VALUE. Return a pair consisting of a reference to the value associated with key (whether newly inserted or already existing) and a boolean indicating whether insertion took place (true if the key was not already present, false otherwise). This method requires that t_VALUE be emplace-constructible from args. |
empty | Return true if this tree contains no entries, and false otherwise. |
erase | Remove from this tree the entry with the specified key. Return true if the entry was removed (key existed), and false otherwise. |
eraseChildrenOfPrefix | Remove all children of the entry matching the specified prefix, but not the entry with the prefix itself. If unused (no value, no children) nodes remain remove those, too. If no entry exists for prefix remove nothing. Return the number of entries removed. |
erasePrefix | Remove from this tree all entries with keys that have the specified prefix, including the entry for the prefix itself if it exists. Return the number of entries removed. Note that this method removes all nodes whose keys start with prefix, not just those that have a value. |
find | find overloads |
findLongestCommonPrefix | findLongestCommonPrefix overloads |
forEach | forEach overloads |
forEachPrefix | forEachPrefix overloads |
get_allocator | 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. |
printNodes | Write the value of this object to the specified output stream in a human-readable format, and return a non-const reference to stream. Optionally specify an initial indentation level, whose absolute value is incremented recursively for nested objects. If level is specified, optionally specify spacesPerLevel, whose absolute value indicates the number of spaces per indentation level for this and all of its nested objects. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative, format the entire output on one line, suppressing all but the initial indentation (as governed by level). If stream is not valid on entry, this operation has no effect. Note that the format is not fully specified, and may change without notice. |
size | Return the number of entries in this tree. |
swap | Efficiently exchange the value of this object with the value of the specified other object. This method provides the no-throw exception-safety guarantee. The behavior is undefined unless this object was created with the same allocator as other. |