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>

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

Inheritance graph
[legend]
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.

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, virtual]

Concrete application of the Get method of object o.

Implements bbtk::AtomicBlackBoxGetFunctor.

Definition at line 134 of file bbtkAtomicBlackBoxGetSetFunctor.h.

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

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     }

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

Implements bbtk::AtomicBlackBoxGetFunctor.

Definition at line 146 of file bbtkAtomicBlackBoxGetSetFunctor.h.

00146 { return HumanTypeName<T>(); }

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

Implements bbtk::AtomicBlackBoxGetFunctor.

Definition at line 144 of file bbtkAtomicBlackBoxGetSetFunctor.h.

00144 { return typeid(T); }

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

Implements bbtk::AtomicBlackBoxGetFunctor.

Definition at line 145 of file bbtkAtomicBlackBoxGetSetFunctor.h.

00145 { return TypeName<T>(); }

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

Implements bbtk::AtomicBlackBoxGetFunctor.

Definition at line 148 of file bbtkAtomicBlackBoxGetSetFunctor.h.

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


Member Data Documentation

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

Pointer on the Get method.

Definition at line 155 of file bbtkAtomicBlackBoxGetSetFunctor.h.

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


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

Generated on Thu May 31 14:13:58 2012 for BBTK by  doxygen 1.5.7.1