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

# MOPContainer Class Reference

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

a container storing all Field data models

## Public Types

| Type | Name |
| - | - |
|  typedef std::vector\< [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) > | [TMOPContainer](#a637a414e738bbb78f13a924b53c80a20) a container type for FMOPs |

## Public Member Functions

| Type | Name |
| - | - |
| std::vector\< string > | [elementQuantities](#ae7760bd8a3d244dc92dfafd9148fa46b) () Get ELEMENT\_DATA quantities with an existing Field-MOP. |
| | [eraseElementModel](#a3ba4c3b5e20898cf6851b3bdd9ed6398) (string quantity, [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)) deletes the respective random field model (group) |
| | [eraseNodeModel](#a5ec6e90bf0b133f3d5abe7c74d8872df) (string quantity, [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)) deletes the respective random field model (group) |
| | [eraseScalarModel](#a5afabc57c34ea9e5260d5cfde030cf2e) (string quantity, [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)) deletes the respective random field model (group) |
| bool | [exists](#a30d7bfb182d9e2366e213379031b7d5d) (string group) |
| ::[MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) | [findMOP](#a80f107d61e2686d7fa9d0d026069989d) (string group) |
| ::[MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) | [findMOP](#af9480af4f2cbcb32d3cea5f290f92e46) (string quantity, [dataobject\_types](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#ga1bebf1e22deb3cd41d7d99ddcdb15379) type) |
| ::[MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) | [findMOPRef](#ae42d63759cf958ecb05c80544f558ab6) (string group) |
| ::[MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) | [findMOPRef](#aa8e34f3853ebaf73cf7df501c5953206) (string quantity, [dataobject\_types](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#ga1bebf1e22deb3cd41d7d99ddcdb15379) type) |
| std::vector\< string > | [nodeQuantities](#ad7c8a0b842f76ae90d6a5b9de07a64aa) () Get NODE\_DATA quantities with an existing Field-MOP. |
| std::vector\< string > | [scalarQuantities](#a8eceff961c37f0cbad1aebc40dfbcedb) () Get SCALAR\_DATA quantities with an existing [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md). |
| | [writeInternalMOP\_OMDBFile](#a4b62e4b6dbc152d68e1f5d07c484bfea) ([dataobject\_types](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#ga1bebf1e22deb3cd41d7d99ddcdb15379) type, string quantity, const ::string path, bool replace\_files=true) writes the OMDB file of the internal [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) of an FMOP to a file |

## Detailed Description

a container storing all Field data models

## Member Function Documentation

### elementQuantities()

```cpp theme={null}
std::vector<string> elementQuantities()
```

Get ELEMENT\_DATA quantities with an existing Field-MOP.

**Returns**

a vector of strings containing all ELEMENT\_DATA quantities with an existing Field-MOP

### eraseElementModel()

```cpp theme={null}
eraseElementModel(
    string quantity,
    Structure * database
)
```

deletes the respective random field model (group)

**Parameters**

| Name | Description |
| - | - |
| quanity | the field quantity of type ELEMENT\_DATA for which the field model is to be deleted |
| database | if this pointer is not zero, it is used to invoke listeners informing them that this container was changed |

**Exceptions**

| Name | Description |
| - | - |
| std::Exception | in case the quantity has no random field model. |

### eraseNodeModel()

```cpp theme={null}
eraseNodeModel(
    string quantity,
    Structure * database
)
```

deletes the respective random field model (group)

**Parameters**

| Name | Description |
| - | - |
| quanity | the field quantity of type NODE\_DATA for which the field model is to be deleted |
| database | if this pointer is not zero, it is used to invoke listeners informing them that this container was changed |

**Exceptions**

| Name | Description |
| - | - |
| std::Exception | in case the quantity has no random field model. |

### eraseScalarModel()

```cpp theme={null}
eraseScalarModel(
    string quantity,
    Structure * database
)
```

deletes the respective random field model (group)

**Parameters**

| Name | Description |
| - | - |
| quanity | the field quantity of type SCALAR\_DATA for which the field model is to be deleted |
| database | if this pointer is not zero, it is used to invoke listeners informing them that this container was changed |

**Exceptions**

| Name | Description |
| - | - |
| std::Exception | in case the quantity has no random field model. |

### exists()

```cpp theme={null}
bool exists(string group)
```

**Returns**

true if the given group ident is already contained

**Parameters**

| Name | Description |
| - | - |
| group | the group ident |

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

```cpp theme={null}
:: MOP findMOP(string group)
```

**Returns**

a reference to the group with given ident

**Parameters**

| Name | Description |
| - | - |
| group | the group ident |

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

```cpp theme={null}
:: MOP findMOP(
    string quantity,
    dataobject_types type
)
```

**Returns**

a reference to the group to which of the given quantity belongs

**Parameters**

| Name | Description |
| - | - |
| quantity | the quantity ident |
| type | the data type of the quantity |

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

```cpp theme={null}
:: MOP findMOPRef(string group)
```

**Returns**

a non- reference to the group with given ident

**Parameters**

| Name | Description |
| - | - |
| group | the group ident |

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

```cpp theme={null}
:: MOP findMOPRef(
    string quantity,
    dataobject_types type
)
```

**Returns**

a non- reference to the group to which of the given quantity belongs

**Parameters**

| Name | Description |
| - | - |
| quantity | the quantity ident |

### nodeQuantities()

```cpp theme={null}
std::vector<string> nodeQuantities()
```

Get NODE\_DATA quantities with an existing Field-MOP.

**Returns**

a vector of strings containing all NODE\_DATA quantities with an existing Field-MOP

### scalarQuantities()

```cpp theme={null}
std::vector<string> scalarQuantities()
```

Get SCALAR\_DATA quantities with an existing [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md).

**Returns**

a vector of strings containing all SCALAR\_DATA quantities with an existing [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md)

### writeInternalMOP\_OMDBFile()

```cpp theme={null}
writeInternalMOP_OMDBFile(
    dataobject_types type,
    string quantity,
    const ::string path,
    bool replace_files = true
)
```

writes the OMDB file of the internal [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) of an FMOP to a file

**Parameters**

| Name | Description |
| - | - |
| type | the data type , e.g. NODE\_DATA |
| quantity | the quantiytr ident of the field quantity |
| path | the output file name |
| replace\_files | if false, an error is thrown if the file already exists |
