Object that represents a node inlet. More...
|inpin (const std::string &name_r, std::condition_variable *transition_cv_p, std::mutex *transition_m_p)|
|virtual std::string||rename (const std::string &name_r)|
|Overrides named::rename. |
|virtual bool||peek () const|
|Check whether a packet is in the pipe. |
< packet< T > >
|Extracts a packet from the pipe. |
|virtual void||incoming ()|
|Notifies this pin that a packet has been queued to the pipe. |
|Public Member Functions inherited from flow::pin< T >|
|pin (const std::string &name_r)|
|pin (const pin< T > &o)|
|Public Member Functions inherited from flow::named|
|named (const std::string &name_r)|
|Constructor the takes a name. |
|named (named &&name_rr)|
|Move constructor. |
|named (const named &name_r)|
|Copy constructor. |
|virtual const std::string &||name () const|
|A const reference to this object's name. |
|class||consumer< T >|
|Protected Attributes inherited from flow::pin< T >|
< pipe< T >, std::unique_ptr
< std::mutex > > >
|Shared ownership of a pipe with the pin to which this pin is connected. |
Object that represents a node inlet.
Nodes that consume packets, i.e. transformers and consumers, have at least one inpin.
|name_r||The name to give this node.|
|transition_cv_p||Pointer to the node's transition condition_variable.|
|transition_m_p||Pointer to the node's transition mutex.|
Check whether a packet is in the pipe.
falseif there is no pipe or the pipe is empty,
Extracts a packet from the pipe.
Notifies this pin that a packet has been queued to the pipe.
When a producing node has moved a packet to the pipe, that node's outpin will call this function on the connected inpin. If this inpin's owning node state is flow::started, it touches the state signal the node there is a packet to be consumed.