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

Common::Functor1Mem< Arg, Res, T > Class Template Reference

Functor object for an unary class member function. More...

#include <func.h>

Inheritance diagram for Common::Functor1Mem< Arg, Res, T >:
Collaboration diagram for Common::Functor1Mem< Arg, Res, T >:

List of all members.

Public Types

typedef Res(T::* FuncType )(Arg)

Public Member Functions

 Functor1Mem (T *t, const FuncType &func)
bool isValid () const
Res operator() (Arg v1) const

Private Attributes

T * _t
const FuncType _func

Detailed Description

template<class Arg, class Res, class T>
class Common::Functor1Mem< Arg, Res, T >

Functor object for an unary class member function.

Usage is like with Functor0Mem. The resulting functor object will take one parameter though.

See also:
Functor0Mem

Definition at line 443 of file func.h.


Member Typedef Documentation

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

Definition at line 445 of file func.h.


Constructor & Destructor Documentation

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

Definition at line 447 of file func.h.


Member Function Documentation

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

Implements Common::Functor1< Arg, Res >.

Definition at line 449 of file func.h.

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

Implements Common::Functor1< Arg, Res >.

Definition at line 450 of file func.h.


Member Data Documentation

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

Definition at line 455 of file func.h.

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

Definition at line 454 of file func.h.


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


Generated on Sat Jul 13 2019 05:03:41 for ResidualVM by doxygen 1.7.1
curved edge   curved edge