API for managing functions.
Macros | |
#define | GENERATE_TRIVIAL_HASH_FUNCTOR(T) |
Functions | |
template<class Op > | |
Binder1st< Op > | Common::bind1st (const Op &op, typename Op::FirstArgumentType t) |
template<class Op > | |
Binder2nd< Op > | Common::bind2nd (const Op &op, typename Op::SecondArgumentType t) |
template<class Arg , class Result > | |
PointerToUnaryFunc< Arg, Result > | Common::ptr_fun (Result(*func)(Arg)) |
template<class Arg1 , class Arg2 , class Result > | |
PointerToBinaryFunc< Arg1, Arg2, Result > | Common::ptr_fun (Result(*func)(Arg1, Arg2)) |
template<class Result , class T > | |
MemFunc0< Result, T > | Common::mem_fun (Result(T::*f)()) |
template<class Result , class Arg , class T > | |
MemFunc1< Result, Arg, T > | Common::mem_fun (Result(T::*f)(Arg)) |
template<class Result , class T > | |
MemFuncRef0< Result, T > | Common::mem_fun_ref (Result(T::*f)()) |
template<class Result , class T > | |
ConstMemFuncRef0< Result, T > | Common::mem_fun_Ref (Result(T::*f)() const) |
template<class Result , class Arg , class T > | |
MemFuncRef1< Result, Arg, T > | Common::mem_fun_ref (Result(T::*f)(Arg)) |
#define GENERATE_TRIVIAL_HASH_FUNCTOR | ( | T | ) |
|
inline |
Transforms a binary function object into an unary function object. To achieve that the first parameter is bound to the passed value t.
|
inline |
Transforms a binary function object into an unary function object. To achieve that the first parameter is bound to the passed value t.
|
inline |
Creates an unary function object from a function pointer.
|
inline |
Creates a binary function object from a function pointer.
|
inline |
Creates a unary function object from a class member function pointer. The parameter passed to the function object is the 'this' pointer to be used for the function call.
|
inline |
Creates a binary function object from a class member function pointer. The first parameter passed to the function object is the 'this' pointer to be used for the function call. The second one is the parameter passed to the member function.
|
inline |
Creates a unary function object from a class member function pointer. The parameter passed to the function object is the object instance to be used for the function call. Note unlike mem_fun, it takes a reference as parameter. Note unlike mem_fun, it takes a reference as parameter.
|
inline |
Creates a unary function object from a class member function pointer. The parameter passed to the function object is the object instance to be used for the function call. Note unlike mem_fun, it takes a reference as parameter.
|
inline |
Creates a binary function object from a class member function pointer. The first parameter passed to the function object is the object instance to be used for the function call. Note unlike mem_fun, it takes a reference as parameter. The second one is the parameter passed to the member function.