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

# Class ansys::dpf::Any

![][C++]
![][public]

[Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) class holding a typed entity.

**Inherits from**:

* [ansys::dpf::DpfTypes](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpftypes.md)

## Members

* [Any](#classansys-dpf-any-1af23b70b81b8f1d7cfddcd5e9d79e60f5)
* [Any](#classansys-dpf-any-1ab24d321afb6bc120c0b49fd269f28a91)
* [Any](#classansys-dpf-any-1a3570cea5938292c99e277fef602eb60f)
* [callAPI](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1aea34d37e0c080126eff70db34bf46597)
* [createFromFbsReference](#classansys-dpf-any-1a1b66e1daab041b4e72e729e1ae3f108d)
* [deep\_copy](#classansys-dpf-any-1ae7764836c250415dc742260c3ef5f24f)
* [describe](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1a9977945710983bc03d2940fa007847b2)
* [empty](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1a39cd546c42518e2332be8f287db95459)
* [emptyAny](#classansys-dpf-any-1a4e7350ee3446b0e8ad3c1aca88fee463)
* [get](#classansys-dpf-any-1a3755fc547ffa733c3a6b8b7bae28da42)
* [getAsCollection](#classansys-dpf-any-1ae414564b0c53e55acf9878a9c3237784)
* [getAsCustomTypeField](#classansys-dpf-any-1a971efc6d276a05d1e2e047878cdfb56a)
* [getAsCustomTypeFieldsContainer](#classansys-dpf-any-1a1dca8be1c667aecd16d76821088d1c58)
* [getAsCyclicSupport](#classansys-dpf-any-1ae1f0a0f83dd87c93e8a36ef83e390821)
* [getAsDataSources](#classansys-dpf-any-1a52850e5eb23e6cba70ccd0c0713e3452)
* [getAsDataTree](#classansys-dpf-any-1ad25e7ea69b88bb148cc8046d50760c29)
* [getAsDouble](#classansys-dpf-any-1a4576e195b7ef1e4a48b26f57db844289)
* [getAsFbsReference](#classansys-dpf-any-1adde807f660e7d288e709f3d372a1b916)
* [getAsField](#classansys-dpf-any-1a8bb8b9c5c9b8caccff78ff66a16780cb)
* [getAsFieldsContainer](#classansys-dpf-any-1af48a4b58d4d52dd107e75fdb6db2cdea)
* [getAsGenericDataContainer](#classansys-dpf-any-1a8a4ae829c4e5142a390158b7f1842cfb)
* [getAsInt](#classansys-dpf-any-1a00cce5475752905812ab028e4c1ca97b)
* [getAsIntVector](#classansys-dpf-any-1a9b3531295f844610cc131f78c96ef04d)
* [getAsLabelSpace](#classansys-dpf-any-1a53dda1baccbaa272f72df5195f30591b)
* [getAsMeshedRegion](#classansys-dpf-any-1a58519b0fe5310585c78ff0b8cca8ae62)
* [getAsMeshesContainer](#classansys-dpf-any-1aee25715543d8396d96a2826cf1d84a98)
* [getAsOperator](#classansys-dpf-any-1a5c1f49a671fa9d9d53b5b98fefdbd33b)
* [getAsPropertyField](#classansys-dpf-any-1a91f7cbddb5ec5ce949a7a9f692d1d113)
* [getAsResultInfo](#classansys-dpf-any-1ab65ba60185b1136c36b4ed181521bfb1)
* [getAsScoping](#classansys-dpf-any-1a1fede102c77bed4303bc8aa9210863b2)
* [getAsScopingsContainer](#classansys-dpf-any-1abcc1dc4052f9679abd3f13538ada623e)
* [getAsStreams](#classansys-dpf-any-1a4dbf7a1c952b75dc3a2f2f36992559b0)
* [getAsString](#classansys-dpf-any-1a890fb93b1496ef38284322110f682eae)
* [getAsStringField](#classansys-dpf-any-1aaab60afc505c69dbba4046eb5eaa3709)
* [getAsTimeFreqSupport](#classansys-dpf-any-1a96bbb9c2b82fab07d230bed40d06bb47)
* [getAsWorkflow](#classansys-dpf-any-1a0f2541d86f4078c8f5edefe21a07206a)
* [getClient](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1a968afd9daa0b0f13b65a2ac61369d73a)
* [hasBeenMovedLocally](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1a1a5634202c15404b6b24e8f50e51cb66)
* [hasInternalObject](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1ae198f89868d85c7db6dc1a934a1d3c15)
* [isOnCommonAPI](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1a9f9789ff61cc9d400a2a344830706b73)
* [isSameObject](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1aa64d5f8fcd7d85ad6ebf708494dbefd7)
* [operator=](#classansys-dpf-any-1a03e8005283ad244a72b3126b43bfe333)
* [operator=](#classansys-dpf-any-1abea02211d9b1bbdacfe0f3cdebb4988e)
* [retrieveFromServer](#classansys-dpf-any-1a8a8270659397ad6d912ef5c62d16f61c)
* [testType](#classansys-dpf-any-1a6a0f7e3bc8ab2110cc3c1a96423898a1)
* [wrappedType](#classansys-dpf-any-1a1849f144686207e9923c4660416eadcb)
* [\~Any](#classansys-dpf-any-1a6604617198bee45653ad2663237002c2)
* [\~DpfTypes](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1ab7c83b6ea160c2b115e056f6c312112f)

## Friends

### Friend ConstructHelpers::construct\_trait

![][C++]
![][public]

## Public functions

### Function \~Any

![][public]

```cpp theme={null}
virtual ansys::dpf::Any::~Any()
```

**Return type**:

### Function Any

![][public]

```cpp theme={null}
ansys::dpf::Any::Any(const DataT &value, Client const *const client=nullptr)
```

**Parameters**:

* const DataT & **value**
* [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-client.md) const \*const **client** = nullptr

**Return type**:

### Function Any

![][public]

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

**Parameters**:

* Any const &

**Return type**:

### Function Any

![][public]

```cpp theme={null}
ansys::dpf::Any::Any(Any &&) noexcept
```

**Parameters**:

* Any &&

**Return type**:

### Function operator=

![][public]

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

**Parameters**:

* Any const &

**Return type**: Any &

### Function operator=

![][public]

```cpp theme={null}
Any & ansys::dpf::Any::operator=(Any &&) noexcept
```

**Parameters**:

* Any &&

**Return type**: Any &

### Function wrappedType

![][public]

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

**Return type**: std::string

### Function testType

![][public]
![][const]

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

**Returns**:

Indication that the object is of the type of data.

**Return type**: bool

### Function get

![][public]
![][const]

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

**Returns**:

specified template type held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: DataT

### Function getAsInt

![][public]
![][const]

```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/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1a60d181a1f9d29cc7cc38b25dac4401f0)

### Function getAsString

![][public]
![][const]

```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/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: std::string

### Function getAsDouble

![][public]
![][const]

```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/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: double

### Function getAsIntVector

![][public]
![][const]

```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/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: DpfVector\< int >

### Function getAsField

![][public]
![][const]

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

**Returns**:

[Field](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-field.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: [Field](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-field.md)

### Function getAsPropertyField

![][public]
![][const]

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

**Returns**:

[PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-propertyfield.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: [PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-propertyfield.md)

### Function getAsScoping

![][public]
![][const]

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

**Returns**:

[Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-scoping.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-scoping.md)

### Function getAsFieldsContainer

![][public]
![][const]

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

**Returns**:

[FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-fieldscontainer.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: [FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-fieldscontainer.md)

### Function getAsScopingsContainer

![][public]
![][const]

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

**Returns**:

[ScopingsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-scopingscontainer.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: [ScopingsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-scopingscontainer.md)

### Function getAsMeshesContainer

![][public]
![][const]

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

**Returns**:

[MeshesContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-meshescontainer.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: [MeshesContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-meshescontainer.md)

### Function getAsTimeFreqSupport

![][public]
![][const]

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

**Returns**:

[TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md)

### Function getAsMeshedRegion

![][public]
![][const]

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

**Returns**:

[MeshedRegion](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-meshedregion.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: [MeshedRegion](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-meshedregion.md)

### Function getAsStreams

![][public]
![][const]

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

**Returns**:

[Streams](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-streams.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: [Streams](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-streams.md)

### Function getAsResultInfo

![][public]
![][const]

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

**Returns**:

[ResultInfo](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-resultinfo.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: [ResultInfo](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-resultinfo.md)

### Function getAsDataTree

![][public]
![][const]

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

**Returns**:

[DataTree](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-datatree.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: [DataTree](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-datatree.md)

### Function getAsWorkflow

![][public]
![][const]

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

**Returns**:

Workflow held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: Workflow

### Function getAsOperator

![][public]
![][const]

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

**Returns**:

[Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-operator.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: Operator

### Function getAsCyclicSupport

![][public]
![][const]

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

**Returns**:

[CyclicSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-cyclicsupport.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: [CyclicSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-cyclicsupport.md)

### Function getAsDataSources

![][public]
![][const]

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

**Returns**:

[DataSources](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-datasources.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: [DataSources](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-datasources.md)

### Function getAsStringField

![][public]
![][const]

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

**Returns**:

[StringField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-stringfield.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: [StringField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-stringfield.md)

### Function getAsGenericDataContainer

![][public]
![][const]

```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/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: GenericDataContainer

### Function getAsCustomTypeFieldsContainer

![][public]
![][const]

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

**Returns**:

[CustomTypeFieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefieldscontainer.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: [CustomTypeFieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefieldscontainer.md)

### Function getAsCustomTypeField

![][public]
![][const]

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

**Returns**:

[CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefield.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: [CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefield.md)

### Function getAsLabelSpace

![][public]
![][const]

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

**Returns**:

[LabelSpace](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-labelspace.md) held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: [LabelSpace](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-labelspace.md)

### Function getAsCollection

![][public]
![][const]

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

**Returns**:

AnyCollection held in the [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md) object.

**Exceptions**:

* **[DpfException](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfexception.md)**:

**Return type**: [Collection](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-collection.md)\< DataT >

### Function getAsFbsReference

![][public]
![][const]

```cpp theme={null}
void ansys::dpf::Any::getAsFbsReference(opaque::FbsChannel *&client, std::string &address, opaque::FbsSlice *&req_slice, size_t &req_offset) const
```

**Parameters**:

* opaque::FbsChannel \*& **client**
* std::string & **address**
* opaque::FbsSlice \*& **req\_slice**
* size\_t & **req\_offset**

**Return type**: void

### Function deep\_copy

![][public]
![][const]

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

Make a deep copy on a given client.

**Parameters**:

* [ansys::dpf::Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-client.md) const \*const **client** = nullptr : \[in] Remote client

**Return type**: Any

## Public static functions

### Function createFromFbsReference

![][public]
![][static]

```cpp theme={null}
static Any ansys::dpf::Any::createFromFbsReference(const opaque::FbsChannel *channel, std::string const &address, const opaque::FbsSlice *req_slice, size_t req_offset, const ansys::dpf::Client *client=nullptr)
```

**Parameters**:

* const opaque::FbsChannel \* **channel**
* std::string const & **address**
* const opaque::FbsSlice \* **req\_slice**
* size\_t **req\_offset**
* const [ansys::dpf::Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-client.md) \* **client** = nullptr

**Return type**: Any

### Function retrieveFromServer

![][public]
![][static]

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

Retrieve an existing instance on a server.

**Parameters**:

* int **id**: \[in] Id of the object on the server's database.
* [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-client.md) const \*const **client**: \[in] [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-client.md) instance designating the IP, port and protocol to use.

**Return type**: Any

### Function emptyAny

![][public]
![][static]

```cpp theme={null}
static Any ansys::dpf::Any::emptyAny()
```

**Return type**: Any

[C++]: https://img.shields.io/badge/language-C%2B%2B-blue "C++"

[const]: https://img.shields.io/badge/-const-lightblue "const"

[public]: https://img.shields.io/badge/-public-brightgreen "public"

[static]: https://img.shields.io/badge/-static-lightgrey "static"
