aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrian Kummerländer2014-02-05 18:45:15 +0100
committerAdrian Kummerländer2014-02-05 18:45:15 +0100
commit4784dd77398d362130a794607b478547e5628ab3 (patch)
treee4c0bd506b41c94d4f1633db86b329a0ea365b03 /src
parent6ad51b897a223e95ee852321b3c5c0ec23b1ee64 (diff)
downloadTrie-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.h22
1 files 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<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_