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

#include <func.h>

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

Public Types

typedef Res(T::* FuncType) (Arg1, Arg2)
 
- Public Types inherited from Common::BinaryFunction< Arg1, Arg2, Res >
typedef Arg1 FirstArgumentType
 
typedef Arg2 SecondArgumentType
 
typedef Res ResultType
 

Public Member Functions

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

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

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