Hedgehog
3.1.0
A library to generate hybrid pipeline workflow systems
|
Copy interface used to copy a node when either a group of nodes is created or a node is duplicated when an execution pipeline is created. More...
#include "copyable.h"
Public Member Functions | |
Copyable (size_t const numberThreads) | |
Copyable constructor, set the number of threads for a node. | |
virtual | ~Copyable ()=default |
Default destructor. | |
size_t | numberThreads () const |
Number of threads accessor. | |
std::vector< NodeType const * > | group () const |
Get the group of nodes that hold the current nodes. | |
virtual std::shared_ptr< NodeType > | copy () |
Copy method called to either create a group of node or duplicate a node when an execution pipeline is created. | |
Private Attributes | |
size_t const | numberThreads_ = 0 |
Number of threads. | |
Copy interface used to copy a node when either a group of nodes is created or a node is duplicated when an execution pipeline is created.
NodeType | Type of node |
Definition at line 37 of file copyable.h.
|
inlineexplicit |
Copyable constructor, set the number of threads for a node.
numberThreads | Number of threads attached to a node to form a group |
Definition at line 44 of file copyable.h.
|
virtualdefault |
Default destructor.
|
inlinevirtual |
Copy method called to either create a group of node or duplicate a node when an execution pipeline is created.
Reimplemented in hh::StateManager< Separator, AllTypes >, and hh::StateManager< Separator, AllTypes... >.
Definition at line 82 of file copyable.h.
|
inline |
Get the group of nodes that hold the current nodes.
Definition at line 55 of file copyable.h.
|
inline |
Number of threads accessor.
Definition at line 51 of file copyable.h.
|
private |
Number of threads.
Definition at line 39 of file copyable.h.