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

# ansys::dpf::ScopingsContainer Class Reference

`#include <dpf_api.h>`

Inherits ansys::dpf::CollectionBase.

## Public Member Functions

| Type | Name |
| - | - |
| | **ScopingsContainer** ([ScopingsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ScopingsContainer.md) const &) |
| | **ScopingsContainer** ([ScopingsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ScopingsContainer.md) &&) noexcept |
| | [ScopingsContainer](#ab5ca28dd2c6971bcdc6c05ac9e2ab0cb) ([Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) const \*const client) |
| | [ScopingsContainer](#aed23cb82bda6642f331cfe841701525a) ([Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) const \*const client, std::vector\< std::string > const &[labels](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1labels.md)) |
| | [ScopingsContainer](#a7d11bd51f92baa443d303095b7e432c3) (int id, [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) const \*const client) |
| | [ScopingsContainer](#a62fa8d44f5d7faf885ed3fad4c4c4c97) (std::vector\< std::string > const &[labels](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1labels.md)) |
| [ScopingsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ScopingsContainer.md) & | **operator=** ([ScopingsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ScopingsContainer.md) const &) |
| [ScopingsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ScopingsContainer.md) & | **operator=** ([ScopingsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ScopingsContainer.md) &&) noexcept |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [operator\[\]](#a9477378fc07a99bb193afa7b594ac67f) ([dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) index) |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [at](#ab1fdfc75b55ff6cd3c2475f1241734e4) ([dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a417548d1b705a9ba54ba9429afe68920) index) |
| const [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [at](#a857bbd814a0a207fd94bd93ad2fe745c) ([dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a417548d1b705a9ba54ba9429afe68920) index) const |
| void | [update](#a091782e39cd46714cd923cf784d8d30b) ([Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) \&f, [dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a417548d1b705a9ba54ba9429afe68920) index) |
| void | [add](#a84dd455cbed983a8c00cc30c4365427f) ([LabelSpace](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1LabelSpace.md) const &[labels](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1labels.md), [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) const \&f) |
| std::vector\< [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) > | [getScopings](#aecc5c3362d12b433b29fd9e5ca450418) ([LabelSpace](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1LabelSpace.md) const &[labels](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1labels.md)) const |
| std::vector\< [dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a417548d1b705a9ba54ba9429afe68920) > | [getScopingsIndices](#a2a8782dceeb20d78578011c3b3accfff) ([LabelSpace](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1LabelSpace.md) const \&lab\_space) const |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [getScoping](#a72ac39c1f6bd56ac3ebe624369b3249f) ([LabelSpace](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1LabelSpace.md) const &[labels](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1labels.md)) const |
| [ScopingsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ScopingsContainer.md) | [createSubScopingsContainer](#a937781f3a15cc04f81d38e290eb348e3) ([LabelSpace](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1LabelSpace.md) const \&lab\_space) const |
| [ScopingsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ScopingsContainer.md) | [deep\_copy](#a223fbc11c3fb729488a5f33772b2b2cf) ([ansys::dpf::Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) const \*const client=nullptr) const |

## Static Public Member Functions

| Type | Name |
| - | - |
| static [ScopingsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ScopingsContainer.md) | [emptyScopingsContainer](#a915d28f8d3b7869182ca79f9c4269b4c) () |

## Detailed Description

Contains a group of scopings.

The scopings container is designed as a set of scopings ordered through labels and ids. Labels identify how the fields are filtered. The most common scopings container have the label "body" with ids corresponding to each body entity.

Generally, a defined [ScopingsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ScopingsContainer.md) will contain [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) entities to apply on the [MeshedRegion](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshedRegion.md) entities of a corresponding [MeshesContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshesContainer.md).

**See also**

[Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md)

[Using collections and labels](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/group__group__12.md)

**Examples**

[AveragingTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/AveragingTest_8cpp-example.md), and [WorkflowExamples.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/WorkflowExamples_8cpp-example.md).

## Constructor & Destructor Documentation

### ScopingsContainer() \[1/4]

```cpp theme={null}
ansys::dpf::ScopingsContainer::ScopingsContainer(Client const *const client)
```

Create a new scopings container on a server.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | client | [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) instance designating the IP, port and protocol to use. |

### ScopingsContainer() \[2/4]

```cpp theme={null}
ansys::dpf::ScopingsContainer::ScopingsContainer(
    Client const *const client,
    std::vector< std::string > const & labels
)
```

Create a group of scopings with the given labels on a server.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | client | [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) instance designating the IP, port and protocol to use. |
| \[in] | labels | Labels for group of scopings. |

### ScopingsContainer() \[3/4]

```cpp theme={null}
ansys::dpf::ScopingsContainer::ScopingsContainer(
    int id,
    Client const *const client
)
```

Retrieve an existing instance of [ScopingsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ScopingsContainer.md) on a server. \


**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | id | Id of the [ScopingsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ScopingsContainer.md) object on the server's database. |
| \[in] | client | [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) instance designating the IP, port and protocol to use. |

### ScopingsContainer() \[4/4]

```cpp theme={null}
ansys::dpf::ScopingsContainer::ScopingsContainer(std::vector< std::string > const & labels)
```

Create a group of scopings with the given labels.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | labels | Labels for group of scopings. |

## Member Function Documentation

### add()

```cpp theme={null}
void ansys::dpf::ScopingsContainer::add(
    LabelSpace const & labels,
    Scoping const & f
)
```

Add new scoping with given labels to group.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | labels | [Label](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1Label.md) space to use for new scoping. |
| \[in] | f | [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) to add to group. |

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

```cpp theme={null}
Scoping ansys::dpf::ScopingsContainer::at(dp_index index)
```

**Returns**

[Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) at given index.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | index | Index of scoping to get. |

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

```cpp theme={null}
const Scoping ansys::dpf::ScopingsContainer::at(dp_index index) const
```

**Returns**

[Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) at given index.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | index | Index of scoping to get. |

### createSubScopingsContainer()

```cpp theme={null}
ScopingsContainer ansys::dpf::ScopingsContainer::createSubScopingsContainer(
    LabelSpace const & lab_space
) const
```

Create a new [ScopingsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ScopingsContainer.md) with all the scopings corresponding to the label space in input

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | lab\_space | [Label](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1Label.md) space for which to create new scopings container. |

### deep\_copy()

```cpp theme={null}
ScopingsContainer ansys::dpf::ScopingsContainer::deep_copy(
    ansys::dpf::Client const *const client = nullptr
) const
```

Create a new [ScopingsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ScopingsContainer.md) on a server by copying all the data of this [ScopingsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ScopingsContainer.md).

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | client | [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) instance designating the IP, port and protocol to use. |

### emptyScopingsContainer()

```cpp theme={null}
static ScopingsContainer ansys::dpf::ScopingsContainer::emptyScopingsContainer()
```

`static`

Create an empty scopings container.

**Returns**

Empty [ScopingsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ScopingsContainer.md).

### getScoping()

```cpp theme={null}
Scoping ansys::dpf::ScopingsContainer::getScoping(LabelSpace const & labels) const
```

**Returns**

First scoping for given label space.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | labels | [Label](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1Label.md) space for which to get first scoping. |

### getScopings()

```cpp theme={null}
std::vector< Scoping > ansys::dpf::ScopingsContainer::getScopings(
    LabelSpace const & labels
) const
```

**Returns**

Vector of scopings for given label space.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | labels | [Label](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1Label.md) space for whict to get scopings. |

### getScopingsIndices()

```cpp theme={null}
std::vector< dp_index > ansys::dpf::ScopingsContainer::getScopingsIndices(
    LabelSpace const & lab_space
) const
```

**Returns**

[Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) indices for scopings given by [LabelSpace](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1LabelSpace.md)

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | lab\_space | [LabelSpace](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1LabelSpace.md) defining scopings for which to get indices. |

### operator\[]\()

```cpp theme={null}
Scoping ansys::dpf::ScopingsContainer::operator[](dp_int index)
```

**Returns**

[Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) at given index.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | index | Index of scoping. |

### update()

```cpp theme={null}
void ansys::dpf::ScopingsContainer::update(
    Scoping & f,
    dp_index index
)
```

Update [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) at given index.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | f | New scoping. |
| \[in] | index | Index of scoping to update. |
