From 4784dd77398d362130a794607b478547e5628ab3 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Wed, 5 Feb 2014 18:45:15 +0100 Subject: Marked recursive method overloads as private --- src/trie.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/trie.h b/src/trie.h index 9134c45..873a375 100644 --- a/src/trie.h +++ b/src/trie.h @@ -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 resolve(key_list path) const { + return this->resolve(path, path.begin()); + } + + private: + std::map 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 resolve(key_list path) const { - return this->resolve(path, path.begin()); - } - inline std::pair resolve( key_list& path, typename key_list::const_iterator currStep @@ -86,9 +89,6 @@ class Trie { } } - private: - std::map children_; - }; #endif // TRIE_SRC_TRIE_H_ -- cgit v1.2.3