|
LLVM
10.0.0
|
Represent a node in the directed graph. More...
#include "llvm/ADT/DirectedGraph.h"
Public Types | |
| using | EdgeListTy = SetVector< EdgeType * > |
| using | iterator = typename EdgeListTy::iterator |
| using | const_iterator = typename EdgeListTy::const_iterator |
Public Member Functions | |
| DGNode (EdgeType &E) | |
Create a node with a single outgoing edge E. More... | |
| DGNode ()=default | |
| DGNode (const DGNode< NodeType, EdgeType > &N) | |
| DGNode (DGNode< NodeType, EdgeType > &&N) | |
| DGNode< NodeType, EdgeType > & | operator= (const DGNode< NodeType, EdgeType > &N) |
| DGNode< NodeType, EdgeType > & | operator= (const DGNode< NodeType, EdgeType > &&N) |
| bool | operator== (const NodeType &N) const |
| Static polymorphism: delegate implementation (via isEqualTo) to the derived class. More... | |
| bool | operator!= (const NodeType &N) const |
| const_iterator | begin () const |
| const_iterator | end () const |
| iterator | begin () |
| iterator | end () |
| const EdgeType & | front () const |
| EdgeType & | front () |
| const EdgeType & | back () const |
| EdgeType & | back () |
| bool | findEdgesTo (const NodeType &N, SmallVectorImpl< EdgeType *> &EL) const |
Collect in EL, all the edges from this node to N. More... | |
| bool | addEdge (EdgeType &E) |
Add the given edge E to this node, if it doesn't exist already. More... | |
| void | removeEdge (EdgeType &E) |
Remove the given edge E from this node, if it exists. More... | |
| bool | hasEdgeTo (const NodeType &N) const |
Test whether there is an edge that goes from this node to N. More... | |
| const EdgeListTy & | getEdges () const |
| Retrieve the outgoing edges for the node. More... | |
| EdgeListTy & | getEdges () |
| void | clear () |
| Clear the outgoing edges. More... | |
Protected Member Functions | |
| bool | isEqualTo (const NodeType &N) const |
| NodeType & | getDerived () |
| const NodeType & | getDerived () const |
| const_iterator | findEdgeTo (const NodeType &N) const |
Find an edge to N. More... | |
Protected Attributes | |
| EdgeListTy | Edges |
Represent a node in the directed graph.
The node has a (possibly empty) list of outgoing edges.
Definition at line 70 of file DirectedGraph.h.
| using llvm::DGNode< NodeType, EdgeType >::const_iterator = typename EdgeListTy::const_iterator |
Definition at line 74 of file DirectedGraph.h.
| using llvm::DGNode< NodeType, EdgeType >::EdgeListTy = SetVector<EdgeType *> |
Definition at line 72 of file DirectedGraph.h.
| using llvm::DGNode< NodeType, EdgeType >::iterator = typename EdgeListTy::iterator |
Definition at line 73 of file DirectedGraph.h.
|
inlineexplicit |
Create a node with a single outgoing edge E.
Definition at line 77 of file DirectedGraph.h.
|
default |
|
inlineexplicit |
Definition at line 80 of file DirectedGraph.h.
|
inline |
Definition at line 81 of file DirectedGraph.h.
|
inline |
Add the given edge E to this node, if it doesn't exist already.
Returns true if the edge is added and false otherwise.
Definition at line 120 of file DirectedGraph.h.
|
inline |
Definition at line 103 of file DirectedGraph.h.
|
inline |
Definition at line 104 of file DirectedGraph.h.
|
inline |
Definition at line 97 of file DirectedGraph.h.
Referenced by llvm::GraphTraits< DDGNode * >::child_begin(), llvm::GraphTraits< const DDGNode * >::child_begin(), llvm::GraphTraits< DDGNode * >::child_edge_begin(), and llvm::GraphTraits< const DDGNode * >::child_edge_begin().
|
inline |
Definition at line 99 of file DirectedGraph.h.
|
inline |
Clear the outgoing edges.
Definition at line 138 of file DirectedGraph.h.
|
inline |
Definition at line 98 of file DirectedGraph.h.
Referenced by llvm::GraphTraits< DDGNode * >::child_edge_end(), llvm::GraphTraits< const DDGNode * >::child_edge_end(), llvm::GraphTraits< DDGNode * >::child_end(), and llvm::GraphTraits< const DDGNode * >::child_end().
|
inline |
Definition at line 100 of file DirectedGraph.h.
|
inline |
Collect in EL, all the edges from this node to N.
Return true if at least one edge was found, and false otherwise. Note that this implementation allows more than one edge to connect a given pair of nodes.
Definition at line 110 of file DirectedGraph.h.
References assert(), E, llvm::SmallVectorBase::empty(), N, and llvm::SmallVectorTemplateBase< T >::push_back().
|
inlineprotected |
Find an edge to N.
If more than one edge exists, this will return the first one in the list of edges.
Definition at line 152 of file DirectedGraph.h.
References E, llvm::find_if(), and N.
|
inline |
Definition at line 101 of file DirectedGraph.h.
|
inline |
Definition at line 102 of file DirectedGraph.h.
|
inlineprotected |
Definition at line 145 of file DirectedGraph.h.
|
inlineprotected |
Definition at line 146 of file DirectedGraph.h.
|
inline |
Retrieve the outgoing edges for the node.
Definition at line 131 of file DirectedGraph.h.
Referenced by llvm::operator<<().
|
inline |
Definition at line 132 of file DirectedGraph.h.
References llvm::DGNode< NodeType, EdgeType >::Edges.
|
inline |
Test whether there is an edge that goes from this node to N.
Definition at line 126 of file DirectedGraph.h.
|
inlineprotected |
Definition at line 142 of file DirectedGraph.h.
References N.
|
inline |
Definition at line 95 of file DirectedGraph.h.
References llvm::DGEdge< NodeType, EdgeType >::operator==().
|
inline |
Definition at line 83 of file DirectedGraph.h.
References llvm::DGNode< NodeType, EdgeType >::Edges.
Referenced by llvm::DDGNode::operator=().
|
inline |
Definition at line 87 of file DirectedGraph.h.
References N.
|
inline |
Static polymorphism: delegate implementation (via isEqualTo) to the derived class.
Definition at line 94 of file DirectedGraph.h.
References llvm::DGEdge< NodeType, EdgeType >::getDerived().
|
inline |
Remove the given edge E from this node, if it exists.
Definition at line 123 of file DirectedGraph.h.
|
protected |
Definition at line 158 of file DirectedGraph.h.
Referenced by llvm::DGNode< NodeType, EdgeType >::getEdges(), and llvm::DGNode< NodeType, EdgeType >::operator=().
1.8.13