OpenSceneGraph  3.4.0
Public Member Functions | Protected Member Functions
osg::BufferTemplate< std::vector< T > > Class Template Reference

BufferTemplate specialization for std::vector. More...

Inheritance diagram for osg::BufferTemplate< std::vector< T > >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 BufferTemplate ()
 BufferTemplate (const BufferTemplate< std::vector< T > > &bt, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.
virtual bool isSameKindAs (const Object *obj) const
virtual const char * libraryName () const
 return the name of the object's library.
virtual const char * className () const
 return the name of the object's class type.
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 const GLvoid * getDataPointer () const
virtual unsigned int getTotalDataSize () const
const std::vector< T > & getData () const
std::vector< T > & getData ()
void setData (const std::vector< T > &data)

Protected Member Functions

virtual ~BufferTemplate ()

Detailed Description

template<typename T>
class osg::BufferTemplate< std::vector< T > >

BufferTemplate specialization for std::vector.


Constructor & Destructor Documentation

template<typename T >
osg::BufferTemplate< std::vector< T > >::BufferTemplate ( ) [inline]
template<typename T >
osg::BufferTemplate< std::vector< T > >::BufferTemplate ( const BufferTemplate< std::vector< T > > &  bt,
const CopyOp copyop = CopyOp::SHALLOW_COPY 
) [inline]

Copy constructor using CopyOp to manage deep vs shallow copy.

template<typename T >
virtual osg::BufferTemplate< std::vector< T > >::~BufferTemplate ( ) [inline, protected, virtual]

Member Function Documentation

template<typename T >
virtual const char* osg::BufferTemplate< std::vector< T > >::className ( ) const [inline, virtual]

return the name of the object's class type.

Must be defined by derived classes.

Reimplemented from osg::BufferData.

template<typename T >
virtual Object* osg::BufferTemplate< std::vector< T > >::clone ( const CopyOp ) const [inline, virtual]

Clone an object, with Object* return type.

Must be defined by derived classes.

Implements osg::Object.

template<typename T >
virtual Object* osg::BufferTemplate< std::vector< T > >::cloneType ( ) const [inline, virtual]

Clone the type of an object, with Object* return type.

Must be defined by derived classes.

Implements osg::Object.

template<typename T >
const std::vector<T>& osg::BufferTemplate< std::vector< T > >::getData ( ) const [inline]
template<typename T >
std::vector<T>& osg::BufferTemplate< std::vector< T > >::getData ( ) [inline]
template<typename T >
virtual const GLvoid* osg::BufferTemplate< std::vector< T > >::getDataPointer ( ) const [inline, virtual]

Implements osg::BufferData.

template<typename T >
virtual unsigned int osg::BufferTemplate< std::vector< T > >::getTotalDataSize ( ) const [inline, virtual]

Implements osg::BufferData.

template<typename T >
virtual bool osg::BufferTemplate< std::vector< T > >::isSameKindAs ( const Object obj) const [inline, virtual]

Reimplemented from osg::BufferData.

References NULL.

template<typename T >
virtual const char* osg::BufferTemplate< std::vector< T > >::libraryName ( ) const [inline, virtual]

return the name of the object's library.

Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name.

Reimplemented from osg::BufferData.

template<typename T >
void osg::BufferTemplate< std::vector< T > >::setData ( const std::vector< T > &  data) [inline]

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

osg logo
Generated at Tue Dec 8 2015 00:14:23 for the OpenSceneGraph by doxygen 1.7.6.1.