LLVM 20.0.0git
|
#include "llvm/ADT/DepthFirstIterator.h"
Public Types | |
using | iterator_category = std::conditional_t< ExtStorage, std::input_iterator_tag, std::forward_iterator_tag > |
using | value_type = typename GT::NodeRef |
using | difference_type = std::ptrdiff_t |
using | pointer = value_type * |
using | reference = const value_type & |
Public Member Functions | |
bool | operator== (const df_iterator &x) const |
bool | operator!= (const df_iterator &x) const |
reference | operator* () const |
NodeRef | operator-> () const |
df_iterator & | operator++ () |
df_iterator & | skipChildren () |
Skips all children of the current node and traverses to next node. | |
df_iterator | operator++ (int) |
bool | nodeVisited (NodeRef Node) const |
unsigned | getPathLength () const |
getPathLength - Return the length of the path from the entry node to the current node, counting both nodes. | |
NodeRef | getPath (unsigned n) const |
getPath - Return the n'th node in the path from the entry node to the current node. | |
Static Public Member Functions | |
static df_iterator | begin (const GraphT &G) |
static df_iterator | end (const GraphT &G) |
static df_iterator | begin (const GraphT &G, SetType &S) |
static df_iterator | end (const GraphT &G, SetType &S) |
Additional Inherited Members | |
Public Attributes inherited from llvm::df_iterator_storage< SetType, External > | |
SetType | Visited |
Definition at line 86 of file DepthFirstIterator.h.
using llvm::df_iterator< GraphT, SetType, ExtStorage, GT >::difference_type = std::ptrdiff_t |
Definition at line 93 of file DepthFirstIterator.h.
using llvm::df_iterator< GraphT, SetType, ExtStorage, GT >::iterator_category = std::conditional_t<ExtStorage, std::input_iterator_tag, std::forward_iterator_tag> |
Definition at line 89 of file DepthFirstIterator.h.
using llvm::df_iterator< GraphT, SetType, ExtStorage, GT >::pointer = value_type * |
Definition at line 94 of file DepthFirstIterator.h.
using llvm::df_iterator< GraphT, SetType, ExtStorage, GT >::reference = const value_type & |
Definition at line 95 of file DepthFirstIterator.h.
using llvm::df_iterator< GraphT, SetType, ExtStorage, GT >::value_type = typename GT::NodeRef |
Definition at line 92 of file DepthFirstIterator.h.
|
inlinestatic |
Definition at line 156 of file DepthFirstIterator.h.
References G.
Referenced by llvm::df_begin(), llvm::df_ext_begin(), llvm::idf_begin(), and llvm::idf_ext_begin().
|
inlinestatic |
Definition at line 162 of file DepthFirstIterator.h.
References G.
|
inlinestatic |
Definition at line 159 of file DepthFirstIterator.h.
Referenced by llvm::df_end(), llvm::df_ext_end(), llvm::idf_end(), and llvm::idf_ext_end().
|
inlinestatic |
Definition at line 165 of file DepthFirstIterator.h.
|
inline |
getPath - Return the n'th node in the path from the entry node to the current node.
Definition at line 216 of file DepthFirstIterator.h.
|
inline |
getPathLength - Return the length of the path from the entry node to the current node, counting both nodes.
Definition at line 212 of file DepthFirstIterator.h.
|
inline |
Definition at line 206 of file DepthFirstIterator.h.
References llvm::df_iterator_storage< SetType, External >::Visited.
|
inline |
Definition at line 170 of file DepthFirstIterator.h.
|
inline |
Definition at line 172 of file DepthFirstIterator.h.
|
inline |
Definition at line 180 of file DepthFirstIterator.h.
|
inline |
Definition at line 196 of file DepthFirstIterator.h.
|
inline |
Definition at line 178 of file DepthFirstIterator.h.
|
inline |
Definition at line 167 of file DepthFirstIterator.h.
|
inline |
Skips all children of the current node and traverses to next node.
Note: This function takes care of incrementing the iterator. If you always increment and call this function, you risk walking off the end.
Definition at line 189 of file DepthFirstIterator.h.