> ## 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.

# DataObjectContainer Class Reference

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

A general container for vector data.

## Public Types

| Type | Name |
| - | - |
|  typedef std::vector\< [DataObjectKey](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_key.md) > | [data\_object\_key\_vector\_type](#a831464cbf6637a6d9426cfad4b30e1e5) A vector of [DataObjectKey](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_key.md). |
|  typedef std::vector\< string > | [string\_vector\_type](#ac293ea0e5c280f69a497ea20f20c60b9) A vector of strings. |
|  typedef std::vector\< Design > | [TDesignContainer](#abfb5e26073200c58da3e0f81b56d2a39) A vector of all designs. |
|  typedef std::map\< string, size\_t > | [TDesignMap](#ab0ed0d9450d62e8ca7197ab3e8e20e80) A map mapping design ID to a an index of the vector of designs. |

## Public Member Functions

| Type | Name |
| - | - |
| [DataObjectPtr](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_ptr.md) | [\_\_getitem\_\_](#a4abe693e43c5eb23dd077b7b94ca3c51) (int idx) const returns the i-th element of the current filter |
| string | [\_\_str\_\_](#a44139caf93a3463ea4f2a6671cdce842) () provides the print() method for this class in SWIG bindings |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [active](#ac01bdbe9866e84f434efc56d18d2c625) () Filter for active data objects. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [depInputs](#a95c22d297a703c1846cdf7c004eaef75) () Filter for data objects marked as DOE dependent parameters. |
| [string\_vector\_type](#ac293ea0e5c280f69a497ea20f20c60b9) | [designIdents](#afe1450937e7407938176edb6754befbf) () generates a vector of strings containing all design idents being part in this filter The ordering of the vector corresponds to the ordering of the ouput of generateVector() |
| [string\_vector\_type](#ac293ea0e5c280f69a497ea20f20c60b9) | [designs](#afc070c7b791f8091a5a95c71b6f14735) () Generates a vector of strings containing all design idents being part in this filter. |
| | [fillValueTypeManager](#a988ee6b7e261a025f1310f81507f43a3) (::core::ValueTypeManager manager) Fill [ValueTypeManager](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_value_type_manager.md) with all ValueTypes contained in this [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md). |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [filterDesign](#aa9c0e23be84ab48b5ea1841779e66268) (string design\_id, bool match\_regex=false) Returns the subset of data objects where the design ID is equal to the given ID. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [filterDesign](#a3d2239c5a1d607e7cae55a6c135efd7e) ([string\_vector\_type](#ac293ea0e5c280f69a497ea20f20c60b9) ids) Returns the subset of data objects where the design ID is equal to one of the given ID list. Design IDs not found in the current [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) are skipped. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [filterID](#a6363bd922e52a89952fae621f41258fc) (string design\_id, string quantity\_id) Returns a set containing a single or no data object, defined by design and quantity ID. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [filterID](#a942f7516510aaf8a95658389d930bcc0) ([DataObjectKey](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_key.md) key) Returns container containing a single DataObject. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [filterID](#a8b5371193e6891419a03ef367a5216f0) ([data\_object\_key\_vector\_type](#a831464cbf6637a6d9426cfad4b30e1e5) key\_vector) Returns a container containing all objects in key\_vector. Throws an ERROR if key\_vector contains duplicate DataObjectKeys. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [filterQuantity](#a62dbf8a6166ee22a6dc160040fac8257) (string quantity\_id, bool match\_regex=false) Returns the subset of data objects where the quantity ident is equal to the given ID. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [filterQuantity](#a8619edf76b71eb71488e02d2afe534ed) ([string\_vector\_type](#ac293ea0e5c280f69a497ea20f20c60b9) ids) Returns the subset of data objects where the quantity ID is equal to one of the given ID list. Quantity IDs not found in the current [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) are skipped. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [filterSerializable](#ac5e524cbe635d05cebaf52b2eee73bd6) () Get a subset of all data objects which can be serialized These are all objects which do not contain any NaN or infinity numbers. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [filterType](#a88778d03fe76cec6eb828dd57ac82411) ([dataobject\_types](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#ga1bebf1e22deb3cd41d7d99ddcdb15379) type) Returns a container containing objects of a single type. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [filterWithoutDesign](#a064c6b8de61a4eaabc1d8ecb7777acfb) (string design\_id) Returns the subset of data objects where the design ID is NOT equal to the given ID. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [filterWithoutID](#a2fee6f94f9d158b13b25333773d2dd0f) (string design\_id, string quantity\_id) Returns the subset of data objects NOT containing the data object defined by ID and quantity ID. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [filterWithoutQuantity](#a9894e187de92b709b980af4f72657d4f) (string quantity\_id) Returns the subset of data objects where the quantity ID is NOT equal to the given ID. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [fromFile](#ac128db8392720a15d6e7f47e93c88b80) () Filter for data objects which were imported from a file. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [inactive](#a892eff18dec0d7b6fd05c72b2b25091b) () Filter for inactive data objects. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [inputs](#ad628e58a3f2370187cefb859563cc746) () Filter for data objects marked as DOE input parameters. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [nonSamples](#a01c71804ddc13e4fca2aacd02134a769) () Filter for non-sample data objects. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [notFromFile](#a93923d7bedbfe9a068d53784f6e0c3d8) () Filter for data objects which were NOT imported from a file. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [operator\*](#accde3afcbb0415939e45252512b3af66) ([DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) other) performs the set intersection |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [operator+](#a89ca332a23d46e97018f24b3b634e8aa) ([DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) other) performs the set union |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [operator/](#a717b8362e30ad94fd57b9087f3aec065) ([DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) other) performs the set difference |
| bool | [operator==](#addd137ea1cb68d019bbc027e787d0f3e) ([DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) other) |
| [DataObjectPtr](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_ptr.md) | [operator\[\]](#a3528fa5c2bc9da26a1c3cdda3d645c0b) (int idx) returns the i-th element of the current filter |
| [string\_vector\_type](#ac293ea0e5c280f69a497ea20f20c60b9) | [quantities](#af47e8fae53b8f978396af4b4007c6b95) () Generates a vector of strings containing all quantity idents being part in this filter. |
| [string\_vector\_type](#ac293ea0e5c280f69a497ea20f20c60b9) | [quantityIdents](#a3fd2740b12d821c55d78c29aaf7585ca) () generates a vector of strings containing all quantity idents being part in this filter The ordering of the vector corresponds to the ordering of the ouput of generateVector() |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [responses](#ac7636c3263b7ecc20a761612d3adce18) () Filter for data objects marked as DOE responses. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [samples](#ac8fb74d0fa2c408063005cf2a32a8b1b) () Filter for sample data objects. |
| | [setActive](#ae5a274f83fd436019cca4ae43f1fb574) (bool [active](#ac01bdbe9866e84f434efc56d18d2c625)) changes the activity flag of all contained objects |

### Create DataObjectContainer

| Type | Name |
| - | - |
| | [DataObjectContainer](#a5f52eb5e961329776d0c2734386672e9) () default constructor (creates an empty container) |
| | [DataObjectContainer](#a3c2a1cc92b9d99f88f88cb05e3dde2d3) ([DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) other) copy constructor |
| | [DataObjectContainer](#ada0c8d77172a82e6e61f72280a058273) ([TDesignContainer](#abfb5e26073200c58da3e0f81b56d2a39) [designs](#afc070c7b791f8091a5a95c71b6f14735), [TDesignMap](#ab0ed0d9450d62e8ca7197ab3e8e20e80) design\_map, std::map\< [dataobject\_types](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#ga1bebf1e22deb3cd41d7d99ddcdb15379), number > [dimension](#a3826d5a1e240c1c24f271a0410911069)) Create container from its components. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [operator=](#a3619cbe41ed2a2e1f2f654e5e9e427db) ([DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) other) destructor |

### Element Access

| Type | Name |
| - | - |
| bool | [exists](#a72704c60f2b9d84b3986265aea0fe0b8) (string design, string quantity) Check whether a DataObject of given design ID and quantity ID exists. |
| bool | [exists](#aafcbe4a7beac4d373c25368e4c675dc4) ([DataObjectKey](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_key.md) key) Check whether a DataObject with the given [DataObjectKey](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_key.md) exists. |
| bool | [designExists](#a7d96425fdcb11118c0bb72444441f2b9) (string design) Check whether any DataObject with the given design ID exists. Computational complexity is of order O( log N\_designs ). |
| bool | [quantityExists](#a566784596083c7810e86cd900a5b8c1d) (string quantity) Check whether any DataObject with the given quantity ID exists. Worst case computational complexity is of order O( N\_designs \* log N\_quantities) |
| [DataObjectPtr](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_ptr.md) | [find](#ae1c3801d3ff9a1bf0749dffdf1e242d5) (string design, string quantity) Gets the data object with given data key. |
| [DataObjectPtr](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_ptr.md) | [find](#a00f452f17159cf5600ee5f48d15be6cc) ([DataObjectKey](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_key.md) key) Gets the data object with given data key. |
| bool | [checkInsert](#ae7ea9a06802a14acba40ee576f16fb72) ([DataObjectKey](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_key.md) key, bool overwrite\_existing=false) checks if an item can be inserted |
| void | [insert](#a844c9a5a2416075dbb621837faddc4f8) ([DataObjectKey](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_key.md) key, [DataObjectPtr](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_ptr.md) item) inserts a new data object. Assigns [ValueTypeDouble](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_value_type_double.md) (named after key.quantity()) to the inserted data object. |
| void | [insert](#adcef3af2ddfef83778861f840c0416b8) ([DataObjectKey](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_key.md) key, [DataObjectPtr](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_ptr.md) item, std::shared\_ptr\<::core::ValueType > value\_type) inserts a new data object. |
| | [insert](#a51b8c2e3bd639abcd738c2a98e5fc4ab) ([DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) other, bool update\_description=false, [Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) \*[database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b)=0, bool overwrite\_existing=false) inserts a set of data objects contained in another container |
| | [erase](#a69edf27ea2ab7f799dea69259a7a62f4) ([DataObjectKey](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_key.md) key) erases a data object from the container |
| | [erase](#afce340c1fd49e8007bbbe2a00592830b) ([DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) container) Erases the DataObjects contained in the [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) passed as the argument, from this container. DataObjects not contained in this container, are skipped. |
| | [eraseQuantity](#a4b32c8958266ff87333ca085b89b3f73) (string ident) erases all objects (and sets "needs update" flag of its dependencies) with given quantity ident |
| | [eraseDesign](#a01fa12436c02e375206da37a9f0a03fb) (string ident) erases all objects (and sets "needs update" flag of its dependencies) with given design ident |
| | [renameDesign](#a2615c573b21bcbfdce9cb732dcd6038c) (string from\_name, string to\_name) renames all design idents |
| | [renameQuantity](#aed7f7ec6101929d132d78b5e4cec0a06) (string from\_name, string to\_name) renames all quantity idents |

### Capacity

| Type | Name |
| - | - |
| number | [size](#abcd703e220fe34c4ff8364626470876d) () Get the number of data objects contained in this [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md). |
| bool | [empty](#a3f37b042a1e7cd4bd38fc564de81f0da) () True, if the [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) contains no data objects. |
| | [clear](#aa821bec12eaa7e0f649397c9675ff505) () clears all data objects in the container |

## Friends

| Type | Name |
| - | - |
|  class | **DataObject** |

## Operations

| Type | Name |
| - | - |
| number | [dimension](#a3826d5a1e240c1c24f271a0410911069) ([dataobject\_types](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#ga1bebf1e22deb3cd41d7d99ddcdb15379) type) |
| static [string\_vector\_type](#ac293ea0e5c280f69a497ea20f20c60b9) | [sortDesignIdents](#a108f3eabb5280c21cf58a9c9922fb81c) ([string\_vector\_type](#ac293ea0e5c280f69a497ea20f20c60b9) string) Sorts the given list of design IDs. |
| static string | [sampleFormatString](#aaa8995e0303a2bb22b2c217dba3ecce0) () |
| static bool | [isSampleDesignIdent](#ad0ab9ca4db182890c7d4a844ce3ca61a) (string s) |
| static int | [getSampleNumber](#a46745cb0c540800be74821623a4e4489) (string s) |
| static string | [getSampleIdent](#aa23c998acfc6005bd25abf497d93df62) (int number) |
| static bool | [isReservedResultQuantityIdent](#a39c1c39e086df0f6acfbbae459b2f307) (string s) |

## Detailed Description

A general container for vector data.

This is a container for all data objects of the same type which may be used within SoS. A vector data object is described through a 'design' identifier and a 'quantity' identifier:

****quantity****

A 'quantity' may be the x-direction of the stress tensor, the plastic strain or any other scalar physical quantity.

****design****

A 'design' is a single instantiation of the same quantity, i.e. if one has several measurements of the same quantity, each measurement represents a single design.

Throughout the workflow of SoS one may add data sets which may be interpreted in terms of new designs or quantities. For example, the mean value or the standard deviation of a quantity is computed from a set of designs of the same quantity, and can be interpreted as a new design. Furthermore, one may define additional quantities, for example compute the von Mises equivalent stress from the 6-dimensional stress tensor (i.e. from 6 different quantities).

[DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) is a Sender. It communicates to it's Listeners (Qt Datatables, [Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure)) when its DataObjects are changed (insert, erase, rename, change activity)

## Constructor & Destructor Documentation

### DataObjectContainer()

```cpp theme={null}
DataObjectContainer(DataObjectContainer other)
```

copy constructor

**Parameters**

| Name | Description |
| - | - |
| other | the container to be copied |

## Member Function Documentation

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

```cpp theme={null}
DataObjectPtr __getitem__(int idx) const
```

returns the i-th element of the current filter

**Parameters**

| Name | Description |
| - | - |
| idx | the index (0..size-1) |

**Returns**

a data object pointer

**Exceptions**

| Name | Description |
| - | - |
| exception | if the index is not valid |

### \_\_str\_\_()

```cpp theme={null}
string __str__()
```

provides the print() method for this class in SWIG bindings

**Returns**

a message to be printed when print(this) is called

### active()

```cpp theme={null}
DataObjectContainer active()
```

Filter for active data objects.

**Returns**

returns the subset of active data objects

### checkInsert()

```cpp theme={null}
bool checkInsert(
    DataObjectKey key,
    bool overwrite_existing = false
)
```

checks if an item can be inserted

**Parameters**

| Name | Description |
| - | - |
| key | the key to be tested. |
| overwrite\_existing | If true it returns true. Else it returns true if *key* does not exist in the data base. |

**Returns**

If the key is invalid, it returns false. returns true if *key* does not exist in the data base.

### depInputs()

```cpp theme={null}
DataObjectContainer depInputs()
```

Filter for data objects marked as DOE dependent parameters.

**Returns**

returns the subset of data objects marked as DOE dependent parameters

### designExists()

```cpp theme={null}
bool designExists(string design)
```

Check whether any DataObject with the given design ID exists. Computational complexity is of order O( log N\_designs ).

**Parameters**

| Name | Description |
| - | - |
| design | The design ID |

**Returns**

True if a DataObject with the given design ID exists.

### designIdents()

```cpp theme={null}
string_vector_type designIdents()
```

generates a vector of strings containing all design idents being part in this filter The ordering of the vector corresponds to the ordering of the ouput of generateVector()

**Returns**

the vector contained of design ident strings

### designs()

```cpp theme={null}
string_vector_type designs()
```

Generates a vector of strings containing all design idents being part in this filter.

Each design ident appears only once in the list. You can use this, for example, to find out which design names are selected.

**Returns**

The vector contained of design ident strings

### dimension()

```cpp theme={null}
number dimension(dataobject_types type)
```

**Returns**

returns the dimension of the data objects of given type, if any

**Parameters**

| Name | Description |
| - | - |
| type | DataObject type of which the dimension is returned |

### empty()

```cpp theme={null}
bool empty()
```

True, if the [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) contains no data objects.

**Returns**

returns true, if the [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) contains no data objects

### erase() \[1/2]

```cpp theme={null}
erase(DataObjectKey key)
```

erases a data object from the container

**Parameters**

| Name | Description |
| - | - |
| key | the key of the data object to be removed. Throws an exception if it does not exist. |

### erase() \[2/2]

```cpp theme={null}
erase(DataObjectContainer container)
```

Erases the DataObjects contained in the [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) passed as the argument, from this container. DataObjects not contained in this container, are skipped.

**Parameters**

| Name | Description |
| - | - |
| container | The container of the data object to be removed. |

### eraseDesign()

```cpp theme={null}
eraseDesign(string ident)
```

erases all objects (and sets "needs update" flag of its dependencies) with given design ident

**Parameters**

| Name | Description |
| - | - |
| ident | the ident |
| database | the database wherein this container and all slaves and masters are stored |

### eraseQuantity()

```cpp theme={null}
eraseQuantity(string ident)
```

erases all objects (and sets "needs update" flag of its dependencies) with given quantity ident

**Parameters**

| Name | Description |
| - | - |
| ident | the ident |
| database | the database wherein this container and all slaves and masters are stored |

### exists() \[1/2]

```cpp theme={null}
bool exists(
    string design,
    string quantity
)
```

Check whether a DataObject of given design ID and quantity ID exists.

**Parameters**

| Name | Description |
| - | - |
| design | The design ID |
| quantity | The quantity ID |

**Returns**

true, if the requested DataObject exists.

### exists() \[2/2]

```cpp theme={null}
bool exists(DataObjectKey key)
```

Check whether a DataObject with the given [DataObjectKey](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_key.md) exists.

**Returns**

true, if the given key exists

**Parameters**

| Name | Description |
| - | - |
| key | the key to search for |

### fillValueTypeManager()

```cpp theme={null}
fillValueTypeManager(::core::ValueTypeManager manager)
```

Fill [ValueTypeManager](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_value_type_manager.md) with all ValueTypes contained in this [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md).

> [!NOTE]
>
> Convention: one [ValueType](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_value_type.md) per quantity. Ignores DataObjects with empty m\_value\_type shared\_ptr.

**Parameters**

| Name | Description |
| - | - |
| manager | The [ValueTypeManager](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_value_type_manager.md) to be filled. |

### filterDesign() \[1/2]

```cpp theme={null}
DataObjectContainer filterDesign(
    string design_id,
    bool match_regex = false
)
```

Returns the subset of data objects where the design ID is equal to the given ID.

**Parameters**

| Name | Description |
| - | - |
| design\_id | The design ID to filter for. |
| match\_regex | If this is true then the given ident is a regular expression. The returned container contains all data objects that MATCH this expression. |

**Returns**

The resulting [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md)

### filterDesign() \[2/2]

```cpp theme={null}
DataObjectContainer filterDesign(string_vector_type ids)
```

Returns the subset of data objects where the design ID is equal to one of the given ID list. Design IDs not found in the current [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) are skipped.

**Parameters**

| Name | Description |
| - | - |
| ids | a vector of design IDs |

**Returns**

the resulting filter object

### filterID() \[1/3]

```cpp theme={null}
DataObjectContainer filterID(
    string design_id,
    string quantity_id
)
```

Returns a set containing a single or no data object, defined by design and quantity ID.

**Parameters**

| Name | Description |
| - | - |
| design\_id | the design ID string |
| quantity\_id | the quantity ID string |

**Returns**

the resulting container

### filterID() \[2/3]

```cpp theme={null}
DataObjectContainer filterID(DataObjectKey key)
```

Returns container containing a single DataObject.

**Parameters**

| Name | Description |
| - | - |
| key | The [DataObjectKey](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_key.md) to filter for. |

**Returns**

the resulting container

### filterID() \[3/3]

```cpp theme={null}
DataObjectContainer filterID(data_object_key_vector_type key_vector)
```

Returns a container containing all objects in key\_vector. Throws an ERROR if key\_vector contains duplicate DataObjectKeys.

**Parameters**

| Name | Description |
| - | - |
| key\_vector | A vector of unique DataObjectKeys. |

**Returns**

the resulting container

### filterQuantity() \[1/2]

```cpp theme={null}
DataObjectContainer filterQuantity(
    string quantity_id,
    bool match_regex = false
)
```

Returns the subset of data objects where the quantity ident is equal to the given ID.

**Parameters**

| Name | Description |
| - | - |
| quantity\_id | The quantity ID to filter for. |
| match\_regex | If this is true then the given ident is a regular expression. The filter will contain all objects that MATCH this expression. |

**Returns**

the resulting filter object

### filterQuantity() \[2/2]

```cpp theme={null}
DataObjectContainer filterQuantity(string_vector_type ids)
```

Returns the subset of data objects where the quantity ID is equal to one of the given ID list. Quantity IDs not found in the current [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) are skipped.

**Parameters**

| Name | Description |
| - | - |
| ids | a vector of quantity IDs |

**Returns**

the resulting filter object

### filterSerializable()

```cpp theme={null}
DataObjectContainer filterSerializable()
```

Get a subset of all data objects which can be serialized These are all objects which do not contain any NaN or infinity numbers.

**Returns**

The resulting [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md)

### filterType()

```cpp theme={null}
DataObjectContainer filterType(dataobject_types type)
```

Returns a container containing objects of a single type.

**Parameters**

| Name | Description |
| - | - |
| type | the data object type (node/element/scalar) to filter for. |

**Returns**

the resulting container

### filterWithoutDesign()

```cpp theme={null}
DataObjectContainer filterWithoutDesign(string design_id)
```

Returns the subset of data objects where the design ID is NOT equal to the given ID.

**Parameters**

| Name | Description |
| - | - |
| design\_id | the design ID to be filtered for. |

**Returns**

the resulting filter object

### filterWithoutID()

```cpp theme={null}
DataObjectContainer filterWithoutID(
    string design_id,
    string quantity_id
)
```

Returns the subset of data objects NOT containing the data object defined by ID and quantity ID.

**Parameters**

| Name | Description |
| - | - |
| design\_id | the design ID string to be filtered for |
| quantity\_id | the quantity ID string to be filtered for |

**Returns**

the resulting filter object

### filterWithoutQuantity()

```cpp theme={null}
DataObjectContainer filterWithoutQuantity(string quantity_id)
```

Returns the subset of data objects where the quantity ID is NOT equal to the given ID.

**Parameters**

| Name | Description |
| - | - |
| design\_id | the quantity ID to be filtered for |

**Returns**

the resulting filter object

### find() \[1/2]

```cpp theme={null}
DataObjectPtr find(
    string design,
    string quantity
)
```

Gets the data object with given data key.

**Parameters**

| Name | Description |
| - | - |
| design | The design ID |
| quantity | The quantity ID |

**Returns**

a pointer to the requested object

**Exceptions**

| Name | Description |
| - | - |
| exception | if the object does not exist |

### find() \[2/2]

```cpp theme={null}
DataObjectPtr find(DataObjectKey key)
```

Gets the data object with given data key.

**Parameters**

| Name | Description |
| - | - |
| key | The [DataObjectKey](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_key.md) of the data object to be found |

**Returns**

a pointer to the requested object

**Exceptions**

| Name | Description |
| - | - |
| exception | if the object does not exist |

### fromFile()

```cpp theme={null}
DataObjectContainer fromFile()
```

Filter for data objects which were imported from a file.

**Returns**

returns the subset of data objects which were imported from a file

### getSampleIdent()

```cpp theme={null}
static string getSampleIdent(int number)
```

`static`

**Returns**

the design string ident of the given sample number

**Parameters**

| Name | Description |
| - | - |
| number | the number to be converted |

### getSampleNumber()

```cpp theme={null}
static int getSampleNumber(string s)
```

`static`

**Returns**

the sample number which is given as a design ident string

**Parameters**

| Name | Description |
| - | - |
| s | the string to be converted |

### inactive()

```cpp theme={null}
DataObjectContainer inactive()
```

Filter for inactive data objects.

**Returns**

returns the subset of inactive data objects

### inputs()

```cpp theme={null}
DataObjectContainer inputs()
```

Filter for data objects marked as DOE input parameters.

**Returns**

returns the subset of data objects marked as DOE input parameters

### insert() \[1/3]

```cpp theme={null}
void insert(
    DataObjectKey key,
    DataObjectPtr item
)
```

inserts a new data object. Assigns [ValueTypeDouble](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_value_type_double.md) (named after key.quantity()) to the inserted data object.

**Parameters**

| Name | Description |
| - | - |
| item | a shared pointer to the data object to be inserted. |

**Returns**

An iterator to the newly added data object

**Exceptions**

| Name | Description |
| - | - |
| std::exception | If the key already exists in the database |

### insert() \[2/3]

```cpp theme={null}
void insert(
    DataObjectKey key,
    DataObjectPtr item,
    std::shared_ptr<::core::ValueType > value_type
)
```

inserts a new data object.

**Parameters**

| Name | Description |
| - | - |
| item | a shared pointer to the data object to be inserted. |
| value\_type | The [ValueType](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_value_type.md) shared resource of the data object to be inserted. |

**Returns**

An iterator to the newly added data object

**Exceptions**

| Name | Description |
| - | - |
| std::exception | If the key already exists in the database |

### insert() \[3/3]

```cpp theme={null}
insert(
    DataObjectContainer other,
    bool update_description = false,
    Structure * database = 0,
    bool overwrite_existing = false
)
```

inserts a set of data objects contained in another container

**Parameters**

| Name | Description |
| - | - |
| update\_description | if true, then this method calls |

**See also**

generateDescription for each inserted object!

**Parameters**

| Name | Description |
| - | - |
| database | if update\_description is true, then update\_description must point to the database all data refers to |
| other | the container which has all objects to be inserted |
| overwrite\_existing | if this is true, then any possibly existing object will be deleted before existing the new one (else an error appears if any object with same ident already exists). If true, the |

**See also**

[database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b) must be [a](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__tmath#ga7e205066f67b9e3fd4c8cbd5859e8da3) valid pointer.

### isReservedResultQuantityIdent()

```cpp theme={null}
static bool isReservedResultQuantityIdent(string s)
```

`static`

**Returns**

true if the given quantity ident is reserved for results (hence it cannot be imported from file)

**Parameters**

| Name | Description |
| - | - |
| s | the string to test |

### isSampleDesignIdent()

```cpp theme={null}
static bool isSampleDesignIdent(string s)
```

`static`

**Returns**

true if the given design ident string can be interpreted as a sample number

**Parameters**

| Name | Description |
| - | - |
| s | the string to be checked |

### nonSamples()

```cpp theme={null}
DataObjectContainer nonSamples()
```

Filter for non-sample data objects.

**Returns**

returns the subset of data objects NOT having sample string IDs

### notFromFile()

```cpp theme={null}
DataObjectContainer notFromFile()
```

Filter for data objects which were NOT imported from a file.

**Returns**

returns the subset of data objects which were NOT imported from a file

### operator\*()

```cpp theme={null}
DataObjectContainer operator*(DataObjectContainer other)
```

performs the set intersection

**Parameters**

| Name | Description |
| - | - |
| other | the other filter |

**Returns**

returns the intersection of this and other

### operator+()

```cpp theme={null}
DataObjectContainer operator+(DataObjectContainer other)
```

performs the set union

**Parameters**

| Name | Description |
| - | - |
| other | the other filter |

**Returns**

returns the union of this and other

### operator/()

```cpp theme={null}
DataObjectContainer operator/(DataObjectContainer other)
```

performs the set difference

**Parameters**

| Name | Description |
| - | - |
| other | the other filter |

**Returns**

returns the difference of this minus other

### operator=()

```cpp theme={null}
DataObjectContainer operator=(DataObjectContainer other)
```

destructor

the assignment operator It copies all data and callbacks, but no mutexes (thread locks)

**Parameters**

| Name | Description |
| - | - |
| other | the source |

**Returns**

a reference to this object

### operator==()

```cpp theme={null}
bool operator==(DataObjectContainer other)
```

**Returns**

true if both objects contain objects with identical content

**Parameters**

| Name | Description |
| - | - |
| other | the container to be compared This equal content means, that the pointer do not necessarily point to the same address, but the objects behind these addresses have the same contents. Both containers may contain copies of the same data sets. Then they are considered to be equal. |

### operator\[]\()

```cpp theme={null}
DataObjectPtr operator[](int idx)
```

returns the i-th element of the current filter

**Parameters**

| Name | Description |
| - | - |
| idx | the index (0..size-1) |

**Returns**

a data object pointer

**Exceptions**

| Name | Description |
| - | - |
| exception | if the index is not valid |

### quantities()

```cpp theme={null}
string_vector_type quantities()
```

Generates a vector of strings containing all quantity idents being part in this filter.

Each quantity ident appears only once in the list. You can use this, for example, to find out which quantity names are selected.

**Returns**

The vector contained of quantity ident strings

### quantityExists()

```cpp theme={null}
bool quantityExists(string quantity)
```

Check whether any DataObject with the given quantity ID exists. Worst case computational complexity is of order O( N\_designs \* log N\_quantities)

**Parameters**

| Name | Description |
| - | - |
| quantity | The design ID |

**Returns**

True if a DataObject with the given quantity ID exists.

### quantityIdents()

```cpp theme={null}
string_vector_type quantityIdents()
```

generates a vector of strings containing all quantity idents being part in this filter The ordering of the vector corresponds to the ordering of the ouput of generateVector()

**Returns**

the vector contained of quantity ident strings

### renameDesign()

```cpp theme={null}
renameDesign(
    string from_name,
    string to_name
)
```

renames all design idents

> [!NOTE]
>
> Creates copies of the DataObjects to be renamed and removes the original DataObjects from this [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md). This favors data consistency over performance.

**Parameters**

| Name | Description |
| - | - |
| from\_name | the original design ident |
| to\_name | the new design ident. If it cannot be renamed (for example, if the names already exist in the data base) an exception is thrown. The data base may remain unchanged. After the renaming, the ordering of the data base will be adjusted to the new naming. |

### renameQuantity()

```cpp theme={null}
renameQuantity(
    string from_name,
    string to_name
)
```

renames all quantity idents

> [!NOTE]
>
> Creates copies of the DataObjects to be renamed and removes the original DataObjects from this [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md). This favors data consistency over performance.

**Parameters**

| Name | Description |
| - | - |
| from\_name | the original design ident |
| to\_name | the new quantity ident. If it cannot be renamed (for example, if the names already exist in the data base) an exception is thrown. The data base may remain unchanged. After the renaming, the ordering of the data base will be adjusted to the new naming. |

### responses()

```cpp theme={null}
DataObjectContainer responses()
```

Filter for data objects marked as DOE responses.

**Returns**

returns the subset of data objects marked as DOE responses

### sampleFormatString()

```cpp theme={null}
static string sampleFormatString()
```

`static`

**Returns**

A copy of the

**See also**

sample\_ident\_format\_string

### samples()

```cpp theme={null}
DataObjectContainer samples()
```

Filter for sample data objects.

**Returns**

returns the subset of data objects having sample string IDs

### setActive()

```cpp theme={null}
setActive(bool active)
```

changes the activity flag of all contained objects

**Parameters**

| Name | Description |
| - | - |
| active | is true if the objects are to be set active, false if inactive. |

### size()

```cpp theme={null}
number size()
```

Get the number of data objects contained in this [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md).

**Returns**

the number of objects contained in this [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md)

### sortDesignIdents()

```cpp theme={null}
static string_vector_type sortDesignIdents(string_vector_type string)
```

`static`

Sorts the given list of design IDs.

**Parameters**

| Name | Description |
| - | - |
| string | a vector of unique design ID strings |

**Returns**

An ordered vector of IDs. Numbers are sorted according to

**See also**

compareDesignIdents
