Hedgehog  3.1.0
A library to generate hybrid pipeline workflow systems
Loading...
Searching...
No Matches
hh::core::implementor::DefaultExecute< Input > Class Template Reference

Default execute implementor, only calls user-defined execute method in behavior::Execute interface. More...

#include "default_execute.h"

Inheritance diagram for hh::core::implementor::DefaultExecute< Input >:
Inheritance graph
Collaboration diagram for hh::core::implementor::DefaultExecute< Input >:
Collaboration graph

Public Member Functions

 DefaultExecute (behavior::Execute< Input > *const executeNode)
 Constructor needing a behavior::Execute implementation (user-defined implementation of behavior::Execute)
 
virtual ~DefaultExecute ()=default
 Default destructor.
 
void execute (std::shared_ptr< Input > data) override
 Interface to user defined execute method (behavior::Execute)
 
- Public Member Functions inherited from hh::core::implementor::ImplementorExecute< Input >
 ImplementorExecute ()=default
 Default constructor.
 
virtual ~ImplementorExecute ()=default
 Default destructor.
 
virtual void execute (std::shared_ptr< Input > data)=0
 Execute method for a piece of data.
 

Private Attributes

behavior::Execute< Input > *const executeNode_ = nullptr
 User abstraction for doing computation on data.
 

Detailed Description

template<class Input>
class hh::core::implementor::DefaultExecute< Input >

Default execute implementor, only calls user-defined execute method in behavior::Execute interface.

Template Parameters
InputInput data type

Definition at line 36 of file default_execute.h.

Constructor & Destructor Documentation

◆ DefaultExecute()

template<class Input >
hh::core::implementor::DefaultExecute< Input >::DefaultExecute ( behavior::Execute< Input > *const  executeNode)
inlineexplicit

Constructor needing a behavior::Execute implementation (user-defined implementation of behavior::Execute)

Parameters
executeNodeNode inheriting from behavior::Execute

Definition at line 42 of file default_execute.h.

◆ ~DefaultExecute()

template<class Input >
virtual hh::core::implementor::DefaultExecute< Input >::~DefaultExecute ( )
virtualdefault

Default destructor.

Member Function Documentation

◆ execute()

template<class Input >
void hh::core::implementor::DefaultExecute< Input >::execute ( std::shared_ptr< Input >  data)
inlineoverridevirtual

Interface to user defined execute method (behavior::Execute)

Parameters
dataData to transmit

Implements hh::core::implementor::ImplementorExecute< Input >.

Definition at line 53 of file default_execute.h.

Member Data Documentation

◆ executeNode_

template<class Input >
behavior::Execute<Input>* const hh::core::implementor::DefaultExecute< Input >::executeNode_ = nullptr
private

User abstraction for doing computation on data.

Definition at line 37 of file default_execute.h.