![]() |
smgl 0.11.0
Structured Metadata Engine and Graph Objects Library
|
Generic output port interface. More...
#include <smgl/Ports.hpp>
Public Member Functions | |
| virtual std::vector< Connection > | getConnections () const =0 |
| virtual std::size_t | numConnections () const =0 |
Public Member Functions inherited from smgl::Port | |
| virtual bool | update ()=0 |
| virtual void | notify (State s)=0 |
| State | state () const |
| void | setState (State s) |
| void | setParent (Node *p) |
| virtual Metadata | serialize ()=0 |
| virtual void | deserialize (const Metadata &m)=0 |
Public Member Functions inherited from smgl::UniquelyIdentifiable | |
| auto | uuid () const -> Uuid |
| void | setUuid (const Uuid &uuid) |
Protected Member Functions | |
| Output () | |
| ~Output () override=default | |
| virtual void | connect (Input *ip)=0 |
| virtual void | disconnect (Input *ip)=0 |
Protected Member Functions inherited from smgl::Port | |
| Port ()=default | |
| Port (State s) | |
| virtual | ~Port ()=default |
Protected Member Functions inherited from smgl::UniquelyIdentifiable | |
| UniquelyIdentifiable ()=default | |
Private Attributes | |
| friend | Input |
Friends | |
| void | connect (Output &op, Input &ip) |
| Connect an output port to an input port. | |
| void | disconnect (Output &op, Input &ip) |
| Disconnect an output port and input port. | |
Additional Inherited Members | |
Public Types inherited from smgl::Port | |
| enum class | State { Idle , Waiting , Queued , Error } |
Protected Attributes inherited from smgl::Port | |
| State | state_ {State::Idle} |
| Node * | parent_ {nullptr} |
Protected Attributes inherited from smgl::UniquelyIdentifiable | |
| Uuid | uuid_ {Uuid::Uuid4()} |
|
protected |
Default constructor
|
overrideprotecteddefault |
Default destructor
|
protectedpure virtual |
Connect to an input port
Implemented in smgl::OutputPort< T, Args >.
|
protectedpure virtual |
Disconnect from an input port
Implemented in smgl::OutputPort< T, Args >.
|
pure virtual |
Get a list of port connections
Implemented in smgl::OutputPort< T, Args >.
|
pure virtual |
Get the number of port connections
Implemented in smgl::OutputPort< T, Args >.
Connect an output port to an input port.
Friend: smgl::connect
| smgl::bad_connection | if port instances do not share underlying type T |
Disconnect an output port and input port.
Friend: smgl::disconnect
Does nothing if ports are not connected
|
private |