OpenSceneGraph  3.0.1
Public Member Functions | Protected Attributes | Static Protected Attributes
osg::TemplateValueObject Class Reference
Inheritance diagram for osg::TemplateValueObject:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 TemplateValueObject ()
 TemplateValueObject (const std::string &name, const T &value)
 TemplateValueObject (const TemplateValueObject &rhs, const osg::CopyOp copyop=osg::CopyOp::SHALLOW_COPY)
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 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.
void setValue (const T &value)
const T & getValue () const
virtual bool get (GetValueVisitor &gvv) const
virtual bool set (SetValueVisitor &svv)

Protected Attributes

_value

Static Protected Attributes

static const char * s_TemplateValueObject_className

Constructor & Destructor Documentation

osg::TemplateValueObject::TemplateValueObject ( ) [inline]

Referenced by cloneType(), and clone().

osg::TemplateValueObject::TemplateValueObject ( const std::string &  name,
const T &  value 
) [inline]
osg::TemplateValueObject::TemplateValueObject ( const TemplateValueObject rhs,
const osg::CopyOp  copyop = osg::CopyOp::SHALLOW_COPY 
) [inline]

Member Function Documentation

virtual const char* osg::TemplateValueObject::className ( ) const [inline, virtual]

return the name of the object's class type.

Must be defined by derived classes.

Implements osg::Object.

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

Clone an object, with Object* return type.

Must be defined by derived classes.

Implements osg::Object.

References TemplateValueObject().

virtual Object* osg::TemplateValueObject::cloneType ( ) const [inline, virtual]

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

Must be defined by derived classes.

Implements osg::Object.

References TemplateValueObject().

virtual bool osg::TemplateValueObject::get ( GetValueVisitor &  gvv) const [inline, virtual]

Reimplemented from osg::ValueObject.

References _value.

const T& osg::TemplateValueObject::getValue ( ) const [inline]

References _value.

virtual bool osg::TemplateValueObject::isSameKindAs ( const Object obj) const [inline, virtual]

Reimplemented from osg::Object.

References NULL.

virtual const char* osg::TemplateValueObject::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.

Implements osg::Object.

virtual bool osg::TemplateValueObject::set ( SetValueVisitor svv) [inline, virtual]

Reimplemented from osg::ValueObject.

References _value.

void osg::TemplateValueObject::setValue ( const T &  value) [inline]

References _value.


Member Data Documentation

Referenced by setValue(), getValue(), get(), and set().


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

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