Hedgehog
3.1.0
A library to generate hybrid pipeline workflow systems
|
Behavior abstraction for TaskNode. More...
#include "task_node.h"
Public Member Functions | |
TaskNode (std::shared_ptr< hh::core::abstraction::TaskNodeAbstraction > core) | |
Constructor using a core. | |
~TaskNode () override=default | |
Default destructor. | |
std::shared_ptr< AbstractMemoryManager > const & | memoryManager () const |
Memory manager accessor. | |
void | connectMemoryManager (std::shared_ptr< AbstractMemoryManager > mm) |
Connect a memory manager to a task. | |
std::shared_ptr< ManagedMemory > | getManagedMemory () |
Get a managed memory for the memory manager attached to the task, can block if none are available at the time of the call. | |
virtual void | initialize () |
initialize step for the task | |
virtual void | shutdown () |
shutdown step for the task | |
virtual std::string | extraPrintingInformation () const |
Print extra information for the task. | |
![]() | |
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< AbstractMemoryManager > | mm_ = nullptr |
Memory manager attached to the task. | |
std::shared_ptr< hh::core::abstraction::TaskNodeAbstraction > const | taskNodeAbstraction_ = nullptr |
Core abstraction for the task. | |
Behavior abstraction for TaskNode.
Proposed abstraction for attached memory manager and user overloadable method (initialize, shutdown, extraPrintingInformation)
Definition at line 35 of file task_node.h.
|
inlineexplicit |
|
overridedefault |
Default destructor.
|
inline |
Connect a memory manager to a task.
mm | Memory manager to attach to t he node |
Definition at line 57 of file task_node.h.
|
inlinevirtual |
Print extra information for the task.
Definition at line 89 of file task_node.h.
|
inline |
Get a managed memory for the memory manager attached to the task, can block if none are available at the time of the call.
std::runtime_error | if no memory manager is attached to the task |
Definition at line 63 of file task_node.h.
|
inlinevirtual |
initialize step for the task
Reimplemented in hh::AbstractCUDATask< Separator, AllTypes >.
Definition at line 82 of file task_node.h.
|
inline |
Memory manager accessor.
Definition at line 53 of file task_node.h.
|
inlinevirtual |
shutdown step for the task
Reimplemented in hh::AbstractCUDATask< Separator, AllTypes >.
Definition at line 85 of file task_node.h.
|
private |
Memory manager attached to the task.
Definition at line 38 of file task_node.h.
|
private |
Core abstraction for the task.
Definition at line 40 of file task_node.h.