diff options
-rw-r--r-- | src/trie.h | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -18,6 +18,17 @@ class Trie { this->add(path, path.begin()); } + inline void remove(key_list path) { + this->remove(path, path.begin()); + } + + inline std::pair<bool, const Trie*> resolve(key_list path) const { + return this->resolve(path, path.begin()); + } + + private: + std::map<Key, Trie> children_; + inline void add( key_list& path, typename key_list::const_iterator currStep @@ -31,10 +42,6 @@ class Trie { } } - inline void remove(key_list path) { - this->remove(path, path.begin()); - } - inline void remove( key_list& path, typename key_list::const_iterator currStep @@ -59,10 +66,6 @@ class Trie { } } - inline std::pair<bool, const Trie*> resolve(key_list path) const { - return this->resolve(path, path.begin()); - } - inline std::pair<bool, const Trie*> resolve( key_list& path, typename key_list::const_iterator currStep @@ -86,9 +89,6 @@ class Trie { } } - private: - std::map<Key, Trie> children_; - }; #endif // TRIE_SRC_TRIE_H_ |