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

Behavior abstraction for nodes that expose termination condition. More...

#include "can_terminate.h"

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

Public Member Functions

 CanTerminate ()=default
 Default constructor.
 
virtual ~CanTerminate ()=default
 Default destructor.
 
virtual bool canTerminate () const =0
 Termination condition.
 

Detailed Description

Behavior abstraction for nodes that expose termination condition.

Definition at line 30 of file can_terminate.h.

Constructor & Destructor Documentation

◆ CanTerminate()

hh::behavior::CanTerminate::CanTerminate ( )
default

Default constructor.

◆ ~CanTerminate()

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

Default destructor.

Member Function Documentation

◆ canTerminate()

virtual bool hh::behavior::CanTerminate::canTerminate ( ) const
pure virtual

Termination condition.

Returns
Returns true if the node can terminate, else false

Implemented in hh::StateManager< Separator, AllTypes >, hh::StateManager< Separator, AllTypes... >, hh::AbstractTask< Separator, AllTypes >, and hh::AbstractTask< Separator, AllTypes... >.

Here is the caller graph for this function: