Hedgehog  3.1.0
A library to generate hybrid pipeline workflow systems
Loading...
Searching...
No Matches
hh::behavior::SwitchRule< Input > Class Template Referenceabstract

Switch rule behavior abstraction for a type of input. More...

#include "switch_rule.h"

Inheritance diagram for hh::behavior::SwitchRule< Input >:
Inheritance graph
Collaboration diagram for hh::behavior::SwitchRule< Input >:
Collaboration graph

Public Member Functions

 SwitchRule ()=default
 Default constructor.
 
virtual ~SwitchRule ()=default
 Default destructor.
 
virtual bool sendToGraph (std::shared_ptr< Input > &data, size_t const &graphId)=0
 Switch rule to determine if data should be sent to the graph graphId managed by an AbstractExecutionPipeline.
 

Detailed Description

template<class Input>
class hh::behavior::SwitchRule< Input >

Switch rule behavior abstraction for a type of input.

Template Parameters
InputsType of switch's input

Definition at line 32 of file switch_rule.h.

Constructor & Destructor Documentation

◆ SwitchRule()

template<class Input >
hh::behavior::SwitchRule< Input >::SwitchRule ( )
default

Default constructor.

◆ ~SwitchRule()

template<class Input >
virtual hh::behavior::SwitchRule< Input >::~SwitchRule ( )
virtualdefault

Default destructor.

Member Function Documentation

◆ sendToGraph()

template<class Input >
virtual bool hh::behavior::SwitchRule< Input >::sendToGraph ( std::shared_ptr< Input > &  data,
size_t const &  graphId 
)
pure virtual

Switch rule to determine if data should be sent to the graph graphId managed by an AbstractExecutionPipeline.

Parameters
dataData to be sent to Graph graphId
graphIdGraph Id
Returns
True if the data should be sent to the Graph graphId, else False