PipelineNode Class
Runtime-graph node that wraps a builder-side NodeGroup (or single Node) as a pipeline-backend node. More...
Declaration
Included Headers
Base class
| class | Node |
|
Base class for hybrid graph nodes. More... | |
Public Constructors Index
| PipelineNode (const simaai::neat::NodeGroup &group, std::string label={}) | |
|
Construct from a NodeGroup by copy. More... | |
| PipelineNode (simaai::neat::NodeGroup &&group, std::string label={}) | |
|
Construct from a NodeGroup by move. More... | |
| PipelineNode (std::shared_ptr< simaai::neat::Node > node, std::string label={}) | |
Public Member Functions Index
| Backend | backend () const override |
|
Always returns Backend::Pipeline. More... | |
| std::string | kind () const override |
|
Returns the wrapped node's kind, or "PipelineGroup" when the group has multiple nodes. More... | |
| std::string | user_label () const override |
|
Returns the explicit label if set, else the wrapped single node's user_label(). More... | |
| std::vector< PortDesc > | input_ports () const override |
|
Returns the input port ("in") unless the group is source-like, in which case empty. More... | |
| std::vector< PortDesc > | output_ports () const override |
|
Always exposes a single "out" port. More... | |
| const simaai::neat::NodeGroup & | group () const |
|
Access the wrapped builder NodeGroup. More... | |
| bool | is_source_like () const |
|
True iff the wrapped group is source-like (has a Source role and no Push role). More... | |
| bool | requires_input () const |
|
True iff this node requires an upstream input port. More... | |
Private Member Functions Index
| void | init_ () |
Private Member Attributes Index
| simaai::neat::NodeGroup | group_ |
| std::string | label_ |
| std::string | kind_ |
| bool | is_source_like_ = false |
| bool | requires_input_ = true |
Description
Runtime-graph node that wraps a builder-side NodeGroup (or single Node) as a pipeline-backend node.
Lets a linear, GStreamer-pipeline-shaped fragment participate in the runtime actor graph. The wrapped group's first node's InputRole is inspected to decide whether this node is source-like (no input port) or push-style (single "in" port). Always exposes a single "out" port.
- See Also
simaai::neat::NodeGroup
- See Also
Definition at line 33 of file PipelineNode.h.
Public Constructors
PipelineNode()
| inline explicit |
Construct from a NodeGroup by copy.
Definition at line 36 of file PipelineNode.h.
PipelineNode()
| inline explicit |
Construct from a NodeGroup by move.
Definition at line 42 of file PipelineNode.h.
PipelineNode()
| inline explicit |
Construct from a single builder Node.
Definition at line 48 of file PipelineNode.h.