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

#include <OSGMFieldAdaptor.h>

List of all members.


Public Types

typedef MFieldAdaptor< ValueT,
ParentT, iNamespace > 
Self
typedef MFieldVector< ValueT > StorageType
typedef StorageType::reference reference
typedef StorageType::const_reference const_reference
typedef StorageType::iterator iterator
typedef StorageType::const_iterator const_iterator
typedef StorageType::reverse_iterator reverse_iterator
typedef StorageType::const_reverse_iterator const_reverse_iterator
typedef FieldTraits< ValueT,
iNamespace > 
MFieldTraits
typedef MFieldTraits::ArgumentType ArgumentType
typedef boost::mpl::if_< boost::mpl::bool_<
MFieldTraits::bIsPointerField >,
EditFCPtrMFieldHandle< Self >,
EditMFieldHandle< Self
> >::type 
EditHandle
typedef boost::shared_ptr<
EditHandle
EditHandlePtr
typedef boost::mpl::if_< boost::mpl::bool_<
MFieldTraits::bIsPointerField >,
GetFCPtrMFieldHandle< Self >,
GetMFieldHandle< Self
> >::type 
GetHandle
typedef boost::shared_ptr<
GetHandle
GetHandlePtr

Public Member Functions

Constructors


 MFieldAdaptor (void)
 MFieldAdaptor (const MFieldAdaptor &source)
Destructor


 ~MFieldAdaptor (void)
Index Operator


reference operator[] (UInt32 index)
const_reference operator[] (UInt32 index) const
Helper


iterator begin (void)
iterator end (void)
reverse_iterator rbegin (void)
reverse_iterator rend (void)
const_iterator begin (void) const
const_iterator end (void) const
const_reverse_iterator rbegin (void) const
const_reverse_iterator rend (void) const
reference front (void)
const_reference front (void) const
reference back (void)
const_reference back (void) const
iterator insert (iterator pos, ArgumentType value)
iterator erase (iterator pos)
iterator find (ArgumentType value)
const_iterator find (ArgumentType value) const
Get


StorageTypegetValues (void)
const StorageTypegetValues (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 MFieldAdaptor &source)
 prohibit default function (move to 'public' if needed)

Detailed Description

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

Definition at line 53 of file OSGMFieldAdaptor.h.


Member Typedef Documentation

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

Definition at line 61 of file OSGMFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef MFieldVector<ValueT > OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::StorageType

Definition at line 63 of file OSGMFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef StorageType::reference OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::reference

Definition at line 65 of file OSGMFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef StorageType::const_reference OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::const_reference

Definition at line 66 of file OSGMFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef StorageType::iterator OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::iterator

Definition at line 68 of file OSGMFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef StorageType::const_iterator OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::const_iterator

Definition at line 69 of file OSGMFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef StorageType::reverse_iterator OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::reverse_iterator

Definition at line 72 of file OSGMFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef StorageType::const_reverse_iterator OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::const_reverse_iterator

Definition at line 74 of file OSGMFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef FieldTraits<ValueT, iNamespace> OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::MFieldTraits

Definition at line 78 of file OSGMFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef MFieldTraits::ArgumentType OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::ArgumentType

Definition at line 80 of file OSGMFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef boost::mpl::if_<boost::mpl::bool_<MFieldTraits::bIsPointerField>, EditFCPtrMFieldHandle<Self>, EditMFieldHandle <Self> >::type OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::EditHandle

Definition at line 85 of file OSGMFieldAdaptor.h.

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

Definition at line 87 of file OSGMFieldAdaptor.h.

template<class ValueT, class ParentT, Int32 iNamespace = 0>
typedef boost::mpl::if_<boost::mpl::bool_<MFieldTraits::bIsPointerField>, GetFCPtrMFieldHandle<Self> , GetMFieldHandle <Self> >::type OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::GetHandle

Definition at line 92 of file OSGMFieldAdaptor.h.

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

Definition at line 94 of file OSGMFieldAdaptor.h.

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

Definition at line 273 of file OSGMFieldAdaptor.h.


Constructor & Destructor Documentation

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

Definition at line 64 of file OSGMFieldAdaptor.inl.

00064                                                               :
00065     Inherited()
00066 {
00067 }

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

Definition at line 70 of file OSGMFieldAdaptor.inl.

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

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

Definition at line 78 of file OSGMFieldAdaptor.inl.

00079 {
00080 }


Member Function Documentation

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

template<class ValueT, class ParentT, Int32 iNamespace>
MFieldAdaptor< ValueT, ParentT, iNamespace >::reference OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::operator[] ( UInt32  index  )  [inline]

Definition at line 86 of file OSGMFieldAdaptor.inl.

00087 {
00088 
00089     return (this->template dcast<typename Self::StorageType>())[index];
00090 }

template<class ValueT, class ParentT, Int32 iNamespace>
MFieldAdaptor< ValueT, ParentT, iNamespace >::const_reference OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::operator[] ( UInt32  index  )  const [inline]

Definition at line 96 of file OSGMFieldAdaptor.inl.

