OpenSceneGraph
3.0.1
|
Public Types | |
typedef T | ElementDataType |
Public Member Functions | |
TemplateArray () | |
TemplateArray (const TemplateArray &ta, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
TemplateArray (unsigned int no) | |
TemplateArray (unsigned int no, const T *ptr) | |
template<class InputIterator > | |
TemplateArray (InputIterator first, InputIterator last) | |
TemplateArray & | operator= (const TemplateArray &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 |
Protected Member Functions | |
virtual | ~TemplateArray () |
typedef T osg::TemplateArray::ElementDataType |
osg::TemplateArray::TemplateArray | ( | ) | [inline] |
Referenced by cloneType(), and clone().
osg::TemplateArray::TemplateArray | ( | const TemplateArray & | ta, |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
) | [inline] |
osg::TemplateArray::TemplateArray | ( | unsigned int | no | ) | [inline] |
osg::TemplateArray::TemplateArray | ( | unsigned int | no, |
const T * | ptr | ||
) | [inline] |
osg::TemplateArray::TemplateArray | ( | InputIterator | first, |
InputIterator | last | ||
) | [inline] |
virtual osg::TemplateArray::~TemplateArray | ( | ) | [inline, protected, virtual] |
void osg::TemplateArray::accept | ( | ArrayVisitor & | av | ) | [inline, virtual] |
Implements osg::Array.
References osg::ArrayVisitor::apply().
void osg::TemplateArray::accept | ( | ConstArrayVisitor & | av | ) | const [inline, virtual] |
Implements osg::Array.
void osg::TemplateArray::accept | ( | unsigned int | index, |
ValueVisitor & | vv | ||
) | [inline, virtual] |
Implements osg::Array.
void osg::TemplateArray::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 TemplateArray().
virtual Object* osg::TemplateArray::cloneType | ( | ) | const [inline, virtual] |
Clone the type of an object, with Object* return type.
Must be defined by derived classes.
Implements osg::Object.
References TemplateArray().
virtual int osg::TemplateArray::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::TemplateArray::getDataPointer | ( | ) | const [inline, virtual] |
Implements osg::Array.
References osg::MixinVector< T >::empty(), and osg::MixinVector< T >::front().
virtual unsigned int osg::TemplateArray::getNumElements | ( | ) | const [inline, virtual] |
Implements osg::Array.
References osg::MixinVector< T >::size().
virtual unsigned int osg::TemplateArray::getTotalDataSize | ( | ) | const [inline, virtual] |
Implements osg::Array.
References osg::MixinVector< T >::size().
TemplateArray& osg::TemplateArray::operator= | ( | const TemplateArray & | array | ) | [inline] |
References osg::MixinVector< T >::assign(), osg::MixinVector::begin(), and osg::MixinVector::end().
virtual void osg::TemplateArray::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. |