|
DataDirector API
|
List of revertable attributes. More...
#include <DDD_RevertableAttribute.h>
Additional Inherited Members | |
Protected Member Functions inherited from DynamicPtrArray< DDD_RevertableAttribute * > | |
| void | GrowArray (void) |
| void | Size (unsigned int newSize) |
Protected Attributes inherited from DynamicPtrArray< DDD_RevertableAttribute * > | |
| unsigned int | _count |
| DDD_RevertableAttribute * * | _objects |
List of revertable attributes.
Destructor
| void ClearAllAttributes | ( | ) |
Clears the attributes, default attributes remain however
| DDD_RevertableAttribute* Find | ( | const std::string & | name | ) |
Finds the revertable attribute by name
| name | Name to look for. |
| DDD_RevertableAttribute* FindByAttribute | ( | const DDD_AttributeBase * | attr | ) |
Finds the revertable attribute by attribute instance.
| attr | Attribute instance to look for. |
| DDD_RevertableAttribute* FindByDefaultAttribute | ( | const DDD_AttributeBase * | defaultAttr | ) |
Finds the revertable attribute by default attribute instance. This is more efficient than the Find() method since it uses faster pointer comparisons.
| defaultAttr | Default attribute to look for. |
| void Insert | ( | DDD_AttributeBase * | defaultAttribute, |
| DDD_AttributeBase * | attribute | ||
| ) |
Inserts a new attribute into the list using both attributes.
| defaultAttribute | Attribute with default value- this will not be changed by either this list or DDD_RevertableAttribute |
| attribute | Attribute to be reverted. |
| void RemoveAttribute | ( | DDD_AttributeBase * | attribute | ) |
| attribute |
| void RevertAll | ( | ) |
Resets all attributes based on param values.
| void SetAttribute | ( | DDD_AttributeBase * | attribute, |
| DDD_AttributeBase * | param = NULL |
||
| ) |
Sets the attribute, either by searching for Param name
| attribute | New attribute instance replacement. By default, the name of this attribute is matched to the corresponding param name. |
| param | If this is specified, this method does a quicker check based on the param pointer. |
1.8.10