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.
Public Member Functions
backend()
| inline virtual |
Always returns Backend::Pipeline.
Definition at line 55 of file PipelineNode.h.
group()
| inline |
Access the wrapped builder NodeGroup.
Definition at line 87 of file PipelineNode.h.
input_ports()
| inline virtual |
Returns the input port ("in") unless the group is source-like, in which case empty.
Definition at line 75 of file PipelineNode.h.
is_source_like()
| inline |
True iff the wrapped group is source-like (has a Source role and no Push role).
Definition at line 92 of file PipelineNode.h.
kind()
| inline virtual |
Returns the wrapped node's kind, or "PipelineGroup" when the group has multiple nodes.
Definition at line 60 of file PipelineNode.h.
output_ports()
| inline virtual |
Always exposes a single "out" port.
Definition at line 82 of file PipelineNode.h.
requires_input()
| inline |
True iff this node requires an upstream input port.
Definition at line 96 of file PipelineNode.h.
user_label()
| inline virtual |
Returns the explicit label if set, else the wrapped single node's user_label().
Definition at line 65 of file PipelineNode.h.
Private Member Functions
init_()
| inline |
Definition at line 101 of file PipelineNode.h.
Private Member Attributes
group_
|
Definition at line 125 of file PipelineNode.h.
is_source_like_
|
Definition at line 128 of file PipelineNode.h.
kind_
|
Definition at line 127 of file PipelineNode.h.
label_
|
Definition at line 126 of file PipelineNode.h.
requires_input_
|
Definition at line 129 of file PipelineNode.h.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.