CFx SDK Documentation 2024 SP0
|
#include <RxDictionary.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdRxDictionary) | |
virtual void | reserve (OdUInt32 minSize) |
virtual OdRxObjectPtr | getAt (const OdString &key) const =0 |
virtual OdRxObjectPtr | getAt (OdUInt32 id) const =0 |
virtual OdRxObjectPtr | putAt (const OdString &key, OdRxObject *pObject, OdUInt32 *pRetId=0)=0 |
virtual OdRxObjectPtr | putAt (OdUInt32 id, OdRxObject *pObject)=0 |
virtual bool | resetKey (OdUInt32 id, const OdString &newKey)=0 |
virtual OdRxObjectPtr | remove (const OdString &key)=0 |
virtual OdRxObjectPtr | remove (OdUInt32 id)=0 |
void | removeAll () |
virtual bool | has (const OdString &key) const =0 |
virtual bool | has (OdUInt32 id) const =0 |
virtual OdUInt32 | idAt (const OdString &key) const =0 |
virtual OdString | keyAt (OdUInt32 id) const =0 |
virtual OdUInt32 | numEntries () const =0 |
virtual OdRxDictionaryIteratorPtr | newIterator (OdRx::DictIterType iterType=OdRx::kDictCollated)=0 |
virtual bool | isCaseSensitive () const =0 |
OdSmartPtr< OdRxDictionary > | subDict (const OdString *path, int numSteps, bool createIfNotFound) |
OdSmartPtr< OdRxDictionary > | subDictCr (const OdString *path, int numSteps) |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
<group OdRx_Classes> This class implements the Dictionary object.
Corresponding C++ library: TD_Db
Definition at line 113 of file RxDictionary.h.
|
pure virtual |
Returns the /non-typified smart pointer/ to the instance that is associated with the dictionary item specified by the keyword.
key | [in] Item keyword as a string value. |
Implemented in OdRxDispatchImpl< TBase >.
|
pure virtual |
Returns the /non-typified smart pointer/ to the instance that is associated with the dictionary item specified by the ID.
id | [in] Item ID as an integer value. |
Implemented in OdRxDispatchImpl< TBase >.
|
pure virtual |
Returns true if and only if the dictionary object contains the item with the specified keyword.
key | [in] Keyword as a string value. |
Implemented in OdRxDispatchImpl< TBase >.
|
pure virtual |
Returns true if and only if the dictionary object contains the item with the specified ID.
id | [in] ID as an integer value. |
Implemented in OdRxDispatchImpl< TBase >.
Returns the ID of the item specified by the keyword in the dictionary object.
key | [in] Keyword as a string value. |
Implemented in OdRxDispatchImpl< TBase >.
|
pure virtual |
Returns true if and only if keywords of the dictionary object are case-sensitive, or false if keywords are case-insensitive.
Implemented in OdRxDispatchImpl< TBase >.
Returns the keyword of the item specified by the ID in the dictionary object.
id | [in] Entry ID. |
Implemented in OdRxDispatchImpl< TBase >.
|
pure virtual |
Returns a new interator that can be used to traverse through items of the dictionary object.
iterType | [in] Type of iterator. |
Description OdRx::kDictCollated Traverses the entries in the order they were added to the dictionary. OdRx::kDictSorted Traverses the entries in alphabetical order by key value.
<link dictionary_iterating.html, Iterating through Items of a Dictionary>
<link iterator_concept.html, Concept of Iterators>
Implemented in OdRxDispatchImpl< TBase >.
|
pure virtual |
Returns the number of items in the dictionary object.
Implemented in OdRxDispatchImpl< TBase >.
OdRxDictionary::ODRX_DECLARE_MEMBERS | ( | OdRxDictionary | ) |
|
pure virtual |
Puts the instance specified by the smart pointer into the dictionary object and associates it with the specified keyword.
key | [in] Keyword as a string value. |
pObject | [in] Pointer to the instance to be put. |
pRetId | [in] Pointer to an OdUInt32 to receive the Entry ID of the entry. |
Implemented in OdRxDispatchImpl< TBase >.
|
pure virtual |
Puts the instance specified by the smart pointer into the dictionary object and associates it with the specified keyword.
id | [in] ID as an integer value. |
pObject | [in] Pointer to the instance to be put. |
Implemented in OdRxDispatchImpl< TBase >.
|
pure virtual |
Removes the item specified by keyword from the dictionary object.
key | [in] Keyword as a string value. |
Implemented in OdRxDispatchImpl< TBase >.
|
pure virtual |
Removes the item specified by keyword or ID from the dictionary object.
id | [in] ID as an integer value. |
Implemented in OdRxDispatchImpl< TBase >.
|
inline |
Definition at line 267 of file RxDictionary.h.
Allocates storage for the specified number of items in this dictionary object.
minSize | [in] Minimum number of items for allocating. |
Sets the keyword for the item specified by ID for the dictionary object.
id | [in] ID as an integer value. |
newKey | [in] New keyword as a string value. |
Implemented in OdRxDispatchImpl< TBase >.
|
inline |
Definition at line 452 of file RxDictionary.h.
|
inline |
Definition at line 458 of file RxDictionary.h.