Base class for objects that are named. More...
#include <named.h>
Public Member Functions | |
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. | |
Base class for objects that are named.
This class is used to name all objects in the flow namespaces. The names of objects are then used to reference them. Names can also help debugging node connections since pipe and pin names are typically generated from the names of the nodes they connect.
|
inline |
Constructor the takes a name.
name_r | The name of this object. |
|
inlinevirtual |
Sets this object's name to a new name.
Reimplemented in flow::transformer< C, P >, flow::transformer< T, T >, flow::consumer< T >, flow::consumer< C >, flow::producer< T >, flow::producer< P >, flow::outpin< T >, flow::outpin< P >, flow::inpin< T >, and flow::inpin< C >.