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

`#include <dpf_api.h>`

Inheritance diagram for ansys::dpf::Any:

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

## Public Member Functions

| Type | Name |
| - | - |
|  template\<typename DataT > | **Any** (const DataT \&value, [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) const \*const client=nullptr) |
| | **Any** ([Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) const &) |
| | **Any** ([Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) &&) noexcept |
| [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) & | **operator=** ([Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) const &) |
| [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) & | **operator=** ([Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) &&) noexcept |
|  std::string | **wrappedType** () |
| template\<typename DataT > bool | [testType](#aada64aaa126d55d103c92b1acc45f9d6) () |
| template\<typename DataT > DataT | [get](#a3755fc547ffa733c3a6b8b7bae28da42) () const |
| [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) | [getAsInt](#a00cce5475752905812ab028e4c1ca97b) () const |
| std::string | [getAsString](#a890fb93b1496ef38284322110f682eae) () const |
| double | [getAsDouble](#a4576e195b7ef1e4a48b26f57db844289) () const |
| [DpfVector](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfVector.md)\< int > | [getAsIntVector](#a9b3531295f844610cc131f78c96ef04d) () const |
| [Field](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Field.md) | [getAsField](#a8bb8b9c5c9b8caccff78ff66a16780cb) () const |
| [PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1PropertyField.md) | [getAsPropertyField](#a91f7cbddb5ec5ce949a7a9f692d1d113) () const |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [getAsScoping](#a1fede102c77bed4303bc8aa9210863b2) () const |
| [FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1FieldsContainer.md) | [getAsFieldsContainer](#af48a4b58d4d52dd107e75fdb6db2cdea) () const |
| [ScopingsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ScopingsContainer.md) | [getAsScopingsContainer](#abcc1dc4052f9679abd3f13538ada623e) () const |
| [MeshesContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshesContainer.md) | [getAsMeshesContainer](#aee25715543d8396d96a2826cf1d84a98) () const |
| [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1TimeFreqSupport.md) | [getAsTimeFreqSupport](#a96bbb9c2b82fab07d230bed40d06bb47) () const |
| [MeshedRegion](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshedRegion.md) | [getAsMeshedRegion](#a58519b0fe5310585c78ff0b8cca8ae62) () const |
| [Streams](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Streams.md) | [getAsStreams](#a4dbf7a1c952b75dc3a2f2f36992559b0) () const |
| [ResultInfo](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ResultInfo.md) | [getAsResultInfo](#ab65ba60185b1136c36b4ed181521bfb1) () const |
| [DataTree](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DataTree.md) | [getAsDataTree](#ad25e7ea69b88bb148cc8046d50760c29) () const |
| [Workflow](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Workflow.md) | [getAsWorkflow](#a0f2541d86f4078c8f5edefe21a07206a) () const |
| [Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Operator.md) | [getAsOperator](#a5c1f49a671fa9d9d53b5b98fefdbd33b) () const |
| [CyclicSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1CyclicSupport.md) | [getAsCyclicSupport](#ae1f0a0f83dd87c93e8a36ef83e390821) () const |
| [DataSources](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DataSources.md) | [getAsDataSources](#a52850e5eb23e6cba70ccd0c0713e3452) () const |
| [StringField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1StringField.md) | [getAsStringField](#aaab60afc505c69dbba4046eb5eaa3709) () const |
| GenericDataContainer | [getAsGenericDataContainer](#a8a4ae829c4e5142a390158b7f1842cfb) () const |
| [CustomTypeFieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1CustomTypeFieldsContainer.md) | [getAsCustomTypeFieldsContainer](#a1dca8be1c667aecd16d76821088d1c58) () const |
| [CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1CustomTypeField.md) | [getAsCustomTypeField](#a971efc6d276a05d1e2e047878cdfb56a) () const |
| template\<typename DataT > [Collection](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Collection.md)\< DataT > | [getAsCollection](#ae414564b0c53e55acf9878a9c3237784) () const |
| [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) | [deep\_copy](#a7fc7c3fd9e7f21f65e93d0d3f7d48aa2) ([ansys::dpf::Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) const \*const client) const |
| [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) | [deep\_copy](#acfe258908ef7408ad278565c79a48875) () 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 [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) | [retrieveFromServer](#a8a8270659397ad6d912ef5c62d16f61c) (int id, [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) const \*const client) |
|  static [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) | **emptyAny** () |

## Detailed Description

[Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) class holding a typed entity.

## Member Function Documentation

### deep\_copy() \[1/2]

```cpp theme={null}
Any ansys::dpf::Any::deep_copy() const
```

Make a deep copy locally.

### deep\_copy() \[2/2]

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

Make a deep copy on a given client.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | client | Remote client |

### get()

```cpp theme={null}
template<typename DataT >
DataT ansys::dpf::Any::get() const
```

`inline`

**Returns**

specified template type held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsCollection()

```cpp theme={null}
template<typename DataT >
Collection < DataT > ansys::dpf::Any::getAsCollection() const
```

`inline`

**Returns**

AnyCollection held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsCustomTypeField()

```cpp theme={null}
CustomTypeField ansys::dpf::Any::getAsCustomTypeField() const
```

**Returns**

[CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1CustomTypeField.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsCustomTypeFieldsContainer()

```cpp theme={null}
CustomTypeFieldsContainer ansys::dpf::Any::getAsCustomTypeFieldsContainer() const
```

**Returns**

[CustomTypeFieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1CustomTypeFieldsContainer.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsCyclicSupport()

```cpp theme={null}
CyclicSupport ansys::dpf::Any::getAsCyclicSupport() const
```

**Returns**

[CyclicSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1CyclicSupport.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsDataSources()

```cpp theme={null}
DataSources ansys::dpf::Any::getAsDataSources() const
```

**Returns**

[DataSources](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DataSources.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsDataTree()

```cpp theme={null}
DataTree ansys::dpf::Any::getAsDataTree() const
```

**Returns**

[DataTree](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DataTree.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsDouble()

```cpp theme={null}
double ansys::dpf::Any::getAsDouble() const
```

**Returns**

Double held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsField()

```cpp theme={null}
Field ansys::dpf::Any::getAsField() const
```

**Returns**

[Field](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Field.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsFieldsContainer()

```cpp theme={null}
FieldsContainer ansys::dpf::Any::getAsFieldsContainer() const
```

**Returns**

[FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1FieldsContainer.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsGenericDataContainer()

```cpp theme={null}
GenericDataContainer ansys::dpf::Any::getAsGenericDataContainer() const
```

**Returns**

GenericDataContainer held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsInt()

```cpp theme={null}
dp_int ansys::dpf::Any::getAsInt() const
```

**Returns**

Int held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsIntVector()

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

**Returns**

int vector held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsMeshedRegion()

```cpp theme={null}
MeshedRegion ansys::dpf::Any::getAsMeshedRegion() const
```

**Returns**

[MeshedRegion](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshedRegion.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsMeshesContainer()

```cpp theme={null}
MeshesContainer ansys::dpf::Any::getAsMeshesContainer() const
```

**Returns**

[MeshesContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshesContainer.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsOperator()

```cpp theme={null}
Operator ansys::dpf::Any::getAsOperator() const
```

**Returns**

[Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Operator.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsPropertyField()

```cpp theme={null}
PropertyField ansys::dpf::Any::getAsPropertyField() const
```

**Returns**

[PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1PropertyField.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsResultInfo()

```cpp theme={null}
ResultInfo ansys::dpf::Any::getAsResultInfo() const
```

**Returns**

[ResultInfo](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ResultInfo.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsScoping()

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

**Returns**

[Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsScopingsContainer()

```cpp theme={null}
ScopingsContainer ansys::dpf::Any::getAsScopingsContainer() const
```

**Returns**

[ScopingsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ScopingsContainer.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsStreams()

```cpp theme={null}
Streams ansys::dpf::Any::getAsStreams() const
```

**Returns**

[Streams](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Streams.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsString()

```cpp theme={null}
std::string ansys::dpf::Any::getAsString() const
```

**Returns**

String held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsStringField()

```cpp theme={null}
StringField ansys::dpf::Any::getAsStringField() const
```

**Returns**

[StringField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1StringField.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsTimeFreqSupport()

```cpp theme={null}
TimeFreqSupport ansys::dpf::Any::getAsTimeFreqSupport() const
```

**Returns**

[TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1TimeFreqSupport.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### getAsWorkflow()

```cpp theme={null}
Workflow ansys::dpf::Any::getAsWorkflow() const
```

**Returns**

[Workflow](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Workflow.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Any.md) object.

**Exceptions**

| Name | Description |
| - | - |
| [DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfException.md) | |

### retrieveFromServer()

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

`static`

Retrieve an existing instance on a server.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | id | Id of the 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. |

### testType()

```cpp theme={null}
template<typename DataT >
bool ansys::dpf::Any::testType()
```

`inline`

**Returns**

Indication that the object is of the type of data.
