aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/Trie.h
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-12-20 01:30:27 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-12-20 01:30:27 +0000
commit381ad3b59938e7c45277ca8f5393341fed9ad9e2 (patch)
tree4bcb3c0962031f6c35e3950069b7adfa04559dbe /include/llvm/ADT/Trie.h
parentcf4d02a63b3c0c35e5f65289e1e936e3fac2c67b (diff)
downloadexternal_llvm-381ad3b59938e7c45277ca8f5393341fed9ad9e2.zip
external_llvm-381ad3b59938e7c45277ca8f5393341fed9ad9e2.tar.gz
external_llvm-381ad3b59938e7c45277ca8f5393341fed9ad9e2.tar.bz2
More eye-candy stuff :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45247 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/Trie.h')
-rw-r--r--include/llvm/ADT/Trie.h23
1 files changed, 9 insertions, 14 deletions
diff --git a/include/llvm/ADT/Trie.h b/include/llvm/ADT/Trie.h
index 0770f0f..47a3f4d 100644
--- a/include/llvm/ADT/Trie.h
+++ b/include/llvm/ADT/Trie.h
@@ -147,7 +147,7 @@ public:
inline const Node* &front() const { return Children.front(); }
inline Node* &front() { return Children.front(); }
inline const Node* &back() const { return Children.back(); }
- inline Node* &back() { return Children.back(); }
+ inline Node* &back() { return Children.back(); }
};
@@ -275,26 +275,21 @@ const Payload& Trie<Payload>::lookup(const std::string& s) const {
template<class Payload>
struct GraphTraits<Trie<Payload> > {
- typedef typename Trie<Payload>::Node NodeType;
- typedef typename Trie<Payload>::Node::iterator ChildIteratorType;
+ typedef Trie<Payload> TrieType;
+ typedef typename TrieType::Node NodeType;
+ typedef typename NodeType::iterator ChildIteratorType;
- static inline NodeType *getEntryNode(const Trie<Payload>& T) {
- return T.getRoot();
- }
+ static inline NodeType *getEntryNode(const TrieType& T) { return T.getRoot(); }
- static inline ChildIteratorType child_begin(NodeType *N) {
- return N->begin();
- }
- static inline ChildIteratorType child_end(NodeType *N) {
- return N->end();
- }
+ static inline ChildIteratorType child_begin(NodeType *N) { return N->begin(); }
+ static inline ChildIteratorType child_end(NodeType *N) { return N->end(); }
typedef typename std::vector<NodeType*>::const_iterator nodes_iterator;
- static inline nodes_iterator nodes_begin(const Trie<Payload>& G) {
+ static inline nodes_iterator nodes_begin(const TrieType& G) {
return G.Nodes.begin();
}
- static inline nodes_iterator nodes_end(const Trie<Payload>& G) {
+ static inline nodes_iterator nodes_end(const TrieType& G) {
return G.Nodes.end();
}