|
CFx SDK Documentation
2020SP3
|
#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 |
Container for the attributes of a member (OdRxMember). Attribute collection may have only one attribute of the given class.
<group OdRx_Classes>
Definition at line 70 of file RxAttribute.h.
| OdRxAttributeCollection::OdRxAttributeCollection | ( | ) |
Default constructor.
| OdRxAttributeCollection::~OdRxAttributeCollection | ( | ) |
Destructor.
| 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.
| int OdRxAttributeCollection::count | ( | ) | const |
Number of elements in the collection.
| OdRxAttribute* OdRxAttributeCollection::get | ( | const OdRxClass * | type | ) |
Finds the attribute of the given class in the collection. Returns 0 if not found.
| const OdRxAttribute* OdRxAttributeCollection::get | ( | const OdRxClass * | type | ) | const |
Finds the attribute of the given class in the collection (constant version). Returns 0 if not found.
| OdRxAttribute* OdRxAttributeCollection::getAt | ( | int | index | ) |
Retrieve the attribute at the index (non-constant version).
| const OdRxAttribute* OdRxAttributeCollection::getAt | ( | int | index | ) | const |
Retrieve the attribute at the index (constant version).
| OdResult OdRxAttributeCollection::override | ( | const OdRxAttribute * | attribute | ) |
Add an attribute to the collection. If the collection already has an attribute of this class, it will be replaced.
| OdResult OdRxAttributeCollection::remove | ( | const OdRxAttribute * | attribute | ) |
Removes the attribute of that type from the collection.
|
friend |
Definition at line 73 of file RxAttribute.h.