User Manual, Developers Guide and API Documentation

wns::TFunctor< T, RetVal, funcType, fPtr > Class Template Reference
[Misc]

The template version of the Functor without arguments This will create a functor for member functions in class T, 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::TFunctor< T, RetVal, funcType, fPtr >:

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

Collaboration graph
[legend]

List of all members.

Public Types

typedef fPtr functionPointer

Public Member Functions

virtual RetVal operator() () const
 The operator to be called to execute the functor.
 TFunctor (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 RetVal = void, tfunctor::funcType funcType = tfunctor::nonConstFunc, typename fPtr = typename tfunctor::ConstructFPtrType<T, RetVal, funcType>::fPtr>
class wns::TFunctor< T, RetVal, funcType, fPtr >

Definition at line 109 of file Functor.hpp.


Member Typedef Documentation

template<typename T, typename RetVal = void, tfunctor::funcType funcType = tfunctor::nonConstFunc, typename fPtr = typename tfunctor::ConstructFPtrType<T, RetVal, funcType>::fPtr>
typedef fPtr wns::TFunctor< T, RetVal, funcType, fPtr >::functionPointer

Definition at line 112 of file Functor.hpp.


Constructor & Destructor Documentation

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

Definition at line 116 of file Functor.hpp.


Member Function Documentation

template<typename T, typename RetVal = void, tfunctor::funcType funcType = tfunctor::nonConstFunc, typename fPtr = typename tfunctor::ConstructFPtrType<T, RetVal, funcType>::fPtr>
virtual RetVal wns::TFunctor< T, RetVal, funcType, fPtr >::operator() (  )  const [inline, virtual]

Implements wns::Functor< RetVal >.

Definition at line 121 of file Functor.hpp.


Member Data Documentation

template<typename T, typename RetVal = void, tfunctor::funcType funcType = tfunctor::nonConstFunc, typename fPtr = typename tfunctor::ConstructFPtrType<T, RetVal, funcType>::fPtr>
fPtr wns::TFunctor< T, RetVal, funcType, fPtr >::f [private]

Definition at line 131 of file Functor.hpp.

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

Definition at line 127 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