Class hierarchy   Compound list   File list   Compound Members  

Property Class Reference

This is a generic association that is used to store any information for an object. More...

List of all members.

Public Members


Detailed Description

This is a generic association that is used to store any information for an object.

The key is the name, and the data is a void pointer


Member Function Documentation

Property::Property(String Name, void* Value, int Destroy=0)

Constructs a new Property.

The name should be a unique key in an object. The value can be anything, and is only stored unless Destroy is used. If Destroy is not 0, the Value is assumed to be dynamically allocated, and will be 'delete'd when the property is destroyed. A property that is set in an Object is automatically destroyed when the Object is destroyed.

String& Property::getString() const

Returns the name of the property.

Implementing String_Containable

void* Property::getData() const

Returns the data value.

void Property::setData(void* Value)

Set a different data value.

size_t Property::hashValue() const

Hash value for property.

Uses the Name's hash value.


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