Public Types |
enum | { NUM_OF_PARAMS = tBase::NUM_OF_PARAMS
} |
| Number of parameters. More...
|
typedef CFunctorBase< R, P1,
P2, P3, P4 > | tBase |
| Type definitions.
|
typedef tBase::tParam1 | tParam1 |
typedef tBase::tParam2 | tParam2 |
typedef tBase::tParam3 | tParam3 |
typedef tBase::tParam4 | tParam4 |
typedef tBase::tResult | tResult |
Public Member Functions |
| CFunctor () |
| Default constructor.
|
| CFunctor (const CFunctor &Functor) |
| Copy constructor.
|
template<typename F > |
| CFunctor (F Func) |
| Constructor creates functor encapsulating any function.
|
template<class O , typename F > |
| CFunctor (const O &pObject, F pMemFunc) |
| Constructor creates functor encapsulating pointer to member function.
|
tResult | operator() () |
| Function operators.
|
tResult | operator() (tParam1 p1) |
tResult | operator() (tParam1 p1, tParam2 p2) |
tResult | operator() (tParam1 p1, tParam2 p2, tParam3 p3) |
tResult | operator() (tParam1 p1, tParam2 p2, tParam3 p3, tParam4 p4) |
CFunctor & | operator= (const CFunctor &Functor) |
| Assignment operator.
|
template<typename R, typename P1 = tNull, typename P2 = tNull, typename P3 = tNull, typename P4 = tNull>
class mds::base::CFunctor< R, P1, P2, P3, P4 >
Generalized functor implementation.
- Allowed are up to four arguments.
template<typename R, typename P1 = tNull, typename P2 = tNull, typename P3 = tNull, typename P4 = tNull>
template<class O , typename F >
Constructor creates functor encapsulating pointer to member function.