llvm.org GIT mirror llvm / 54c005f
More eye-candy stuff :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45247 91177308-0d34-0410-b5e6-96231b3b80d8 Anton Korobeynikov 12 years ago
1 changed file(s) with 11 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
146146 inline const Node* &front() const { return Children.front(); }
147147 inline Node* &front() { return Children.front(); }
148148 inline const Node* &back() const { return Children.back(); }
149 inline Node* &back() { return Children.back(); }
149 inline Node* &back() { return Children.back(); }
150150
151151 };
152152
274274
275275 template
276276 struct GraphTraits > {
277 typedef typename Trie::Node NodeType;
278 typedef typename Trie::Node::iterator ChildIteratorType;
279
280 static inline NodeType *getEntryNode(const Trie& T) {
281 return T.getRoot();
282 }
283
284 static inline ChildIteratorType child_begin(NodeType *N) {
285 return N->begin();
286 }
287 static inline ChildIteratorType child_end(NodeType *N) {
288 return N->end();
289 }
277 typedef Trie TrieType;
278 typedef typename TrieType::Node NodeType;
279 typedef typename NodeType::iterator ChildIteratorType;
280
281 static inline NodeType *getEntryNode(const TrieType& T) { return T.getRoot(); }
282
283 static inline ChildIteratorType child_begin(NodeType *N) { return N->begin(); }
284 static inline ChildIteratorType child_end(NodeType *N) { return N->end(); }
290285
291286 typedef typename std::vector::const_iterator nodes_iterator;
292287
293 static inline nodes_iterator nodes_begin(const Trie& G) {
288 static inline nodes_iterator nodes_begin(const TrieType& G) {
294289 return G.Nodes.begin();
295290 }
296 static inline nodes_iterator nodes_end(const Trie& G) {
291 static inline nodes_iterator nodes_end(const TrieType& G) {
297292 return G.Nodes.end();
298293 }
299294