diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-03 04:58:29 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-03 04:58:29 +0000 |
commit | 7ebde953bb050caa69f791fc1de449d435c6a36f (patch) | |
tree | 25bd439cbc15399bb281d1fbb4eea26fc0bf87ba /include/clang/Analysis/PathSensitive/ExplodedGraph.h | |
parent | d45d268b293a1365e0b010b785cd6b1efd611991 (diff) |
Added node_iterator to ExplodedGraph to allow iteration over all nodes in
the graph.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49132 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/PathSensitive/ExplodedGraph.h')
-rw-r--r-- | include/clang/Analysis/PathSensitive/ExplodedGraph.h | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/include/clang/Analysis/PathSensitive/ExplodedGraph.h b/include/clang/Analysis/PathSensitive/ExplodedGraph.h index 7b224454e5..30d95605ea 100644 --- a/include/clang/Analysis/PathSensitive/ExplodedGraph.h +++ b/include/clang/Analysis/PathSensitive/ExplodedGraph.h @@ -344,11 +344,28 @@ public: } // Iterators. - typedef NodeTy** roots_iterator; - typedef const NodeTy** const_roots_iterator; - typedef NodeTy** eop_iterator; - typedef const NodeTy** const_eop_iterator; + typedef NodeTy** roots_iterator; + typedef const NodeTy** const_roots_iterator; + typedef NodeTy** eop_iterator; + typedef const NodeTy** const_eop_iterator; + typedef typename AllNodesTy::iterator node_iterator; + typedef typename AllNodesTy::const_iterator const_node_iterator; + + node_iterator nodes_begin() { + return Nodes.begin(); + } + + node_iterator nodes_end() { + return Nodes.end(); + } + const_node_iterator nodes_begin() const { + return Nodes.begin(); + } + + const_node_iterator nodes_end() const { + return Nodes.end(); + } roots_iterator roots_begin() { return reinterpret_cast<roots_iterator>(Roots.begin()); |