![]() |
A list of ports on a node.
The PortList is provided from a Node – and can either be the InPortList or PortList depending if it is intended for In or Out ports. Certain types of OMC::Node provide a PortList that can have ports added dynamically, and a MultiPortList or MultiInPortList will be provided to support the dynamic addition and removal of these ports. The port lists are iterable, provide a size and can be accessed with the list[] operator.
The generic PortList – see also OMC::InPortList, OMC::MultiPortList, and OMC::MultiInPortList. Also see OMC::Node::ports_in and OMC::Node::ports_out.
Identify all In Ports on a Node
Identify all Out-Ports on a Node
Public Member Functions | |
virtual std::vector< OMC::Port * > | list () const override |
Converts the dynamic list into a concrete list of Port objects. | |
Public Attributes | |
OMC::Port * | operator[int idx] |
Provides the Port at the given index. | |
bool | dynamic |
Identifies if ports can be created on this portlist and the node. | |