A depth first const iterator for the trie. More...
#include <ObjectTrie.hpp>
Public Member Functions | |
ConstDepthIterator (const ConstDepthIterator ©) | |
Make a copy of the supplied iterator. More... | |
const ObjectTrieNode< T > * | getAncestor (size_t level) const |
Get a const pointer to the nth ancestor of the current node. More... | |
void | getAncestors (std::vector< ObjectTrieNode< T > *const > &output) const |
Populate the supplied const pointer vector with the node's ancestors and the current node. More... | |
bool | operator!= (const ConstDepthIterator &rhs) const |
Compare the current iterator and the supplied iterator for inequality. More... | |
const ObjectTrieNode< T > & | operator* () const |
Dereference the node pointed to by the iterator. More... | |
ConstDepthIterator & | operator++ () |
Increment the iterator. More... | |
const ObjectTrieNode< T > * | operator-> () const |
Dereference the node pointed to by the iterator. More... | |
ConstDepthIterator & | operator= (const ConstDepthIterator ©) |
Make a copy of the supplied iterator. More... | |
bool | operator== (const ConstDepthIterator &rhs) const |
Compare the current iterator and the supplied iterator for equality. More... | |
A depth first const iterator for the trie.
|
inline |
Make a copy of the supplied iterator.
|
inline |
Get a const pointer to the nth ancestor of the current node.
Nullptr is returned if such an ancestor does not exist.
level | the ancestor distance |
|
inline |
Populate the supplied const pointer vector with the node's ancestors and the current node.
|
inline |
Compare the current iterator and the supplied iterator for inequality.
|
inline |
Dereference the node pointed to by the iterator.
|
inline |
Increment the iterator.
|
inline |
Dereference the node pointed to by the iterator.
|
inline |
Make a copy of the supplied iterator.
|
inline |
Compare the current iterator and the supplied iterator for equality.