XX CMake Package
Loading...
Searching...
No Matches
XX::Function::Caller< tag > Class Template Referenceabstract

allows an instance of derived class to call functions on all other instance (ncluding itself) More...

#include <XXFunctionCaller.h>

Inheritance diagram for XX::Function::Caller< tag >:
XX::Function::AbstractCaller

Detailed Description

template<CompileTimeString tag>
class XX::Function::Caller< tag >

allows an instance of derived class to call functions on all other instance (ncluding itself)

Public Member Functions

 Caller ()
virtual ~Caller ()=0

Static Protected Member Functions

template<CallerClass TargetClass, typename... Args>
static void callOnAll (void(TargetClass::*function)(Args...), Args... values)
template<CallerClass TargetClass>
static void callOnAll (void(TargetClass::*function)())
static size_t instanceCount ()

Additional Inherited Members

Protected Member Functions inherited from XX::Function::AbstractCaller
 AbstractCaller ()=default

Constructor & Destructor Documentation

◆ Caller()

template<CompileTimeString tag>
XX::Function::Caller< tag >::Caller ( )

◆ ~Caller()

template<CompileTimeString tag>
virtual XX::Function::Caller< tag >::~Caller ( )
pure virtual

Member Function Documentation

◆ callOnAll() [1/2]

template<CompileTimeString tag>
template<CallerClass TargetClass>
void XX::Function::Caller< tag >::callOnAll ( void(TargetClass::* function )())
staticprotected

◆ callOnAll() [2/2]

template<CompileTimeString tag>
template<CallerClass TargetClass, typename... Args>
void XX::Function::Caller< tag >::callOnAll ( void(TargetClass::* function )(Args...),
Args... values )
staticprotected

◆ instanceCount()

template<CompileTimeString tag>
size_t XX::Function::Caller< tag >::instanceCount ( )
staticprotected

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