bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN > Class Template Reference

Template for concrete functors of the Get accessors of the inputs and outputs of a AtomicBlackBox (inherits from bbtk::AtomicBlackBoxGetFunctor). More...

#include <bbtkAtomicBlackBoxGetSetFunctor.h>

Collaboration diagram for bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef TRETURN(UBB::* GetMethodPointerType )(void)
 Type of pointer on a UBB::Get method.

Public Member Functions

 AtomicBlackBoxTGetFunctor (GetMethodPointerType g)
 Construction with the pointer on the Get method.
Data Get (AtomicBlackBox *o)
 Concrete application of the Get method of object o.
TypeInfo GetTypeInfo () const
std::string GetTypeName () const
std::string GetHumanTypeName () const
virtual bool IsPointerType () const

Private Attributes

GetMethodPointerType mGetMethodPointer
 Pointer on the Get method.


Detailed Description

template<class UBB, class T, class TRETURN>
class bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >

Template for concrete functors of the Get accessors of the inputs and outputs of a AtomicBlackBox (inherits from bbtk::AtomicBlackBoxGetFunctor).

Definition at line 116 of file bbtkAtomicBlackBoxGetSetFunctor.h.


Member Typedef Documentation

template<class UBB, class T, class TRETURN>
typedef TRETURN(UBB::* bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::GetMethodPointerType)(void)

Type of pointer on a UBB::Get method.


Constructor & Destructor Documentation

template<class UBB, class T, class TRETURN>
bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::AtomicBlackBoxTGetFunctor ( GetMethodPointerType  g  )  [inline]

Construction with the pointer on the Get method.

Definition at line 123 of file bbtkAtomicBlackBoxGetSetFunctor.h.

References bbtkDebugMessage, and bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::mGetMethodPointer.

00123                                                       :
00124       mGetMethodPointer(g)
00125       {
00126         bbtkDebugMessage("Data",9,"AtomicBlackBoxTGetFunctor<"<<
00127                          TypeName<UBB>()<<","<<
00128                          TypeName<T>()<<","<<
00129                          TypeName<TRETURN>()<<
00130                          ">::AtomicBlackBoxTGetFunctor()"<<std::endl);
00131       }
      


Member Function Documentation

template<class UBB, class T, class TRETURN>
Data bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::Get ( AtomicBlackBox o  )  [inline]

Concrete application of the Get method of object o.

Definition at line 134 of file bbtkAtomicBlackBoxGetSetFunctor.h.

References bbtkDebugMessage, bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::Get(), and bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::mGetMethodPointer.

Referenced by bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::Get().

00135     {
00136       bbtkDebugMessage("Data",9,"AtomicBlackBoxTGetFunctor<"<<
00137                        TypeName<UBB>()<<","<<
00138                        TypeName<T>()<<","<<
00139                        TypeName<TRETURN>()<<
00140                        ">::Get()"<<std::endl);
00141       return (((UBB*)o)->*mGetMethodPointer)();
00142     }

Here is the call graph for this function:

Here is the caller graph for this function:

template<class UBB, class T, class TRETURN>
TypeInfo bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::GetTypeInfo (  )  const [inline]

Definition at line 144 of file bbtkAtomicBlackBoxGetSetFunctor.h.

References bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::GetTypeInfo().

Referenced by bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::GetTypeInfo().

00144 { return typeid(T); }

Here is the call graph for this function:

Here is the caller graph for this function:

template<class UBB, class T, class TRETURN>
std::string bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::GetTypeName (  )  const [inline]

Definition at line 145 of file bbtkAtomicBlackBoxGetSetFunctor.h.

References bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::GetTypeName().

Referenced by bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::GetTypeName().

00145 { return TypeName<T>(); }

Here is the call graph for this function:

Here is the caller graph for this function:

template<class UBB, class T, class TRETURN>
std::string bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::GetHumanTypeName (  )  const [inline]

Definition at line 146 of file bbtkAtomicBlackBoxGetSetFunctor.h.

References bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::GetHumanTypeName().

Referenced by bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::GetHumanTypeName().

00146 { return HumanTypeName<T>(); }

Here is the call graph for this function:

Here is the caller graph for this function:

template<class UBB, class T, class TRETURN>
virtual bool bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::IsPointerType (  )  const [inline, virtual]

Definition at line 148 of file bbtkAtomicBlackBoxGetSetFunctor.h.

References bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::IsPointerType().

Referenced by bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::IsPointerType().

00149     {
00150       return boost::is_pointer<T>::value;
00151     }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

template<class UBB, class T, class TRETURN>
GetMethodPointerType bbtk::AtomicBlackBoxTGetFunctor< UBB, T, TRETURN >::mGetMethodPointer [private]


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

Generated on Wed Nov 12 11:38:27 2008 for BBTK by  doxygen 1.5.6