Base class for a node's inlet or outlet. More...
#include <node.h>
Public Member Functions | |
pin (const std::string &name_r) | |
pin (const pin< T > &o) | |
virtual void | disconnect () |
Disconnects this pin from its pipe. | |
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. | |
virtual std::string | rename (const std::string &name_r) |
Sets this object's name to a new name. | |
Protected Attributes | |
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. | |
Friends | |
class | outpin< T > |
Base class for a node's inlet or outlet.
Pins are connected to one another through pipes. Even when one pin is disconnected, the pipe remains attached to the remaining pin to mimize packet loss.
name_r | The name of this pin. This will be typically generated from the name of the owning node. |