class DGNode
Declaration
template <class NodeType, class EdgeType>
class DGNode { /* full declaration omitted */ };
Description
Represent a node in the directed graph. The node has a (possibly empty) list of outgoing edges.
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:70
Templates
- NodeType
- EdgeType
Member Variables
- protected llvm::DGNode::EdgeListTy Edges
Method Overview
- public DGNode<NodeType, EdgeType>()
- public DGNode<NodeType, EdgeType>(const DGNode<NodeType, EdgeType> & N)
- public DGNode<NodeType, EdgeType>(DGNode<NodeType, EdgeType> && N)
- public DGNode<NodeType, EdgeType>(EdgeType & E)
- public bool addEdge(EdgeType & E)
- public EdgeType & back()
- public const EdgeType & back() const
- public llvm::DGNode::iterator begin()
- public llvm::DGNode::const_iterator begin() const
- public void clear()
- public llvm::DGNode::iterator end()
- public llvm::DGNode::const_iterator end() const
- protected llvm::DGNode::const_iterator findEdgeTo(const NodeType & N) const
- public bool findEdgesTo(const NodeType & N, SmallVectorImpl<EdgeType *> & EL) const
- public const EdgeType & front() const
- public EdgeType & front()
- protected NodeType & getDerived()
- protected const NodeType & getDerived() const
- public const llvm::DGNode::EdgeListTy & getEdges() const
- public llvm::DGNode::EdgeListTy & getEdges()
- public bool hasEdgeTo(const NodeType & N) const
- protected bool isEqualTo(const NodeType & N) const
- public void removeEdge(EdgeType & E)
Methods
¶DGNode<NodeType, EdgeType>()
DGNode<NodeType, EdgeType>()
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:78
¶DGNode<NodeType, EdgeType>(
const DGNode<NodeType, EdgeType>& N)
DGNode<NodeType, EdgeType>(
const DGNode<NodeType, EdgeType>& N)
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:80
Parameters
- const DGNode<NodeType, EdgeType>& N
¶DGNode<NodeType, EdgeType>(
DGNode<NodeType, EdgeType>&& N)
DGNode<NodeType, EdgeType>(
DGNode<NodeType, EdgeType>&& N)
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:81
Parameters
- DGNode<NodeType, EdgeType>&& N
¶DGNode<NodeType, EdgeType>(EdgeType& E)
DGNode<NodeType, EdgeType>(EdgeType& E)
Description
Create a node with a single outgoing edge \p E.
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:77
Parameters
- EdgeType& E
¶bool addEdge(EdgeType& E)
bool addEdge(EdgeType& E)
Description
Add the given edge \p E to this node, if it doesn't exist already. Returns true if the edge is added and false otherwise.
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:120
Parameters
- EdgeType& E
¶EdgeType& back()
EdgeType& back()
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:104
¶const EdgeType& back() const
const EdgeType& back() const
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:103
¶llvm::DGNode::iterator begin()
llvm::DGNode::iterator begin()
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:99
¶llvm::DGNode::const_iterator begin() const
llvm::DGNode::const_iterator begin() const
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:97
¶void clear()
void clear()
Description
Clear the outgoing edges.
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:138
¶llvm::DGNode::iterator end()
llvm::DGNode::iterator end()
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:100
¶llvm::DGNode::const_iterator end() const
llvm::DGNode::const_iterator end() const
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:98
¶llvm::DGNode::const_iterator findEdgeTo(
const NodeType& N) const
llvm::DGNode::const_iterator findEdgeTo(
const NodeType& N) const
Description
Find an edge to \p N. If more than one edge exists, this will return the first one in the list of edges.
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:152
Parameters
- const NodeType& N
¶bool findEdgesTo(
const NodeType& N,
SmallVectorImpl<EdgeType*>& EL) const
bool findEdgesTo(
const NodeType& N,
SmallVectorImpl<EdgeType*>& EL) const
Description
Collect in \p EL, all the edges from this node to \p 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.
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:110
Parameters
- const NodeType& N
- SmallVectorImpl<EdgeType*>& EL
¶const EdgeType& front() const
const EdgeType& front() const
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:101
¶EdgeType& front()
EdgeType& front()
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:102
¶NodeType& getDerived()
NodeType& getDerived()
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:145
¶const NodeType& getDerived() const
const NodeType& getDerived() const
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:146
¶const llvm::DGNode::EdgeListTy& getEdges() const
const llvm::DGNode::EdgeListTy& getEdges() const
Description
Retrieve the outgoing edges for the node.
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:131
¶llvm::DGNode::EdgeListTy& getEdges()
llvm::DGNode::EdgeListTy& getEdges()
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:132
¶bool hasEdgeTo(const NodeType& N) const
bool hasEdgeTo(const NodeType& N) const
Description
Test whether there is an edge that goes from this node to \p N.
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:126
Parameters
- const NodeType& N
¶bool isEqualTo(const NodeType& N) const
bool isEqualTo(const NodeType& N) const
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:142
Parameters
- const NodeType& N
¶void removeEdge(EdgeType& E)
void removeEdge(EdgeType& E)
Description
Remove the given edge \p E from this node, if it exists.
Declared at: llvm/include/llvm/ADT/DirectedGraph.h:123
Parameters
- EdgeType& E