OpenSceneGraph  3.0.1
Public Types | Public Member Functions | Protected Member Functions
osg::TemplateArray Class Reference
Inheritance diagram for osg::TemplateArray:
Inheritance graph
[legend]

List of all members.

Public Types

typedef T ElementDataType

Public Member Functions

 TemplateArray ()
 TemplateArray (const TemplateArray &ta, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 TemplateArray (unsigned int no)
 TemplateArray (unsigned int no, const T *ptr)
template<class InputIterator >
 TemplateArray (InputIterator first, InputIterator last)
TemplateArrayoperator= (const TemplateArray &array)
virtual ObjectcloneType () const
 Clone the type of an object, with Object* return type.
virtual Objectclone (const CopyOp &copyop) 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 ()

Member Typedef Documentation


Constructor & Destructor Documentation

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]
template<class InputIterator >
osg::TemplateArray::TemplateArray ( InputIterator  first,
InputIterator  last 
) [inline]
virtual osg::TemplateArray::~TemplateArray ( ) [inline, protected, virtual]

Member Function Documentation

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.

virtual Object* osg::TemplateArray::clone ( const CopyOp ) const [inline, virtual]

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]
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]
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().


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

osg logo
Generated at Mon Oct 3 2011 12:39:41 for the OpenSceneGraph by doxygen 1.7.5.