Template Class RadixTree
Defined in File Trie.h
Nested Relationships
Nested Types
Class Documentation
-
template<class V>
class RadixTree a DICTIONARY of strings on a compact trie
Public Types
-
using Key = std::string
the type of the keys
-
using size_type = std::size_t
-
using difference_type = std::ptrdiff_t
-
using reference = value_type
-
using const_reference = value_type
-
using iterator = const_iterator
Public Functions
-
void remove(std::string_view k)
- Post:
k is not there
-
bool contains(std::string_view k) const
-
std::size_t size(void) const
-
std::vector<std::string> keysWithPrefix(std::string_view p) const
the keys that begin with p, in increasing order
-
std::size_t nodes(void) const
the number of nodes, the root included
-
inline const_iterator begin(void) const
-
inline const_iterator end(void) const
-
inline const_iterator cbegin(void) const
-
inline const_iterator cend(void) const
-
using Key = std::string