Base class for nodes' ports A port is a strongly typed extremity of connections between nodes.
More...
#include <Dataflow/Core/Port.hpp>
Base class for nodes' ports A port is a strongly typed extremity of connections between nodes.
- Warning
- when comparing and using typed port, beware of the const qualifier that is not always exposed by the C++ type system. There are some undefined behavior concerning const_casts and const qualifier in the C++ documentation (https://en.cppreference.com/w/cpp/language/const_cast).
Definition at line 29 of file Port.hpp.
◆ PortBase()
- Parameters
-
name | The name of the port. |
type | The data's type's hash. |
node | The pointer to the node associated with the port. |
Definition at line 44 of file Port.hpp.
◆ from_json()
virtual void Ra::Dataflow::Core::PortBase::from_json |
( |
const nlohmann::json & | data | ) |
|
|
inlinevirtual |
◆ has_data()
virtual bool Ra::Dataflow::Core::PortBase::has_data |
( |
| ) |
|
|
pure virtual |
◆ name()
const std::string & Ra::Dataflow::Core::PortBase::name |
( |
| ) |
const |
|
inline |
Gets the port's name.
Definition at line 52 of file Port.hpp.
◆ node()
Node * Ra::Dataflow::Core::PortBase::node |
( |
| ) |
const |
|
inline |
Gets a pointer to the node this port belongs to.
Definition at line 58 of file Port.hpp.
◆ port_typename()
std::string Ra::Dataflow::Core::PortBase::port_typename |
( |
| ) |
const |
|
inline |
Gets the human readable type of the port object.
- Returns
- The simplified demangled type.
Definition at line 62 of file Port.hpp.
◆ set_name()
void Ra::Dataflow::Core::PortBase::set_name |
( |
const std::string & | name | ) |
|
|
inline |
Set's port name.
Definition at line 54 of file Port.hpp.
◆ to_json()
virtual void Ra::Dataflow::Core::PortBase::to_json |
( |
nlohmann::json & | data | ) |
|
|
inlinevirtual |
◆ type()
Gets the type of the data (efficient for comparisons).
Definition at line 56 of file Port.hpp.
The documentation for this class was generated from the following file:
- /home/runner/work/Radium-Engine/Radium-Engine/src/Radium-Engine/src/Dataflow/Core/Port.hpp