2#include <Core/Utils/TypesUtils.hpp>
3#include <Dataflow/Core/Node.hpp>
50 RA_NODE_PORT_IN( T, from );
51 RA_NODE_PORT_OUT( T,
data );
62 Node( instanceName, typeName ) {}
71 if ( is_initialized() && m_port_in_from->has_data() ) {
72 m_port_out_data->set_data( &m_port_in_from->data() );
80 if ( m_port_out_data->has_data() )
return m_port_out_data->data();
86 if ( m_port_out_data->has_data() )
return m_port_out_data->data();
93 std::string {
"Sink<" } + Ra::Core::Utils::simplifiedDemangledType<T>() +
">";
Base abstract class for all the nodes added and used by the node system.
virtual void init()
Initializes the node content.
virtual bool fromJsonInternal(const nlohmann::json &data)
Internal json representation of the Node.
virtual void toJsonInternal(nlohmann::json &data) const
Internal json representation of the Node.
Base class for nodes that will store the result of a computation graph.
void toJsonInternal(nlohmann::json &data) const override
Internal json representation of the Node.
bool execute() override
Executes the node.
void init() override
initialize the interface port data pointer
const T & data_reference() const
bool fromJsonInternal(const nlohmann::json &data) override
Internal json representation of the Node.
hepler function to manage enum as underlying types in VariableSet