Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

amire::property::ReferenceProperty Class Reference

Inheritance diagram for amire::property::ReferenceProperty:

amire::property::Property List of all members.

Public Member Functions

 ReferenceProperty (void *reference, const PropertyTypeManager *propertyTypeManager)
 ReferenceProperty (const ReferenceProperty &reference)
virtual ~ReferenceProperty ()
virtual bool equals (const osg::ref_ptr< const Property > &property) const
virtual osg::ref_ptr< Propertyclone () const
virtual void cloneFrom (const osg::ref_ptr< const Property > &property)
virtual void fromPersistentProperty (const osg::ref_ptr< const Property > &property)
virtual osg::ref_ptr< PropertytoPersistentProperty ()
void * getReference () const
void setReference (void *reference)

Detailed Description

Instances of the class ReferenceProperty wrap a reference with unspecified type (void pointer).


Constructor & Destructor Documentation

amire::property::ReferenceProperty::ReferenceProperty void *  reference,
const PropertyTypeManager propertyTypeManager
 

amire::property::ReferenceProperty::ReferenceProperty const ReferenceProperty &  reference  ) 
 

virtual amire::property::ReferenceProperty::~ReferenceProperty  )  [virtual]
 


Member Function Documentation

virtual osg::ref_ptr<Property> amire::property::ReferenceProperty::clone  )  const [virtual]
 

Creates a deep copy clone of the property. The returned property is equal to the original property and doesn't share any value references with it.

Implements amire::property::Property.

virtual void amire::property::ReferenceProperty::cloneFrom const osg::ref_ptr< const Property > &  property  )  [virtual]
 

Initializes this property with a deep copy of the given property. Afterware, this property is equal to the given and doesn't share any value references with it. An exception is thrown, if the deep copy is not possible.

Implements amire::property::Property.

virtual bool amire::property::ReferenceProperty::equals const osg::ref_ptr< const Property > &  property  )  const [virtual]
 

The ‘virtual bool equals(const Property *property) const’ method returns true when the as parameter property given property is equal to the this property instance and false otherwise. It also doesn’t modify the property instance and therefore it is const.

Implements amire::property::Property.

virtual void amire::property::ReferenceProperty::fromPersistentProperty const osg::ref_ptr< const Property > &  property  )  [virtual]
 

Initializes this property with the values of the given peristence able property. Both properties are NOT from the same type. Therefore, they are not equal after the initization. An exception is thrown in any failure case.

Implements amire::property::Property.

void* amire::property::ReferenceProperty::getReference  )  const [inline]
 

The ‘void *getReference() const’ method returns the reference pointer wrapped by the reference property as void pointer. It doesn’t modify the property instance and therefore it is const.

void amire::property::ReferenceProperty::setReference void *  reference  )  [inline]
 

The ‘void setReference(void *reference)’ method set the wrapped reference to the given reference value.

virtual osg::ref_ptr<Property> amire::property::ReferenceProperty::toPersistentProperty  )  [virtual]
 

Returns a persistable representaion of this property as a persistent property. An exception is thrown in any failure case.

Implements amire::property::Property.


The documentation for this class was generated from the following file:
Generated on Tue May 20 17:23:58 2003 for AMIRE-Framework by doxygen1.3