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

Common::Functor2Mem< Arg1, Arg2, Res, T > Class Template Reference

Functor object for a binary class member function. More...

#include <func.h>

Inheritance diagram for Common::Functor2Mem< Arg1, Arg2, Res, T >:
Collaboration diagram for Common::Functor2Mem< Arg1, Arg2, Res, T >:

List of all members.

Public Types

typedef Res(T::* FuncType )(Arg1, Arg2)

Public Member Functions

 Functor2Mem (T *t, const FuncType &func)
bool isValid () const
Res operator() (Arg1 v1, Arg2 v2) const

Private Attributes

T * _t
const FuncType _func

Detailed Description

template<class Arg1, class Arg2, class Res, class T>
class Common::Functor2Mem< Arg1, Arg2, Res, T >

Functor object for a binary class member function.

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

See also:
Functor0Mem

Definition at line 499 of file func.h.


Member Typedef Documentation

template<class Arg1 , class Arg2 , class Res , class T >
typedef Res(T::* Common::Functor2Mem< Arg1, Arg2, Res, T >::FuncType)(Arg1, Arg2)

Definition at line 501 of file func.h.


Constructor & Destructor Documentation

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

Definition at line 503 of file func.h.


Member Function Documentation

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

Implements Common::Functor2< Arg1, Arg2, Res >.

Definition at line 505 of file func.h.

template<class Arg1 , class Arg2 , class Res , class T >
Res Common::Functor2Mem< Arg1, Arg2, Res, T >::operator() ( Arg1  v1,
Arg2  v2 
) const [inline, virtual]

Implements Common::Functor2< Arg1, Arg2, Res >.

Definition at line 506 of file func.h.


Member Data Documentation

template<class Arg1 , class Arg2 , class Res , class T >
const FuncType Common::Functor2Mem< Arg1, Arg2, Res, T >::_func [private]

Definition at line 511 of file func.h.

template<class Arg1 , class Arg2 , class Res , class T >
T* Common::Functor2Mem< Arg1, Arg2, Res, T >::_t [mutable, private]

Definition at line 510 of file func.h.


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


Generated on Sat Mar 16 2019 05:05:37 for ResidualVM by doxygen 1.7.1
curved edge   curved edge