rutz::mem_functor_base< mem_func > Class Template Reference

mem_functor_base adapts a member function to an ordinary operator(). More...

#include <rutz/functors.h>

Inheritance diagram for rutz::mem_functor_base< mem_func >:

Inheritance graph
[legend]
Collaboration diagram for rutz::mem_functor_base< mem_func >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef func_traits< mem_func >
::retn_t 
R
typedef func_traits< mem_func >
::class_t 
C
typedef func::retn_t retn_t

Public Member Functions

 mem_functor_base (mem_func f)
template<class ptr>
operator() (ptr obj)
 Function-call operator for object + 0 args.
template<class ptr, class P1>
operator() (ptr obj, P1 p1)
 Function-call operator for object + 1 arg.
template<class ptr, class P1, class P2>
operator() (ptr obj, P1 p1, P2 p2)
 Function-call operator for object + 2 args.
template<class ptr, class P1, class P2, class P3>
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>
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>
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>
operator() (ptr obj, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6)
 Function-call operator for object + 6 args.


Detailed Description

template<class mem_func>
class rutz::mem_functor_base< mem_func >

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.


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

The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Wed Dec 3 06:56:40 2008 by Doxygen version 1.5.5.