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

# RandomFieldContainer Class Reference

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

a container storing all random field decompositions

## Public Types

| Type | Name |
| - | - |
|  typedef std::list\< [RandomFieldGroup](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_random_field_group.md) > | [TRandomFieldGroupContainer](#a56e3422ade710bf86a33a3d9a2d96044) a container type for random fields groups |

## Public Member Functions

| Type | Name |
| - | - |
| std::vector\< string > | [elementQuantities](#ae7760bd8a3d244dc92dfafd9148fa46b) () Get ELEMENT\_DATA quantities with an existing random field. |
| | [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) |
| [RandomFieldGroup](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_random_field_group.md) | [findGroup](#a09594c75fcdd2483600d545312624a7a) (string group) |
| [RandomFieldGroup](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_random_field_group.md) | [findGroup](#a6553d4fc38aa989551dac7b8146b4e17) (string quantity, [dataobject\_types](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#ga1bebf1e22deb3cd41d7d99ddcdb15379) type) |
| [RandomFieldGroup](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_random_field_group.md) | [findGroupRef](#a878b3d484a1cff3bf2b658b7227b3498) (string group) |
| [RandomFieldGroup](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_random_field_group.md) | [findGroupRef](#ade5b0194646585128b1aef8d1e28bfa7) (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 random field. |

## Detailed Description

a container storing all random field decompositions

## Member Function Documentation

### elementQuantities()

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

Get ELEMENT\_DATA quantities with an existing random field.

**Returns**

a vector of strings containing all ELEMENT\_DATA quantities with an existing random field

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

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

```cpp theme={null}
RandomFieldGroup findGroup(string group)
```

**Returns**

a reference to the group with given ident

**Parameters**

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

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

```cpp theme={null}
RandomFieldGroup findGroup(
    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 |

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

```cpp theme={null}
RandomFieldGroup findGroupRef(string group)
```

**Returns**

a non- reference to the group with given ident

**Parameters**

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

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

```cpp theme={null}
RandomFieldGroup findGroupRef(
    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 random field.

**Returns**

a vector of strings containing all NODE\_DATA quantities with an existing random field
