User Manual, Developers Guide and API Documentation

wns::TArgumentFunctor< T, Arg, RetVal, funcType, fPtr > Class Template Reference

The template version of the Functor with one argument This will create a functor for member functions in class T, taking Arg and returning RetVal and being either non-const (default) or const. The last template parameter should always have its default value.

#include <Functor.hpp>

Inheritance diagram for wns::TArgumentFunctor< T, Arg, RetVal, funcType, fPtr >:

Inheritance graph
[legend]
Collaboration diagram for wns::TArgumentFunctor< T, Arg, RetVal, funcType, fPtr >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual RetVal operator() (Arg a) const
 The operator to be called to execute the functor.
 TArgumentFunctor (T *Obj, fPtr F)
 A constructor taking the object to be called with the function pointer.

Private Attributes

fPtr f
 The function pointer.
T * obj
 The object to be called with the function pointer.


Detailed Description

template<typename T, typename Arg, typename RetVal = void, targumentfunctor::funcType funcType = targumentfunctor::nonConstFunc, typename fPtr = typename targumentfunctor::ConstructFPtrType<T, Arg, RetVal, funcType>::fPtr>
class wns::TArgumentFunctor< T, Arg, RetVal, funcType, fPtr >

Definition at line 173 of file Functor.hpp.


Constructor & Destructor Documentation

template<typename T, typename Arg, typename RetVal = void, targumentfunctor::funcType funcType = targumentfunctor::nonConstFunc, typename fPtr = typename targumentfunctor::ConstructFPtrType<T, Arg, RetVal, funcType>::fPtr>
wns::TArgumentFunctor< T, Arg, RetVal, funcType, fPtr >::TArgumentFunctor ( T *  Obj,
fPtr  F 
) [inline]

Definition at line 179 of file Functor.hpp.


Member Function Documentation

template<typename T, typename Arg, typename RetVal = void, targumentfunctor::funcType funcType = targumentfunctor::nonConstFunc, typename fPtr = typename targumentfunctor::ConstructFPtrType<T, Arg, RetVal, funcType>::fPtr>
virtual RetVal wns::TArgumentFunctor< T, Arg, RetVal, funcType, fPtr >::operator() ( Arg  a  )  const [inline, virtual]

Implements wns::ArgumentFunctor< Arg, RetVal >.

Definition at line 184 of file Functor.hpp.


Member Data Documentation

template<typename T, typename Arg, typename RetVal = void, targumentfunctor::funcType funcType = targumentfunctor::nonConstFunc, typename fPtr = typename targumentfunctor::ConstructFPtrType<T, Arg, RetVal, funcType>::fPtr>
fPtr wns::TArgumentFunctor< T, Arg, RetVal, funcType, fPtr >::f [private]

Definition at line 194 of file Functor.hpp.

template<typename T, typename Arg, typename RetVal = void, targumentfunctor::funcType funcType = targumentfunctor::nonConstFunc, typename fPtr = typename targumentfunctor::ConstructFPtrType<T, Arg, RetVal, funcType>::fPtr>
T* wns::TArgumentFunctor< T, Arg, RetVal, funcType, fPtr >::obj [private]

Definition at line 184 of file Functor.hpp.


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

Generated on Sat May 26 03:32:51 2012 for openWNS by  doxygen 1.5.5