> ## 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::Scoping Class Reference

Define a set of entities by [ids](#acf26749e29d9f23de6c70806ccfaea6b).

`#include <dpf_api.h>`

Inheritance diagram for ansys::dpf::Scoping:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=fff06779315de921a97e51f397bbc0c5)

## Public Member Functions

| Type | Name |
| - | - |
| | [Scoping](#a6d0e48f879e9e6647f659a0010de361f) () |
| | [Scoping](#a3f86c065a82a7ae05cbf16fc424fab39) (std::vector\< [dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) > const &[ids](#acf26749e29d9f23de6c70806ccfaea6b), [ansys::dpf::Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1Location.md) [location](#a516b4489a94ff02ecc880f170b8f93a9)) |
| | [Scoping](#a9e087ca8b1a487f2afc83b848746fba2) (std::vector\< [dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) > const &[ids](#acf26749e29d9f23de6c70806ccfaea6b), [ansys::dpf::Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1Location.md) [location](#a516b4489a94ff02ecc880f170b8f93a9), [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) const \*const client) |
| | [Scoping](#a11202e16776f413ef89146f6a528a1b1) ([Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) const \*const client) |
| | [Scoping](#ae1d319d0e8a3704e26556a8b11da2273) (int id, [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) const \*const client) |
| | **Scoping** ([Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) const &) |
| | **Scoping** ([Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) &&) noexcept |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) & | **operator=** ([Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) const &) |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) & | **operator=** ([Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) &&) noexcept |
| [ansys::dpf::Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1Location.md) | [location](#a516b4489a94ff02ecc880f170b8f93a9) () const |
| void | [setLocation](#abfc7b7b2376db292a67d05e9b7828367) ([ansys::dpf::Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1Location.md) [location](#a516b4489a94ff02ecc880f170b8f93a9)) |
| void | [setIds](#a021a022f87287b786ff9b3c92deb0e69) (std::vector\< [dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) > const &[ids](#acf26749e29d9f23de6c70806ccfaea6b)) |
| void | [setIds](#aad7349f7505d953324c71900cf3d020c) ([dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) \*[ids](#acf26749e29d9f23de6c70806ccfaea6b), [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) [size](#aeae5e27bd752bdf0da3cc2d64fbe118a)) |
| bool | [identicalPointers](#a5666c29a9074bd286801882ed3105de1) ([Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) const \&f) const |
| [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) | [size](#aeae5e27bd752bdf0da3cc2d64fbe118a) () const |
| [dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) | [idByIndex](#ae35e47f2cceccf7ad9ed4590bd10ff89) ([dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) index) const |
| [dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a417548d1b705a9ba54ba9429afe68920) | [indexById](#ab80b20d56d63ce48c08ce6b7428e06c2) ([dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) id) const |
| [dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) | [at](#a0fc75ac65a5b13727b77e2c155828ccd) ([dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) index) const |
| const [dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) \* | [ids](#acf26749e29d9f23de6c70806ccfaea6b) ([dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) &[size](#aeae5e27bd752bdf0da3cc2d64fbe118a)) const |
| [DpfVector](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfVector.md)\< int > | [ids](#a14dbd1c25bbfc1c3a3dc3ab9b5762d8c) () const |
| void | [getIds](#a7377823a48ee69e439a8589627c5e6c0) (std::vector\< [dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) > \&ids\_to\_fill) const |
| void | [emplace](#a94f0dd35d07efdc472ef072b42f9cfda) ([dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a417548d1b705a9ba54ba9429afe68920) index, [dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) id) |
|  std::string | **hashIds** () const |
| void | [reserve](#a6b57f31ddd1d7f0b33451cb374ff3fb1) ([dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) [size](#aeae5e27bd752bdf0da3cc2d64fbe118a)) |
| void | [resize](#a82964b0127f36300908474a507cdd01a) ([dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) [size](#aeae5e27bd752bdf0da3cc2d64fbe118a)) |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [deep\_copy](#a462ea63161ca7f6796cc6ccf976942b4) ([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 |

> [accordion] Public Member Functions inherited from ansys::dpf::DpfTypes
>
> Public Member Functions inherited from [ansys::dpf::DpfTypes](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md)
>
> | Type | Name |
> | - | - |
> | virtual bool | [empty](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#a39cd546c42518e2332be8f287db95459) () const |
> | virtual bool | [hasInternalObject](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#ae198f89868d85c7db6dc1a934a1d3c15) () const |
> | virtual std::string | [describe](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#a9977945710983bc03d2940fa007847b2) () const |
> | so::API const \* | [callAPI](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#aea34d37e0c080126eff70db34bf46597) () const |
> | bool | [isOnCommonAPI](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#a9f9789ff61cc9d400a2a344830706b73) () const |
> | bool | [getClient](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#a968afd9daa0b0f13b65a2ac61369d73a) ([Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) \&client) const |
> | bool | [hasBeenMovedLocally](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#a1a5634202c15404b6b24e8f50e51cb66) () const |
> | bool | [isSameObject](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#aa64d5f8fcd7d85ad6ebf708494dbefd7) ([DpfTypes](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md) const \&rhs) const |

## Static Public Member Functions

| Type | Name |
| - | - |
| static [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [emptyScoping](#a5c2fcf31c8714d27cec3455a94552650) () |

## Detailed Description

Define a set of entities by [ids](#acf26749e29d9f23de6c70806ccfaea6b).

The scoping is entities ids representing a subset of the model's support. Typically, scoping can represent node ids, element ids, time steps, frequencies, joints... Its location indicates what kind of entity the scoping is referring to. Scopings are used to identify the entities where a field is scoped or to choose (through an input pin) a subset on which an operator should compute its result.

**Examples**

[CompleteRST.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/CompleteRST_8cpp-example.md), [DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataApis_8cpp-example.md), [DataExport.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataExport_8cpp-example.md), [ModelTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/ModelTest_8cpp-example.md), [OperatorsApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/OperatorsApis_8cpp-example.md), and [ResultTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/ResultTest_8cpp-example.md).

## Constructor & Destructor Documentation

### Scoping() \[1/5]

```cpp theme={null}
ansys::dpf::Scoping::Scoping()
```

Create a new scoping.

### Scoping() \[2/5]

```cpp theme={null}
ansys::dpf::Scoping::Scoping(
    std::vector< dp_id > const & ids,
    ansys::dpf::Location location
)
```

Create a scoping of [ids](#acf26749e29d9f23de6c70806ccfaea6b) at a location.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | ids | Vector of [ids](#acf26749e29d9f23de6c70806ccfaea6b). |
| \[in] | location | [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1Location.md) of scoping. |

### Scoping() \[3/5]

```cpp theme={null}
ansys::dpf::Scoping::Scoping(
    std::vector< dp_id > const & ids,
    ansys::dpf::Location location,
    Client const *const client
)
```

Create a scoping of [ids](#acf26749e29d9f23de6c70806ccfaea6b) at a location.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | ids | Vector of [ids](#acf26749e29d9f23de6c70806ccfaea6b). |
| \[in] | location | [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1Location.md) of scoping. |
| \[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. |

### Scoping() \[4/5]

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

Create a new scoping 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. |

### Scoping() \[5/5]

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

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


**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | id | Id of the [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.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. |

## Member Function Documentation

### at()

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

**Returns**

Id at index offset into vector of [ids](#acf26749e29d9f23de6c70806ccfaea6b).

### deep\_copy()

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

Create a new [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) on a server by copying all the data of this [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.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. |

### emplace()

```cpp theme={null}
void ansys::dpf::Scoping::emplace(
    dp_index index,
    dp_id id
)
```

Set offset index into scoping to new id.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | index | [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1Location.md) for new id. |
| \[in] | id | New id. |

**Examples**

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

### emptyScoping()

```cpp theme={null}
static Scoping ansys::dpf::Scoping::emptyScoping()
```

`static`

Create an empty scoping.

**Returns**

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

### getIds()

```cpp theme={null}
void ansys::dpf::Scoping::getIds(std::vector< dp_id > & ids_to_fill) const
```

Update ids\_to\_fill with scoping [ids](#acf26749e29d9f23de6c70806ccfaea6b).

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | ids\_to\_fill | vector of [ids](#acf26749e29d9f23de6c70806ccfaea6b). |

**Examples**

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

### idByIndex()

```cpp theme={null}
dp_id ansys::dpf::Scoping::idByIndex(dp_int index) const
```

**Returns**

Id at index offset into vector of [ids](#acf26749e29d9f23de6c70806ccfaea6b).

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | index | index into vector of [ids](#acf26749e29d9f23de6c70806ccfaea6b). |

**Examples**

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

### identicalPointers()

```cpp theme={null}
bool ansys::dpf::Scoping::identicalPointers(Scoping const & f) const
```

Compare scoping with input scoping f.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | f | [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) with which to compare. |

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

```cpp theme={null}
DpfVector < int > ansys::dpf::Scoping::ids() const
```

**Returns**

[DpfVector](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfVector.md) of ids array.

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

```cpp theme={null}
const dp_id * ansys::dpf::Scoping::ids(dp_int & size) const
```

**Returns**

Pointer to list of [ids](#acf26749e29d9f23de6c70806ccfaea6b).

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | size | Length of list. |

**Examples**

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

### indexById()

```cpp theme={null}
dp_index ansys::dpf::Scoping::indexById(dp_int id) const
```

**Returns**

Index of id within vector of [ids](#acf26749e29d9f23de6c70806ccfaea6b).

-1 if id not found.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | id | id. |

**Examples**

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

### location()

```cpp theme={null}
ansys::dpf::Location ansys::dpf::Scoping::location() const
```

**Returns**

[Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1Location.md) of [ids](#acf26749e29d9f23de6c70806ccfaea6b).

**Examples**

[DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataApis_8cpp-example.md), [ModelTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/ModelTest_8cpp-example.md), and [ResultTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/ResultTest_8cpp-example.md).

### reserve()

```cpp theme={null}
void ansys::dpf::Scoping::reserve(dp_int size)
```

Reserve the container of ids.

### resize()

```cpp theme={null}
void ansys::dpf::Scoping::resize(dp_int size)
```

Resize the container of ids.

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

```cpp theme={null}
void ansys::dpf::Scoping::setIds(
    dp_id * ids,
    dp_int size
)
```

Update scoping to list of new [ids](#acf26749e29d9f23de6c70806ccfaea6b).

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | ids | List of [ids](#acf26749e29d9f23de6c70806ccfaea6b). |
| \[in] | size | Number of [ids](#acf26749e29d9f23de6c70806ccfaea6b). |

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

```cpp theme={null}
void ansys::dpf::Scoping::setIds(std::vector< dp_id > const & ids)
```

Update scoping to vector of new [ids](#acf26749e29d9f23de6c70806ccfaea6b).

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | ids | New [ids](#acf26749e29d9f23de6c70806ccfaea6b). |

**Examples**

[DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataApis_8cpp-example.md), and [DataExport.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataExport_8cpp-example.md).

### setLocation()

```cpp theme={null}
void ansys::dpf::Scoping::setLocation(ansys::dpf::Location location)
```

Set location of scoping.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | location | New location for scoping. |

**Examples**

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

### size()

```cpp theme={null}
dp_int ansys::dpf::Scoping::size() const
```

**Returns**

Number of entries in scoping.

**Examples**

[DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataApis_8cpp-example.md), [DataExport.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataExport_8cpp-example.md), and [ModelTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/ModelTest_8cpp-example.md).
