OSG::VecStorage1< ValueTypeT > Class Template Reference

#include <OSGVector.h>

List of all members.


Public Member Functions

Constructor


 VecStorage1 (void)
Destructor


 ~VecStorage1 (void)
Access


void setValues (const ValueTypeT rVal1)
void getSeparateValues (ValueTypeT &rVal1) const
ValueTypeT x (void) const

Static Public Attributes

static const UInt32 _uiSize = 1
 Storage size.

Protected Attributes

ValueTypeT _values [_uiSize]
 Value store.

Private Member Functions

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

Detailed Description

template<class ValueTypeT>
class OSG::VecStorage1< ValueTypeT >

Vector storage holding 1 elements, for details about how vectors, points and matrices are actually build see BaseMath.

Definition at line 73 of file OSGVector.h.


Constructor & Destructor Documentation

template<class ValueTypeT>
OSG::VecStorage1< ValueTypeT >::VecStorage1 ( void   )  [inline]

Definition at line 60 of file OSGVector.inl.

References OSG::VecStorage1< ValueTypeT >::_uiSize, and OSG::VecStorage1< ValueTypeT >::_values.

00061 {
00062     for(UInt32 i = 0; i < _uiSize; i++)
00063     {
00064         _values[i] = TypeTraits<ValueTypeT>::getZeroElement();
00065     }
00066 }

template<class ValueTypeT>
OSG::VecStorage1< ValueTypeT >::~VecStorage1 ( void   )  [inline]

Definition at line 70 of file OSGVector.inl.

00071 {
00072 }

template<class ValueTypeT>
OSG::VecStorage1< ValueTypeT >::VecStorage1 ( const VecStorage1< ValueTypeT > &  source  )  [private]


Member Function Documentation

template<class ValueTypeT>
void OSG::VecStorage1< ValueTypeT >::setValues ( const ValueTypeT  rVal1  )  [inline]

Definition at line 76 of file OSGVector.inl.

References OSG::VecStorage1< ValueTypeT >::_values.

00077 {
00078     _values[0] = rVal1;
00079 }

template<class ValueTypeT>
void OSG::VecStorage1< ValueTypeT >::getSeparateValues ( ValueTypeT &  rVal1  )  const [inline]

Definition at line 83 of file OSGVector.inl.

References OSG::VecStorage1< ValueTypeT >::_values.

00084 {
00085     rVal1 = _values[0];
00086 }

template<class ValueTypeT>
ValueTypeT OSG::VecStorage1< ValueTypeT >::x ( void   )  const [inline]

Definition at line 90 of file OSGVector.inl.

References OSG::VecStorage1< ValueTypeT >::_values.

00091 {
00092     return _values[0];
00093 }

template<class ValueTypeT>
void OSG::VecStorage1< ValueTypeT >::operator= ( const VecStorage1< ValueTypeT > &  source  )  [private]


Member Data Documentation

template<class ValueTypeT>
VecStorage1::VectorSizeE OSG::VecStorage1< ValueTypeT >::_uiSize = 1 [static]

Definition at line 79 of file OSGVector.h.

Referenced by OSG::VecStorage1< ValueTypeT >::VecStorage1().

template<class ValueTypeT>
ValueTypeT OSG::VecStorage1< ValueTypeT >::_values[iSize] [protected]


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