#include <uhd/rfnoc/graph_edge.hpp>
Public Types | |
| enum | edge_t { STATIC , DYNAMIC , RX_STREAM , TX_STREAM } |
Public Member Functions | |
| graph_edge_t ()=default | |
| graph_edge_t (const size_t src_port_, const size_t dst_port_, const edge_t edge_, const bool fwd_edge) | |
| bool | operator== (const graph_edge_t &rhs) const |
| Equality operator: Compare two edges if they match, including edge. | |
| bool | is_equal (const graph_edge_t &rhs, const bool match_properties=false) const |
| std::string | to_string () const |
| Return a string representation of the connection. | |
Public Attributes | |
| std::string | src_blockid |
| The ID of the source block for this edge. | |
| size_t | src_port = 0 |
| The port number of the source block for this edge. | |
| std::string | dst_blockid |
| The ID of the destination block for this edge. | |
| size_t | dst_port = 0 |
| The port number of the destination block for this edge. | |
| edge_t | edge = DYNAMIC |
| The type of edge. | |
| bool | is_forward_edge = true |
| When false, the framework will assume this is a back-edge. Back-edges. | |
A container that holds information about a graph edge
Note: The source and destination IDs are strings, not block IDs (uhd::rfnoc::block_id_t). This is because the graph can contain edges that are not between RFNoC blocks (e.g., to a streamer), and we need to be able to generically express node IDs.
|
default |
|
inline |
|
inline |
Equality comparison of two edges.
If match_properties is false, this compares two edges to test if they have the same direction, source port, and destination port. If match_properties is true, then it also tests if all the edge properties match (edge type, back-edge).
|
inline |
Equality operator: Compare two edges if they match, including edge.
|
inline |
Return a string representation of the connection.
| std::string uhd::rfnoc::graph_edge_t::dst_blockid |
The ID of the destination block for this edge.
| size_t uhd::rfnoc::graph_edge_t::dst_port = 0 |
The port number of the destination block for this edge.
| bool uhd::rfnoc::graph_edge_t::is_forward_edge = true |
When false, the framework will assume this is a back-edge. Back-edges.
| std::string uhd::rfnoc::graph_edge_t::src_blockid |
The ID of the source block for this edge.
| size_t uhd::rfnoc::graph_edge_t::src_port = 0 |
The port number of the source block for this edge.