Opm::FunctionRunnerTasklet< Fn > Class Template Reference

A simple tasklet that runs a function that returns void and does not take any arguments a given number of times. More...

#include <tasklets.hh>

Inheritance diagram for Opm::FunctionRunnerTasklet< Fn >:
Inheritance graph

Public Member Functions

 FunctionRunnerTasklet (const FunctionRunnerTasklet &)=default
 
 FunctionRunnerTasklet (int numInvocations, const Fn &fn)
 
void run () override
 
virtual bool isEndMarker () const
 
void dereference ()
 
int referenceCount () const
 

Detailed Description

template<class Fn>
class Opm::FunctionRunnerTasklet< Fn >

A simple tasklet that runs a function that returns void and does not take any arguments a given number of times.

Constructor & Destructor Documentation

◆ FunctionRunnerTasklet() [1/2]

template<class Fn >
Opm::FunctionRunnerTasklet< Fn >::FunctionRunnerTasklet ( const FunctionRunnerTasklet< Fn > &  )
default

◆ FunctionRunnerTasklet() [2/2]

template<class Fn >
Opm::FunctionRunnerTasklet< Fn >::FunctionRunnerTasklet ( int  numInvocations,
const Fn &  fn 
)
inline

Member Function Documentation

◆ dereference()

void Opm::TaskletInterface::dereference ( )
inlineinherited

◆ isEndMarker()

virtual bool Opm::TaskletInterface::isEndMarker ( ) const
inlinevirtualinherited

◆ referenceCount()

int Opm::TaskletInterface::referenceCount ( ) const
inlineinherited

◆ run()

template<class Fn >
void Opm::FunctionRunnerTasklet< Fn >::run ( )
inlineoverridevirtual

Implements Opm::TaskletInterface.


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