Struct InterfacePort
Defined in File subgraph.hpp
-
struct InterfacePort
Interface port that maps external subgraph port name to internal operator port(s)
For most ports, there is a single mapping. However, input interface ports can have multiple mappings, allowing a single external interface port to broadcast to multiple internal operators.
Public Types
-
enum class PortType
Type of interface port.
Values:
-
enumerator kData
Regular data port (for data flow)
-
enumerator kExecution
Execution control port (for control flow)
-
enumerator kData
Public Functions
-
inline size_t size() const
Get number of mappings.
-
inline bool empty() const
Check if empty.
Add a mapping.
Public Members
-
std::vector<Mapping> mappings
List of internal operator/port mappings.
-
bool is_input
Whether this is an input port (vs output)
-
struct Mapping
A single mapping from external interface port to internal operator port.
Public Members
-
std::shared_ptr<Operator> internal_operator
Internal operator that owns the port.
-
std::string internal_port_name
Port name on the internal operator.
-
std::shared_ptr<Operator> internal_operator
-
enum class PortType