ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Common::Functor0Mem< Res, T > Class Template Reference

Functor object for a class member function without parameter. More...

#include <func.h>

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

List of all members.

Public Types

typedef Res(T::* FuncType )()

Public Member Functions

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

Private Attributes

T * _t
const FuncType _func

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();

Definition at line 380 of file func.h.


Member Typedef Documentation

template<class Res , class T >
typedef Res(T::* Common::Functor0Mem< Res, T >::FuncType)()

Definition at line 382 of file func.h.


Constructor & Destructor Documentation

template<class Res , class T >
Common::Functor0Mem< Res, T >::Functor0Mem ( T *  t,
const FuncType func 
) [inline]

Definition at line 384 of file func.h.


Member Function Documentation

template<class Res , class T >
bool Common::Functor0Mem< Res, T >::isValid (  )  const [inline, virtual]

Implements Common::Functor0< Res >.

Definition at line 386 of file func.h.

template<class Res , class T >
Res Common::Functor0Mem< Res, T >::operator() (  )  const [inline, virtual]

Implements Common::Functor0< Res >.

Definition at line 387 of file func.h.


Member Data Documentation

template<class Res , class T >
const FuncType Common::Functor0Mem< Res, T >::_func [private]

Definition at line 392 of file func.h.

template<class Res , class T >
T* Common::Functor0Mem< Res, T >::_t [mutable, private]

Definition at line 391 of file func.h.


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


Generated on Sat Nov 9 2019 05:01:54 for ResidualVM by doxygen 1.7.1
curved edge   curved edge