distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
estd::TypeErasedFunctor< R(Args...), false > Class Template Referenceabstract

TypeErasedFunctor class is an interface for type-erased functors. More...

#include <TypeErasedFunctor.hpp>

Public Member Functions

virtual R operator() (Args... args) const =0
 Function call operator of TypeErasedFunctor. More...
 

Protected Member Functions

 ~TypeErasedFunctor ()
 TypeErasedFunctor's destructor. More...
 

Detailed Description

template<typename R, typename... Args>
class estd::TypeErasedFunctor< R(Args...), false >

TypeErasedFunctor class is an interface for type-erased functors.

Overload with const operator()().

Template Parameters
Ris the type returned by TypeErasedFunctor::operator()() const
Argsare the types of arguments for TypeErasedFunctor::operator()() const

Constructor & Destructor Documentation

◆ ~TypeErasedFunctor()

template<typename R , typename... Args>
estd::TypeErasedFunctor< R(Args...), false >::~TypeErasedFunctor ( )
inlineprotected

TypeErasedFunctor's destructor.

Note
Polymorphic objects of TypeErasedFunctor type must not be deleted via pointer/reference

Member Function Documentation

◆ operator()()

template<typename R , typename... Args>
virtual R estd::TypeErasedFunctor< R(Args...), false >::operator() ( Args...  args) const
pure virtual

Function call operator of TypeErasedFunctor.

Parameters
[in,out]argsare arguments for derived function
Returns
value returned by derived function

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