OSG::SFieldAdaptor< ValueT, ParentT, iNamespace > Class Template Reference

#include <OSGSFieldAdaptor.h>

List of all members.


Public Types

typedef SFieldAdaptor< ValueT,
ParentT, iNamespace > 
Self
typedef ValueT StoredType
typedef ValueT & reference
typedef const ValueT & const_reference
typedef FieldTraits< ValueT,
iNamespace > 
SFieldTraits
typedef SFieldTraits::ArgumentType ArgumentType
typedef boost::mpl::if_< boost::mpl::bool_<
SFieldTraits::bIsPointerField >,
EditFCPtrSFieldHandle< Self >,
EditSFieldHandle< Self
> >::type 
EditHandle
typedef boost::shared_ptr<
EditHandle
EditHandlePtr
typedef boost::mpl::if_< boost::mpl::bool_<
SFieldTraits::bIsPointerField >,
GetFCPtrSFieldHandle< Self >,
GetSFieldHandle< Self
> >::type 
GetHandle
typedef boost::shared_ptr<
GetHandle
GetHandlePtr

Public Member Functions

Constructors


 SFieldAdaptor (void)
 SFieldAdaptor (const SFieldAdaptor &source)
 SFieldAdaptor (ArgumentType value)
Destructor


 ~SFieldAdaptor (void)
Helper


reference getValue (void)
const_reference getValue (void) const

Static Public Member Functions

Class Get


static const FieldTypegetClassType (void)

Protected Member Functions

Fields


template<class To>
To & dcast (void)
template<class To>
const To & dcast (void) const

Static Protected Attributes

Type information


static FieldType _fieldType

Private Types

typedef ParentT Inherited

Private Member Functions

void operator= (const SFieldAdaptor &source)
 prohibit default function (move to 'public' if needed)

Detailed Description

template<class ValueT, class ParentT, Int32 iNamespace = 0>
class OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >

Definition at line 54 of file OSGSFieldAdaptor.h.


Member Typedef Documentation

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef SFieldAdaptor<ValueT, ParentT, iNamespace> OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::Self

Definition at line 62 of file OSGSFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef ValueT OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::StoredType

Definition at line 64 of file OSGSFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef ValueT& OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::reference

Definition at line 65 of file OSGSFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef const ValueT& OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::const_reference

Definition at line 66 of file OSGSFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef FieldTraits<ValueT, iNamespace> OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::SFieldTraits

Definition at line 69 of file OSGSFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef SFieldTraits::ArgumentType OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::ArgumentType

Definition at line 71 of file OSGSFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef boost::mpl::if_<boost::mpl::bool_<SFieldTraits::bIsPointerField>, EditFCPtrSFieldHandle<Self>, EditSFieldHandle <Self> >::type OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::EditHandle

Definition at line 76 of file OSGSFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef boost::shared_ptr<EditHandle> OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::EditHandlePtr

Definition at line 78 of file OSGSFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef boost::mpl::if_<boost::mpl::bool_<SFieldTraits::bIsPointerField>, GetFCPtrSFieldHandle<Self> , GetSFieldHandle <Self> >::type OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::GetHandle

Definition at line 83 of file OSGSFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef boost::shared_ptr<GetHandle> OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::GetHandlePtr

Definition at line 85 of file OSGSFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef ParentT OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::Inherited [private]

Definition at line 231 of file OSGSFieldAdaptor.h.


Constructor & Destructor Documentation

template<class ValueT, class ParentT, Int32 iNamespace>
OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::SFieldAdaptor ( void   )  [inline]

Definition at line 64 of file OSGSFieldAdaptor.inl.

00064                                                               :
00065     Inherited()
00066 {
00067 }

template<class ValueT, class ParentT, Int32 iNamespace>
OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::SFieldAdaptor ( const SFieldAdaptor< ValueT, ParentT, iNamespace > &  source  )  [inline]

Definition at line 70 of file OSGSFieldAdaptor.inl.

00071                                  :
00072 
00073     Inherited(source)
00074 {
00075 }

template<class ValueT, class ParentT, Int32 iNamespace>
OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::SFieldAdaptor ( ArgumentType  value  )  [inline, explicit]

Definition at line 78 of file OSGSFieldAdaptor.inl.

00078                                                                             :
00079     Inherited(value)
00080 {
00081 }

template<class ValueT, class ParentT, Int32 iNamespace>
OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::~SFieldAdaptor ( void   )  [inline]

Definition at line 84 of file OSGSFieldAdaptor.inl.

00085 {
00086 }


Member Function Documentation

template<class ValueT, class ParentT, Int32 iNamespace = 0>
static const FieldType& OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::getClassType ( void   )  [static]

template<class ValueT, class ParentT, Int32 iNamespace>
SFieldAdaptor< ValueT, ParentT, iNamespace >::reference OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::getValue ( void   )  [inline]

Definition at line 90 of file OSGSFieldAdaptor.inl.

00091 {
00092     return this->template dcast<typename Self::StoredType>();
00093 }

template<class ValueT, class ParentT, Int32 iNamespace>
SFieldAdaptor< ValueT, ParentT, iNamespace >::const_reference OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::getValue ( void   )  const [inline]

Definition at line 97 of file OSGSFieldAdaptor.inl.

00098 {
00099     return this->template dcast<typename Self::StoredType>();
00100 }

template<class ValueT, class ParentT, Int32 iNamespace>
template<class To>
To & OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::dcast ( void   )  [inline, protected]

Definition at line 47 of file OSGSFieldAdaptor.inl.

00048 {
00049     return reinterpret_cast<To &>(Self::_fieldValue); 
00050 }

template<class ValueT, class ParentT, Int32 iNamespace>
template<class To>
const To & OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::dcast ( void   )  const [inline, protected]

Definition at line 54 of file OSGSFieldAdaptor.inl.

00055 {
00056     return reinterpret_cast<const To &>(Self::_fieldValue); 
00057 }

template<class ValueT, class ParentT, Int32 iNamespace = 0>
void OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::operator= ( const SFieldAdaptor< ValueT, ParentT, iNamespace > &  source  )  [private]


Member Data Documentation

template<class ValueT, class ParentT, Int32 iNamespace = 0>
FieldType OSG::SFieldAdaptor< ValueT, ParentT, iNamespace >::_fieldType [inline, static, protected]

Definition at line 181 of file OSGSFieldAdaptor.h.


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