|
slang-netlist
0.9.0
|
A class to represent a directed edge in a graph. More...
#include <DirectedGraph.hpp>
Public Member Functions | |
| DirectedEdge (NodeType &sourceNode, NodeType &targetNode) | |
| auto | operator= (const DirectedEdge< NodeType, EdgeType > &edge) -> DirectedEdge< NodeType, EdgeType > &=default |
| auto | operator== (const EdgeType &E) const -> bool |
| auto | getSourceNode () const -> NodeType & |
| Return the source node of this edge. | |
| auto | getTargetNode () const -> NodeType & |
| Return the target node of this edge. | |
Protected Member Functions | |
| auto | isEqualTo (const EdgeType &edge) const -> bool |
| auto | getDerived () -> EdgeType & |
| auto | getDerived () const -> const EdgeType & |
Protected Attributes | |
| NodeType & | sourceNode |
| NodeType & | targetNode |
Friends | |
| auto | operator== (const EdgeType &A, const EdgeType &B) noexcept -> bool |
A class to represent a directed edge in a graph.
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inline |
Return the source node of this edge.
|
inline |
Return the target node of this edge.
|
inlineprotected |
|
default |
|
inline |
|
friend |
Static polymorphism: delegate implementation (via isEqualTo) to the derived class. Add friend operator to resolve ambiguity between operand ordering with C++20.
|
protected |
|
protected |