diff options
author | Adrian Kummerländer | 2014-02-05 18:45:15 +0100 |
---|---|---|
committer | Adrian Kummerländer | 2014-02-05 18:45:15 +0100 |
commit | 4784dd77398d362130a794607b478547e5628ab3 (patch) | |
tree | e4c0bd506b41c94d4f1633db86b329a0ea365b03 /src | |
parent | 6ad51b897a223e95ee852321b3c5c0ec23b1ee64 (diff) | |
download | Trie-4784dd77398d362130a794607b478547e5628ab3.tar Trie-4784dd77398d362130a794607b478547e5628ab3.tar.gz Trie-4784dd77398d362130a794607b478547e5628ab3.tar.bz2 Trie-4784dd77398d362130a794607b478547e5628ab3.tar.lz Trie-4784dd77398d362130a794607b478547e5628ab3.tar.xz Trie-4784dd77398d362130a794607b478547e5628ab3.tar.zst Trie-4784dd77398d362130a794607b478547e5628ab3.zip |
Marked recursive method overloads as private
Diffstat (limited to 'src')
-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_ |