> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DataObjectIdentMap Class Reference

Part of [Data](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data)

A map of data objects of same type being associated with single string idents.

## Public Types

| Type | Name |
| - | - |
|  typedef [DataObjectPtr](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_ptr.md) | [PtrBase](#aecda2762686ef28a64e707ca8adbf775) corresponding DataObject pointer type |

## Public Member Functions

| Type | Name |
| - | - |
| [PtrBase](#aecda2762686ef28a64e707ca8adbf775) | [\_\_getitem\_\_](#a5a195b690a64e43e80a69a7e85d038db) (string key) const references a member of the map |
| | [\_\_setitem\_\_](#adc74708ac63d88d2bf7eaba067f57e98) (string key, [PtrBase](#aecda2762686ef28a64e707ca8adbf775) value) adds/changes a value in the map |
| | [DataObjectIdentMap](#abdcc12704b48e722663a1e9c87c1941d) () default constructor (creates an empty list) |

## Public Attributes

| Type | Name |
| - | - |
|  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**

| Name | Description |
| - | - |
| TYPE | the type of the vector data |

## Member Function Documentation

### \_\_getitem\_\_()

```cpp theme={null}
PtrBase __getitem__(string key) const
```

references a member of the map

**Parameters**

| Name | Description |
| - | - |
| key | the ident |

**Returns**

a reference to the value of the ident

> [!NOTE]
>
> This is used for SWIG to access the \[] operator.

### \_\_setitem\_\_()

```cpp theme={null}
__setitem__(
    string key,
    PtrBase value
)
```

adds/changes a value in the map

**Parameters**

| Name | Description |
| - | - |
| key | the ident |
| value | the new value |

> [!NOTE]
>
> This is used for SWIG to access the \[] operator.
