Hedgehog  3.1.0
A library to generate hybrid pipeline workflow systems
Loading...
Searching...
No Matches
hh::behavior::Node Class Reference

Behavior abstraction for the base node. More...

#include "node.h"

Inheritance diagram for hh::behavior::Node:
Inheritance graph
Collaboration diagram for hh::behavior::Node:
Collaboration graph

Public Member Functions

 Node (std::shared_ptr< hh::core::abstraction::NodeAbstraction > core)
 Constructor's node.
 
virtual ~Node ()=default
 Default destructor.
 
std::shared_ptr< hh::core::abstraction::NodeAbstraction > const & core () const
 Core accessor.
 
std::string name () const
 Node's name accessor.
 

Private Attributes

std::shared_ptr< hh::core::abstraction::NodeAbstraction > const core_ = nullptr
 Node's core.
 

Detailed Description

Behavior abstraction for the base node.

Definition at line 32 of file node.h.

Constructor & Destructor Documentation

◆ Node()

hh::behavior::Node::Node ( std::shared_ptr< hh::core::abstraction::NodeAbstraction core)
inlineexplicit

Constructor's node.

Parameters
coreCore of the node
Exceptions
std::runtime_errorif the core is not valid

Definition at line 40 of file node.h.

Here is the caller graph for this function:

◆ ~Node()

virtual hh::behavior::Node::~Node ( )
virtualdefault

Default destructor.

Member Function Documentation

◆ core()

std::shared_ptr< hh::core::abstraction::NodeAbstraction > const & hh::behavior::Node::core ( ) const
inline

Core accessor.

Returns
Node's core

Definition at line 49 of file node.h.

Here is the caller graph for this function:

◆ name()

std::string hh::behavior::Node::name ( ) const
inline

Node's name accessor.

Returns
Node's name

Definition at line 53 of file node.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ core_

std::shared_ptr<hh::core::abstraction::NodeAbstraction> const hh::behavior::Node::core_ = nullptr
private

Node's core.

Definition at line 34 of file node.h.