00097 {
00098     return (this->template dcast<typename Self::StorageType>())[index];
00099 }

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

Definition at line 105 of file OSGMFieldAdaptor.inl.

Referenced by OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::find().

00106 {
00107     return (this->template dcast<typename Self::StorageType>()).begin();
00108 }

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

Definition at line 114 of file OSGMFieldAdaptor.inl.

Referenced by OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::find().

00115 {
00116     return (this->template dcast<typename Self::StorageType>()).end();
00117 }

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

Definition at line 123 of file OSGMFieldAdaptor.inl.

00124 {
00125     return (this->template dcast<typename Self::StorageType>()).rbegin();
00126 }

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

Definition at line 132 of file OSGMFieldAdaptor.inl.

00133 {
00134     return (this->template dcast<typename Self::StorageType>()).rend();
00135 }

template<class ValueT, class ParentT, Int32 iNamespace>
MFieldAdaptor< ValueT, ParentT, iNamespace >::const_iterator OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::begin ( void   )  const [inline]

Definition at line 141 of file OSGMFieldAdaptor.inl.

00142 {
00143     return (this->template dcast<typename Self::StorageType>()).begin();
00144     }

template<class ValueT, class ParentT, Int32 iNamespace>
MFieldAdaptor< ValueT, ParentT, iNamespace >::const_iterator OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::end ( void   )  const [inline]

Definition at line 150 of file OSGMFieldAdaptor.inl.

00151 {
00152     return (this->template dcast<typename Self::StorageType>()).end();
00153 }

template<class ValueT, class ParentT, Int32 iNamespace>
MFieldAdaptor< ValueT, ParentT, iNamespace >::const_reverse_iterator OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::rbegin ( void   )  const [inline]

Definition at line 159 of file OSGMFieldAdaptor.inl.

00160 {
00161     return (this->template dcast<typename Self::StorageType>()).rbegin();
00162 }

template<class ValueT, class ParentT, Int32 iNamespace>
MFieldAdaptor< ValueT, ParentT, iNamespace >::const_reverse_iterator OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::rend ( void   )  const [inline]

Definition at line 168 of file OSGMFieldAdaptor.inl.

00169 {
00170     return (this->template dcast<typename Self::StorageType>()).rend();
00171 }

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

Definition at line 177 of file OSGMFieldAdaptor.inl.

00178 {
00179     return (this->template dcast<typename Self::StorageType>()).front();
00180 }

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

Definition at line 186 of file OSGMFieldAdaptor.inl.

00187 {
00188     return (this->template dcast<typename Self::StorageType>()).front();
00189 }

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

Definition at line 195 of file OSGMFieldAdaptor.inl.

00196 {
00197     return (this->template dcast<typename Self::StorageType>()).back();
00198 }

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

Definition at line 204 of file OSGMFieldAdaptor.inl.

00205 {
00206     return (this->template dcast<typename Self::StorageType>()).back();
00207 }

template<class ValueT, class ParentT, Int32 iNamespace>
MFieldAdaptor< ValueT, ParentT, iNamespace >::iterator OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::insert ( iterator  pos,
ArgumentType  value 
) [inline]

Definition at line 214 of file OSGMFieldAdaptor.inl.

00216 {
00217     return (this->template dcast<typename Self::StorageType>()).insert(pos, 
00218                                                                        value);
00219 }

template<class ValueT, class ParentT, Int32 iNamespace>
MFieldAdaptor< ValueT, ParentT, iNamespace >::iterator OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::erase ( iterator  pos  )  [inline]

Definition at line 225 of file OSGMFieldAdaptor.inl.

00226 {
00227     return (this->template dcast<typename Self::StorageType>()).erase(pos);
00228 }

template<class ValueT, class ParentT, Int32 iNamespace>
MFieldAdaptor< ValueT, ParentT, iNamespace >::iterator OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::find ( ArgumentType  value  )  [inline]

template<class ValueT, class ParentT, Int32 iNamespace>
MFieldAdaptor< ValueT, ParentT, iNamespace >::const_iterator OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::find ( ArgumentType  value  )  const [inline]

template<class ValueT, class ParentT, Int32 iNamespace>
MFieldAdaptor< ValueT, ParentT, iNamespace >::StorageType & OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::getValues ( void   )  [inline]

Definition at line 253 of file OSGMFieldAdaptor.inl.

00254 {
00255     return (this->template dcast<typename Self::StorageType>());
00256 }

template<class ValueT, class ParentT, Int32 iNamespace>
const MFieldAdaptor< ValueT, ParentT, iNamespace >::StorageType & OSG::MFieldAdaptor< ValueT, ParentT, iNamespace >::getValues ( void   )  const [inline]

Definition at line 262 of file OSGMFieldAdaptor.inl.

00263 {
00264     return (this->template dcast<typename Self::StorageType>());
00265 }

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

Definition at line 47 of file OSGMFieldAdaptor.inl.

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

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

Definition at line 54 of file OSGMFieldAdaptor.inl.

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

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


Member Data Documentation

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

Definition at line 223 of file OSGMFieldAdaptor.h.


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