|
| | InputEngineNode (const std::string &id, const std::string &engineName) |
| |
| std::string | typeStr () const override |
| | Returns the node 'type' as a string. More...
|
| |
| const std::set< DataPackIdentifier > & | requestedDataPacks () const |
| |
| void | setDataPacks (datapacks_vector_t dpacks) |
| |
| | InputNode (const std::string &id, InputNodePolicies::MsgPublishPolicy msgPublishPolicy=InputNodePolicies::MsgPublishPolicy::LAST, InputNodePolicies::MsgCachePolicy msgCachePolicy=InputNodePolicies::MsgCachePolicy::KEEP_CACHE, size_t queue_size=10) |
| | Constructor. More...
|
| |
| void | registerOutput (const std::string &id) |
| | Registers an Output port with id 'id' with this node. More...
|
| |
| OutputPort< DataPackInterface > * | getSinglePort (const std::string &id) |
| | Returns a pointer to single output port if the port is registered, nullptr otherwise. More...
|
| |
| OutputPort< std::vector< const DataPackInterface * > > * | getListPort (const std::string &id) |
| | Returns a pointer to list output port if the port is registered, nullptr otherwise. More...
|
| |
| InputNodePolicies::MsgPublishPolicy | msgPublishPolicy () |
| |
| InputNodePolicies::MsgCachePolicy | msgCachePolicy () |
| |
| void | setMsgPublishPolicy (InputNodePolicies::MsgPublishPolicy msgPublishPolicy) |
| |
| void | setMsgCachePolicy (InputNodePolicies::MsgCachePolicy msgCachePolicy) |
| |
| | ComputationalNode ()=delete |
| |
| virtual | ~ComputationalNode ()=default |
| |
| | ComputationalNode (std::string id, NodeType type) |
| | Constructor. More...
|
| |
| const std::string & | id () const |
| | Returns the node 'id'. More...
|
| |
| NodeType | type () const |
| | Returns the node 'type'. More...
|
| |
| void | setVisited (bool visited) |
| | Sets a value for the node 'visited' property, used for graph traversing. More...
|
| |
| bool | isVisited () const |
| | Returns true if the node has been marked as visited, false otherwise. More...
|
| |
| void | setDoCompute (bool doCompute) |
| | Sets a value for the node 'doCompute' property, used in some graph execution modes. More...
|
| |
| virtual bool | doCompute () const |
| | Tells if this node should be executed in this graph execution cycle, used in some graph execution modes. More...
|
| |
Input node used to connect an EngineClient with the computational graph.
It has two methods 'requestedDataPacks' and 'setDataPacks' which allows to update the node externally with the latest datapacks
| bool InputEngineNode::updatePortData |
( |
const std::string & |
id | ) |
|
|
inlineoverrideprotectedvirtual |
Updates pointers stored in _portMap for port 'id'.
Expected behavior: Implementations of this function must guarantee that data pointers stored in _portMap[id] are valid and will not change between calls to this function. Even after the function is called again, pointers in _portMap[id] should still be valid and remain unchanged if the function returns false, i.e., if port 'id' data wasn't changed.
- Parameters
-
| id | key in _portMap which data is asked to be updated |
- Returns
- true if port 'id' has new data, false otherwise
Implements InputNode< DataPackInterface >.