functors.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  rutz

Classes

struct  rutz::func_args< R, A1, A2, A3, A4, A5, A6, A7, A8 >
 Holds typedefs for the types of a function's arguments and return value. More...
struct  rutz::func_traits< func >
 A traits class for holding information about functions/functors. More...
struct  rutz::rutz::func_traits< R(*)()>
 Specialization for free functions with no arguments. More...
struct  rutz::rutz::func_traits< R(*)(P1)>
 Specialization for free functions with 1 argument. More...
struct  rutz::rutz::func_traits< R(*)(P1, P2)>
 Specialization for free functions with 2 arguments. More...
struct  rutz::rutz::func_traits< R(*)(P1, P2, P3)>
 Specialization for free functions with 3 arguments. More...
struct  rutz::rutz::func_traits< R(*)(P1, P2, P3, P4)>
 Specialization for free functions with 4 arguments. More...
struct  rutz::rutz::func_traits< R(*)(P1, P2, P3, P4, P5)>
 Specialization for free functions with 5 arguments. More...
struct  rutz::rutz::func_traits< R(*)(P1, P2, P3, P4, P5, P6)>
 Specialization for free functions with 6 arguments. More...
struct  rutz::rutz::func_traits< R(C::*)()>
 Specialization for member functions with "this" plus 0 arguments. More...
struct  rutz::rutz::func_traits< R(C::*)() const >
 Specialization for member functions with "this" plus 0 arguments. More...
struct  rutz::rutz::func_traits< R(C::*)(P1)>
 Specialization for member functions with "this" plus 1 argument. More...
struct  rutz::rutz::func_traits< R(C::*)(P1) const >
 Specialization for member functions with "this" plus 1 argument. More...
struct  rutz::rutz::func_traits< R(C::*)(P1, P2)>
 Specialization for member functions with "this" plus 2 arguments. More...
struct  rutz::rutz::func_traits< R(C::*)(P1, P2) const >
 Specialization for member functions with "this" plus 2 arguments. More...
struct  rutz::rutz::func_traits< R(C::*)(P1, P2, P3)>
 Specialization for member functions with "this" plus 3 arguments. More...
struct  rutz::rutz::func_traits< R(C::*)(P1, P2, P3) const >
 Specialization for member functions with "this" plus 3 arguments. More...
struct  rutz::rutz::func_traits< R(C::*)(P1, P2, P3, P4)>
 Specialization for member functions with "this" plus 4 arguments. More...
struct  rutz::rutz::func_traits< R(C::*)(P1, P2, P3, P4) const >
 Specialization for member functions with "this" plus 4 arguments. More...
struct  rutz::rutz::func_traits< R(C::*)(P1, P2, P3, P4, P5)>
 Specialization for member functions with "this" plus 5 arguments. More...
struct  rutz::rutz::func_traits< R(C::*)(P1, P2, P3, P4, P5) const >
 Specialization for member functions with "this" plus 5 arguments. More...
struct  rutz::rutz::func_traits< R(C::*)(P1, P2, P3, P4, P5, P6)>
 Specialization for member functions with "this" plus 6 arguments. More...
struct  rutz::rutz::func_traits< R(C::*)(P1, P2, P3, P4, P5, P6) const >
 Specialization for member functions with "this" plus 6 arguments. More...
struct  rutz::rutz::func_traits< mem_functor_base< MF > >
 func_traits specialization for mem_functor_base. More...
class  rutz::mem_functor_base< mem_func >
 mem_functor_base adapts a member function to an ordinary operator(). More...
struct  rutz::mem_functor< mem_func >
 mem_functor extends mem_functor_base smart pointers for "this". More...
struct  rutz::functor_of< fptr >
 Traits struct for specifying a "functor" type given a function pointer. More...
struct  rutz::rutz::functor_of< R(C::*)() >
 Specialization for zero-arg mem func. More...
struct  rutz::rutz::functor_of< R(C::*)() const >
 Specialization for zero-arg const mem func. More...
struct  rutz::rutz::functor_of< R(C::*)(P1) >
 Specialization for one-arg mem func. More...
struct  rutz::rutz::functor_of< R(C::*)(P1) const >
 Specialization for one-arg const mem func. More...
struct  rutz::rutz::functor_of< R(C::*)(P1, P2) >
 Specialization for two-arg mem func. More...
struct  rutz::rutz::functor_of< R(C::*)(P1, P2) const >
 Specialization for two-arg const mem func. More...
struct  rutz::rutz::functor_of< R(C::*)(P1, P2, P3) >
 Specialization for three-arg mem func. More...
struct  rutz::rutz::functor_of< R(C::*)(P1, P2, P3) const >
 Specialization for three-arg const mem func. More...
struct  rutz::rutz::functor_of< R(C::*)(P1, P2, P3, P4) >
 Specialization for four-arg mem func. More...
struct  rutz::rutz::functor_of< R(C::*)(P1, P2, P3, P4) const >
 Specialization for four-arg const mem func. More...
struct  rutz::rutz::functor_of< R(C::*)(P1, P2, P3, P4, P5) >
 Specialization for 5-arg mem func. More...
struct  rutz::rutz::functor_of< R(C::*)(P1, P2, P3, P4, P5) const >
 Specialization for 5-arg const mem func. More...
struct  rutz::rutz::functor_of< R(C::*)(P1, P2, P3, P4, P5, P6) >
 Specialization for 6-arg mem func. More...
struct  rutz::rutz::functor_of< R(C::*)(P1, P2, P3, P4, P5, P6) const >
 Specialization for 6-arg const mem func. More...
struct  rutz::rutz::func_traits< bound_first< base_functor, bound_t > >
 func_traits specialization for bound_first. More...
class  rutz::bound_first< base_functor, bound_t >
 bound_first wraps another functor type with a fixed first argument. More...
struct  rutz::rutz::func_traits< bound_last< base_functor, bound_t > >
 func_traits specialization for bound_last. More...
class  rutz::bound_last< base_functor, bound_t >
 bound_last wraps another functor type with a fixed last argument. More...

Functions

template<class MF>
mem_functor< MF > rutz::mem_func (MF mf)
 Factory function to make a mem_functor from any member function.
template<class fptr>
functor_of< fptr >::type rutz::build_functor (fptr f)
 Factory function for building a "functor" from any function pointer.
template<class base_functor, class bound_t>
bound_first< base_functor,
bound_t > 
rutz::bind_first (base_functor base, bound_t bound)
 Factory function for creating bound_first functors.
template<class base_functor, class bound_t>
bound_last< base_functor, bound_t > rutz::bind_last (base_functor base, bound_t bound)
 Factory function for creating bound_last functors.


Detailed Description

template mechanisms for determine parameter types and return types of functions or general functors

Definition in file functors.h.


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