dlr::common::PointerToBinaryFunctionRA< ArgumentType0, ArgumentType1, ResultType > Class Template Reference

Functor template much like std::pointer_to_binary_function, but specifically for functions which take const reference arguments. More...

#include <functional.h>

List of all members.

Public Types

typedef ResultType(*) FunctionPtrType (const ArgumentType0 &, const ArgumentType1 &)
 Typedef describing what type of function is to be wrapped by this class.

Public Member Functions

 PointerToBinaryFunctionRA (FunctionPtrType functionPtr)
 Constructor requires a function pointer to wrap.
ResultType operator() (const ArgumentType0 &argument0, const ArgumentType0 &argument1) const
 Call the wrapped function pointer and return the result.


Detailed Description

template<class ArgumentType0, class ArgumentType1, class ResultType>
class dlr::common::PointerToBinaryFunctionRA< ArgumentType0, ArgumentType1, ResultType >

Functor template much like std::pointer_to_binary_function, but specifically for functions which take const reference arguments.

Currently, calling std::mem_fun() for such a function pointer causes "forming reference to reference" compile errors.

Definition at line 315 of file dlrCommon/functional.h.


Member Typedef Documentation

template<class ArgumentType0, class ArgumentType1, class ResultType>
typedef ResultType(*) dlr::common::PointerToBinaryFunctionRA< ArgumentType0, ArgumentType1, ResultType >::FunctionPtrType(const ArgumentType0 &, const ArgumentType1 &)

Typedef describing what type of function is to be wrapped by this class.

Definition at line 321 of file dlrCommon/functional.h.


Constructor & Destructor Documentation

template<class ArgumentType0, class ArgumentType1, class ResultType>
dlr::common::PointerToBinaryFunctionRA< ArgumentType0, ArgumentType1, ResultType >::PointerToBinaryFunctionRA ( FunctionPtrType  functionPtr  )  [inline, explicit]

Constructor requires a function pointer to wrap.

Definition at line 328 of file dlrCommon/functional.h.


Member Function Documentation

template<class ArgumentType0, class ArgumentType1, class ResultType>
ResultType dlr::common::PointerToBinaryFunctionRA< ArgumentType0, ArgumentType1, ResultType >::operator() ( const ArgumentType0 &  argument0,
const ArgumentType0 &  argument1 
) const [inline]

Call the wrapped function pointer and return the result.

Parameters:
argument0 Will be passed as an argument to the function pointer.
argument1 Will be passed as an argument to the function pointer.
Returns:
The result of the function call.

Definition at line 341 of file dlrCommon/functional.h.


The documentation for this class was generated from the following file:
Generated on Mon Jul 9 20:34:20 2007 for dlrLibs Utility Libraries by  doxygen 1.5.2