mem_functor_base adapts a member function to an ordinary operator(). More...
#include <rutz/functors.h>
Public Types | |
typedef func_traits< mem_func > ::retn_t | R |
typedef func_traits< mem_func > ::class_t | C |
Public Member Functions | |
mem_functor_base (mem_func f) | |
template<class ptr > | |
R | operator() (ptr obj) |
Function-call operator for object + 0 args. | |
template<class ptr , class P1 > | |
R | operator() (ptr obj, P1 p1) |
Function-call operator for object + 1 arg. | |
template<class ptr , class P1 , class P2 > | |
R | operator() (ptr obj, P1 p1, P2 p2) |
Function-call operator for object + 2 args. | |
template<class ptr , class P1 , class P2 , class P3 > | |
R | operator() (ptr obj, P1 p1, P2 p2, P3 p3) |
Function-call operator for object + 3 args. | |
template<class ptr , class P1 , class P2 , class P3 , class P4 > | |
R | operator() (ptr obj, P1 p1, P2 p2, P3 p3, P4 p4) |
Function-call operator for object + 4 args. | |
template<class ptr , class P1 , class P2 , class P3 , class P4 , class P5 > | |
R | operator() (ptr obj, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) |
Function-call operator for object + 5 args. | |
template<class ptr , class P1 , class P2 , class P3 , class P4 , class P5 , class P6 > | |
R | operator() (ptr obj, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) |
Function-call operator for object + 6 args. |
mem_functor_base adapts a member function to an ordinary operator().
The "this" pointer is passed through the first argument of the operator() call, via a raw pointer or a smart pointer.
Definition at line 313 of file functors.h.
R rutz::mem_functor_base< mem_func >::operator() | ( | ptr | obj, | |
P1 | p1, | |||
P2 | p2, | |||
P3 | p3, | |||
P4 | p4, | |||
P5 | p5, | |||
P6 | p6 | |||
) | [inline] |
Function-call operator for object + 6 args.
Definition at line 372 of file functors.h.
R rutz::mem_functor_base< mem_func >::operator() | ( | ptr | obj, | |
P1 | p1, | |||
P2 | p2, | |||
P3 | p3, | |||
P4 | p4, | |||
P5 | p5 | |||
) | [inline] |
Function-call operator for object + 5 args.
Definition at line 364 of file functors.h.
R rutz::mem_functor_base< mem_func >::operator() | ( | ptr | obj, | |
P1 | p1, | |||
P2 | p2, | |||
P3 | p3, | |||
P4 | p4 | |||
) | [inline] |
Function-call operator for object + 4 args.
Definition at line 356 of file functors.h.
R rutz::mem_functor_base< mem_func >::operator() | ( | ptr | obj, | |
P1 | p1, | |||
P2 | p2, | |||
P3 | p3 | |||
) | [inline] |
Function-call operator for object + 3 args.
Definition at line 349 of file functors.h.
R rutz::mem_functor_base< mem_func >::operator() | ( | ptr | obj, | |
P1 | p1, | |||
P2 | p2 | |||
) | [inline] |
Function-call operator for object + 2 args.
Definition at line 342 of file functors.h.
R rutz::mem_functor_base< mem_func >::operator() | ( | ptr | obj, | |
P1 | p1 | |||
) | [inline] |
Function-call operator for object + 1 arg.
Definition at line 335 of file functors.h.
R rutz::mem_functor_base< mem_func >::operator() | ( | ptr | obj | ) | [inline] |
Function-call operator for object + 0 args.
Definition at line 328 of file functors.h.