API Reference > OdRx Classes > OdRxDictionary Class
OdRxDictionary Class
OdRxDictionaryOdRxDictionary
Syntax
C++
class OdRxDictionary : public OdRxObject;

RxDictionary.h

This class implements the Dictionary object.

  • Each instance of OdRxbDictionary is a single container object, in which items are searched, added, modified, and deleted.
  • Each dictionary item is associated with an unique textual string named keyword and 32-Bit ID with an unique OdDbObject.
  • Anonymous names are signified by specifying a name starting with an asterisk; e.g., *U. A unique name (also starting with an asterisk) will be constructed for the entry.
  • Entry names honor the rules of Symbol names
    • Names may be any length.
    • Names are case-insensitve
    • Names may not contain any of the following characters: | * : ; < > ? " , equals

OdRxDictionaryIterator 

Corresponding C++ library: TD_Db 

Example of Working with a Dictionary 

Working with Dictionaries 

 
Name 
Description 
 
This is the overview for the getAt method overload. 
 
has 
This is the overview for the has method overload. 
 
idAt 
Returns the ID of the item specified by the keyword in the dictionary object.
 
 
Returns true if and only if keywords of the dictionary object are case-sensitive, or false if keywords are case-insensitive. 
 
Returns the keyword of the item specified by the ID in the dictionary object.
 
 
Returns a new interator that can be used to traverse through items of the dictionary object.
 
 
Returns the number of items in the dictionary object. 
 
This is ODRX_DECLARE_MEMBERS, a member of class OdRxDictionary. 
 
This is the overview for the putAt method overload. 
 
This is the overview for the remove method overload. 
 
This is removeAll, a member of class OdRxDictionary. 
 
Allocates storage for the specified number of items in this dictionary object.
 
 
Sets the keyword for the item specified by ID for the dictionary object.
 
 
This is subDict, a member of class OdRxDictionary. 
 
This is subDictCr, a member of class OdRxDictionary. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.