OpenSceneGraph
3.0.1
|
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::ElementDataType |
osg::TemplateIndexArray::TemplateIndexArray | ( | ) | [inline] |
Referenced by cloneType(), and clone().
osg::TemplateIndexArray::TemplateIndexArray | ( | const TemplateIndexArray & | ta, |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
) | [inline] |
osg::TemplateIndexArray::TemplateIndexArray | ( | unsigned int | no | ) | [inline] |
osg::TemplateIndexArray::TemplateIndexArray | ( | unsigned int | no, |
T * | ptr | ||
) | [inline] |
osg::TemplateIndexArray::TemplateIndexArray | ( | InputIterator | first, |
InputIterator | last | ||
) | [inline] |
virtual osg::TemplateIndexArray::~TemplateIndexArray | ( | ) | [inline, protected, virtual] |
void osg::TemplateIndexArray::accept | ( | ArrayVisitor & | av | ) | [inline, virtual] |
Implements osg::Array.
References osg::ArrayVisitor::apply().
void osg::TemplateIndexArray::accept | ( | ConstArrayVisitor & | av | ) | const [inline, virtual] |
Implements osg::Array.
void osg::TemplateIndexArray::accept | ( | unsigned int | index, |
ValueVisitor & | vv | ||
) | [inline, virtual] |
Implements osg::Array.
void osg::TemplateIndexArray::accept | ( | unsigned int | index, |
ConstValueVisitor & | vv | ||
) | const [inline, virtual] |
Implements osg::Array.
Clone an object, with Object* return type.
Must be defined by derived classes.
Implements osg::Object.
References TemplateIndexArray().
virtual Object* osg::TemplateIndexArray::cloneType | ( | ) | const [inline, virtual] |
Clone the type of an object, with Object* return type.
Must be defined by derived classes.
Implements osg::Object.
References TemplateIndexArray().
virtual int osg::TemplateIndexArray::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::getDataPointer | ( | ) | const [inline, virtual] |
Implements osg::Array.
References osg::MixinVector< T >::empty(), and osg::MixinVector< T >::front().
virtual unsigned int osg::TemplateIndexArray::getNumElements | ( | ) | const [inline, virtual] |
Implements osg::Array.
References osg::MixinVector< T >::size().
virtual unsigned int osg::TemplateIndexArray::getTotalDataSize | ( | ) | const [inline, virtual] |
Implements osg::Array.
References osg::MixinVector< T >::size().
virtual unsigned int osg::TemplateIndexArray::index | ( | unsigned int | pos | ) | const [inline, virtual] |
Implements osg::IndexArray.
TemplateIndexArray& osg::TemplateIndexArray::operator= | ( | const TemplateIndexArray & | array | ) | [inline] |
References osg::MixinVector< T >::assign().
virtual void osg::TemplateIndexArray::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::swap().
![]() | Generated at Mon Oct 3 2011 12:39:41 for the OpenSceneGraph by doxygen 1.7.5. |