OpenSceneGraph  3.4.0
Public Types | Public Member Functions | Public Attributes
osgDB::VectorSerializer< C, P > Class Template Reference
Inheritance diagram for osgDB::VectorSerializer< C, P >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef P::value_type ValueType
typedef P::const_iterator ConstIterator
typedef P &(C::* Getter )()
typedef const P &(C::* ConstGetter )() const
typedef void(C::* Setter )(const P &)

Public Member Functions

 VectorSerializer (const char *name, ConstGetter cgf, Getter gf, Setter sf, BaseSerializer::Type elementType, unsigned int numElementsOnRow)
virtual const std::string & getName () const
virtual unsigned int size (const osg::Object &obj) const
virtual void resize (osg::Object &obj, unsigned int numElements) const
virtual void reserve (osg::Object &obj, unsigned int numElements) const
virtual void clear (osg::Object &obj) const
virtual void addElement (osg::Object &obj, void *ptr) const
virtual void insertElement (osg::Object &obj, unsigned int index, void *ptr) const
virtual void setElement (osg::Object &obj, unsigned int index, void *ptr) const
virtual void * getElement (osg::Object &obj, unsigned int index) const
virtual const void * getElement (const osg::Object &obj, unsigned int index) const
virtual bool read (InputStream &is, osg::Object &obj)
virtual bool write (OutputStream &os, const osg::Object &obj)

Public Attributes

std::string _name
ConstGetter _constgetter
Getter _getter
Setter _setter
unsigned int _numElementsOnRow

template<typename C, typename P>
class osgDB::VectorSerializer< C, P >


Member Typedef Documentation

template<typename C , typename P >
typedef const P&(C::* osgDB::VectorSerializer< C, P >::ConstGetter)() const
template<typename C , typename P >
typedef P::const_iterator osgDB::VectorSerializer< C, P >::ConstIterator
template<typename C , typename P >
typedef P&(C::* osgDB::VectorSerializer< C, P >::Getter)()
template<typename C , typename P >
typedef void(C::* osgDB::VectorSerializer< C, P >::Setter)(const P &)
template<typename C , typename P >
typedef P::value_type osgDB::VectorSerializer< C, P >::ValueType

Constructor & Destructor Documentation

template<typename C , typename P >
osgDB::VectorSerializer< C, P >::VectorSerializer ( const char *  name,
ConstGetter  cgf,
Getter  gf,
Setter  sf,
BaseSerializer::Type  elementType,
unsigned int  numElementsOnRow 
) [inline]

Member Function Documentation

template<typename C , typename P >
virtual void osgDB::VectorSerializer< C, P >::addElement ( osg::Object obj,
void *  ptr 
) const [inline, virtual]
template<typename C , typename P >
virtual void osgDB::VectorSerializer< C, P >::clear ( osg::Object obj) const [inline, virtual]
template<typename C , typename P >
virtual void* osgDB::VectorSerializer< C, P >::getElement ( osg::Object obj,
unsigned int  index 
) const [inline, virtual]
template<typename C , typename P >
virtual const void* osgDB::VectorSerializer< C, P >::getElement ( const osg::Object obj,
unsigned int  index 
) const [inline, virtual]
template<typename C , typename P >
virtual const std::string& osgDB::VectorSerializer< C, P >::getName ( ) const [inline, virtual]
template<typename C , typename P >
virtual void osgDB::VectorSerializer< C, P >::insertElement ( osg::Object obj,
unsigned int  index,
void *  ptr 
) const [inline, virtual]
template<typename C , typename P >
virtual bool osgDB::VectorSerializer< C, P >::read ( InputStream is,
osg::Object obj 
) [inline, virtual]
template<typename C , typename P >
virtual void osgDB::VectorSerializer< C, P >::reserve ( osg::Object obj,
unsigned int  numElements 
) const [inline, virtual]
template<typename C , typename P >
virtual void osgDB::VectorSerializer< C, P >::resize ( osg::Object obj,
unsigned int  numElements 
) const [inline, virtual]
template<typename C , typename P >
virtual void osgDB::VectorSerializer< C, P >::setElement ( osg::Object obj,
unsigned int  index,
void *  ptr 
) const [inline, virtual]
template<typename C , typename P >
virtual unsigned int osgDB::VectorSerializer< C, P >::size ( const osg::Object obj) const [inline, virtual]
template<typename C , typename P >
virtual bool osgDB::VectorSerializer< C, P >::write ( OutputStream os,
const osg::Object obj 
) [inline, virtual]

Member Data Documentation

template<typename C , typename P >
ConstGetter osgDB::VectorSerializer< C, P >::_constgetter
template<typename C , typename P >
Getter osgDB::VectorSerializer< C, P >::_getter
template<typename C , typename P >
std::string osgDB::VectorSerializer< C, P >::_name
template<typename C , typename P >
unsigned int osgDB::VectorSerializer< C, P >::_numElementsOnRow
template<typename C , typename P >
Setter osgDB::VectorSerializer< C, P >::_setter

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

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