ScummVM API documentation
Common::Functor0Mem< Res, T > Class Template Reference

#include <func.h>

Inheritance diagram for Common::Functor0Mem< Res, T >:
Common::Functor0< Res >

Public Types

typedef Res(T::* FuncType) ()
 

Public Member Functions

 Functor0Mem (T *t, const FuncType &func)
 
bool isValid () const
 
Res operator() () const
 

Detailed Description

template<class Res, class T>
class Common::Functor0Mem< Res, T >

Functor object for a class member function without parameter.

Example creation:

Foo bar; Functor0Mem<void, Foo> myFunctor(&bar, &Foo::myFunc);

Example usage:

myFunctor();


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