|
CFx SDK Documentation 2024 SP0
|
#include <RxAttribute.h>
Public Member Functions | |
| OdRxAttributeCollection () | |
| ~OdRxAttributeCollection () | |
| int | count () const |
| const OdRxAttribute * | getAt (int index) const |
| OdRxAttribute * | getAt (int index) |
| const OdRxAttribute * | get (const OdRxClass *type) const |
| OdRxAttribute * | get (const OdRxClass *type) |
| OdResult | add (const OdRxAttribute *attribute) |
| OdResult | override (const OdRxAttribute *attribute) |
| OdResult | remove (const OdRxAttribute *attribute) |
Friends | |
| class | OdRxAttributeCollectionImpl |
<group OdRx_Classes>
Container for the attributes of a member (OdRxMember). Attribute collection may have only one attribute of the given class.
Definition at line 72 of file RxAttribute.h.
| OdRxAttributeCollection::OdRxAttributeCollection | ( | ) |
Default constructor. Creates an OdRxAttributeCollection instance with default parameters.
| OdRxAttributeCollection::~OdRxAttributeCollection | ( | ) |
Default destructor. Destroys the OdRxAttributeCollection object.
| OdResult OdRxAttributeCollection::add | ( | const OdRxAttribute * | attribute | ) |
Add an attribute to the collection. If the collection already has an attribute of this class, it will not be replaced.
| attribute | [in] Attribute to be added to the collection. |
| int OdRxAttributeCollection::count | ( | ) | const |
Gets the number of elements in the collection.
| OdRxAttribute * OdRxAttributeCollection::get | ( | const OdRxClass * | type | ) |
Finds the attribute of the given class in the collection.
| type | [in] Class of the attribute to be found. |
| const OdRxAttribute * OdRxAttributeCollection::get | ( | const OdRxClass * | type | ) | const |
Finds the attribute of the given class in the collection (constant version).
| type | [in] Class of the attribute to be found. |
| OdRxAttribute * OdRxAttributeCollection::getAt | ( | int | index | ) |
Retrieves the attribute at the specified index (non-constant version).
| index | [in] Index of the attribute to be retrieved. |
| const OdRxAttribute * OdRxAttributeCollection::getAt | ( | int | index | ) | const |
Retrieves the attribute at the specified index (constant version).
| index | [in] Index of the attribute to be retrieved. |
| OdResult OdRxAttributeCollection::override | ( | const OdRxAttribute * | attribute | ) |
Adds an attribute to the collection. If the collection already has an attribute of this class, it will be replaced.
| attribute | [in] Attribute to be added to the collection. |
| OdResult OdRxAttributeCollection::remove | ( | const OdRxAttribute * | attribute | ) |
Removes the attribute of that type from the collection.
| attribute | [in] Attribute to be removed from the collection. |
|
friend |
Definition at line 75 of file RxAttribute.h.