DataObjectIdentMap Class Reference
Last update: 16.07.2025A map of data objects of same type being associated with single string idents. More...
Public Types | |
| typedef DataObjectPtr | PtrBase |
| corresponding DataObject pointer type | |
Public Member Functions | |
| PtrBase | __getitem__ (string key) const |
| references a member of the map More... | |
| __setitem__ (string key, PtrBase value) | |
| adds/changes a value in the map More... | |
| DataObjectIdentMap () | |
| default constructor (creates an empty list) | |
Public Attributes | |
| T | elements |
| STL member. | |
| K | keys |
| STL member. | |
Detailed Description
A map of data objects of same type being associated with single string idents.
The implementation uses a std::map. Hence, it ensures that each data object is contained only once in the set. The class may be used to store the data objects contained in a single input file. At this stage of the import of data, no information on the 'design ident' exist.
- Template Parameters
-
TYPE the type of the vector data
Member Function Documentation
◆ __getitem__()
| PtrBase __getitem__ | ( | string | key | ) | const |
references a member of the map
- Parameters
-
key the ident
- Returns
- a reference to the value of the ident
- Note
- This is used for SWIG to access the [] operator.
◆ __setitem__()
| __setitem__ | ( | string | key, |
| PtrBase | value | ||
| ) |
adds/changes a value in the map
- Parameters
-
key the ident value the new value
- Note
- This is used for SWIG to access the [] operator.