Object that represents a node outlet. More...
#include <node.h>
Public Member Functions | |
outpin (const std::string &name_r) | |
virtual std::string | rename (const std::string &name_r) |
Overrides named::rename. | |
virtual bool | push (std::unique_ptr< packet< T >> packet_p) |
Moves a packet 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. | |
Friends | |
class | producer< T > |
Additional Inherited Members | |
Protected Attributes inherited from flow::pin< T > | |
std::shared_ptr< std::pair < pipe< T >, std::unique_ptr < std::mutex > > > | d_pipe_sp |
Shared ownership of a pipe with the pin to which this pin is connected. | |
Object that represents a node outlet.
Nodes that produce packets, i.e. producers and transformers, have at least one outpin.
|
inline |
name_r | The name to give this outpin. |
|
inlinevirtual |
Overrides named::rename.
Ensures pipe is also renamed.
name_r | New name to give this outpin. |
Reimplemented from flow::named.
|
inlinevirtual |
Moves a packet to the pipe.
Attempts to move the packet on the pipe. If the pipe has reached capacity, the call to pipe::push will fail and packet_p will remain valid.
true
if the packet was successfully moved to the pipe, false otherwise.