OpenSceneGraph 2.8.3
|
Public Types | |
typedef T | ElementDataType |
Public Member Functions | |
TemplateIndexArray () | |
TemplateIndexArray (const TemplateIndexArray &ta, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
TemplateIndexArray (unsigned int no) | |
TemplateIndexArray (unsigned int no, T *ptr) | |
template<class InputIterator > | |
TemplateIndexArray (InputIterator first, InputIterator last) | |
TemplateIndexArray & | operator= (const TemplateIndexArray &array) |
virtual Object * | cloneType () const |
Clone the type of an object, with Object* return type. | |
virtual Object * | clone (const CopyOp ©op) const |
Clone an object, with Object* return type. | |
virtual void | accept (ArrayVisitor &av) |
virtual void | accept (ConstArrayVisitor &av) const |
virtual void | accept (unsigned int index, ValueVisitor &vv) |
virtual void | accept (unsigned int index, ConstValueVisitor &vv) const |
virtual int | compare (unsigned int lhs, unsigned int rhs) const |
Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. | |
virtual void | trim () |
Frees unused space on this vector - i.e. | |
virtual const GLvoid * | getDataPointer () const |
virtual unsigned int | getTotalDataSize () const |
virtual unsigned int | getNumElements () const |
virtual unsigned int | index (unsigned int pos) const |
Protected Member Functions | |
virtual | ~TemplateIndexArray () |
typedef T osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::ElementDataType |
osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::TemplateIndexArray | ( | ) | [inline] |
osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::TemplateIndexArray | ( | const TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType > & | ta, |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
) | [inline] |
osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::TemplateIndexArray | ( | unsigned int | no | ) | [inline] |
osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::TemplateIndexArray | ( | unsigned int | no, |
T * | ptr | ||
) | [inline] |
osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::TemplateIndexArray | ( | InputIterator | first, |
InputIterator | last | ||
) | [inline] |
virtual osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::~TemplateIndexArray | ( | ) | [inline, protected, virtual] |
void osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::accept | ( | ArrayVisitor & | av | ) | [inline, virtual] |
Implements osg::Array.
References osg::ArrayVisitor::apply().
void osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::accept | ( | ConstArrayVisitor & | av | ) | const [inline, virtual] |
Implements osg::Array.
References osg::ConstArrayVisitor::apply().
void osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::accept | ( | unsigned int | index, |
ValueVisitor & | vv | ||
) | [inline, virtual] |
Implements osg::Array.
References osg::ValueVisitor::apply().
void osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::accept | ( | unsigned int | index, |
ConstValueVisitor & | vv | ||
) | const [inline, virtual] |
Implements osg::Array.
References osg::ConstValueVisitor::apply().
virtual Object* osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::clone | ( | const CopyOp & | ) | const [inline, virtual] |
Clone an object, with Object* return type.
Must be defined by derived classes.
Implements osg::Object.
References osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::TemplateIndexArray().
virtual Object* osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::cloneType | ( | ) | const [inline, virtual] |
Clone the type of an object, with Object* return type.
Must be defined by derived classes.
Implements osg::Object.
References osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::TemplateIndexArray().
virtual int osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::compare | ( | unsigned int | lhs, |
unsigned int | rhs | ||
) | const [inline, virtual] |
Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element.
Implements osg::Array.
virtual const GLvoid* osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::getDataPointer | ( | ) | const [inline, virtual] |
Implements osg::Array.
References osg::MixinVector< T >::empty(), and osg::MixinVector< T >::front().
virtual unsigned int osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::getNumElements | ( | ) | const [inline, virtual] |
Implements osg::Array.
References osg::MixinVector< T >::size().
virtual unsigned int osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::getTotalDataSize | ( | ) | const [inline, virtual] |
Implements osg::Array.
References osg::MixinVector< T >::size().
virtual unsigned int osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::index | ( | unsigned int | pos | ) | const [inline, virtual] |
Implements osg::IndexArray.
TemplateIndexArray& osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::operator= | ( | const TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType > & | array | ) | [inline] |
virtual void osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >::trim | ( | ) | [inline, virtual] |
Frees unused space on this vector - i.e.
the difference between size() and max_size() of the underlying vector.
Reimplemented from osg::Array.
References osg::MixinVector< ValueT >::swap().
![]() | Generated at Tue Mar 22 2011 13:20:20 for the OpenSceneGraph by doxygen 1.7.3. |