STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types | Protected Member Functions
stapl::terminator_base Class Referenceabstract

Base class for termination detection. More...

Public Member Functions

virtual void operator() (void)=0
 Starts this terminator if required.
 
template<typename Notifier >
void set_notifier (Notifier &&notifier)
 Sets the function to be called when termination is detected.
 
virtual size_type iterations (void) const noexcept=0
 Returns the number of times the terminator has iterated.
 

Public Types

using size_type = std::size_t
 

Protected Member Functions

void call_notifier (void) const
 Calls the registered notifier when the terminator has finished.
 

Detailed Description

Base class for termination detection.

All termination detectors must inherit from this class.


The documentation for this class was generated from the following file: