    

 ## On this page

  

 

 # Class ansys::dpf::Any

 Last update: 25.03.2026 

<a id="classansys-dpf-any"></a>

![](https://img.shields.io/badge/language-C%2B%2B-blue "C++")![](https://img.shields.io/badge/-public-brightgreen "public")

[Any](classansys-dpf-any.md#classansys-dpf-any) class holding a typed entity.

**Inherits from**:

- [ansys::dpf::DpfTypes](classansys-dpf-dpftypes.md#classansys-dpf-dpftypes)

## Members

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

## Friends

<a id="classansys-dpf-any-1adf19ceee88ba644aceacffbd1495909b"></a>

### Friend ConstructHelpers::construct\_trait

![](https://img.shields.io/badge/language-C%2B%2B-blue "C++")![](https://img.shields.io/badge/-public-brightgreen "public")

## Public functions

<a id="classansys-dpf-any-1a6604617198bee45653ad2663237002c2"></a>

### Function ~Any

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

```cpp
virtual ansys::dpf::Any::~Any()

```

**Return type**:

<a id="classansys-dpf-any-1af23b70b81b8f1d7cfddcd5e9d79e60f5"></a>

### Function Any

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

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

```

**Parameters**:

- const DataT &amp; **value**
- [Client](classansys-dpf-client.md#classansys-dpf-client) const \*const **client** = nullptr

**Return type**:

<a id="classansys-dpf-any-1ab24d321afb6bc120c0b49fd269f28a91"></a>

### Function Any

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

```cpp
ansys::dpf::Any::Any(Any const &)

```

**Parameters**:

- Any const &amp;

**Return type**:

<a id="classansys-dpf-any-1a3570cea5938292c99e277fef602eb60f"></a>

### Function Any

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

```cpp
ansys::dpf::Any::Any(Any &&) noexcept

```

**Parameters**:

- Any &amp;&amp;

**Return type**:

<a id="classansys-dpf-any-1a03e8005283ad244a72b3126b43bfe333"></a>

### Function operator=

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

```cpp
Any & ansys::dpf::Any::operator=(Any const &)

```

**Parameters**:

- Any const &amp;

**Return type**: Any &amp;

<a id="classansys-dpf-any-1abea02211d9b1bbdacfe0f3cdebb4988e"></a>

### Function operator=

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

```cpp
Any & ansys::dpf::Any::operator=(Any &&) noexcept

```

**Parameters**:

- Any &amp;&amp;

**Return type**: Any &amp;

<a id="classansys-dpf-any-1a1849f144686207e9923c4660416eadcb"></a>

### Function wrappedType

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

```cpp
std::string ansys::dpf::Any::wrappedType()

```

**Return type**: std::string

<a id="classansys-dpf-any-1a6a0f7e3bc8ab2110cc3c1a96423898a1"></a>

### Function testType

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::Any::testType() const

```

**Returns**:

Indication that the object is of the type of data.

**Return type**: bool

<a id="classansys-dpf-any-1a3755fc547ffa733c3a6b8b7bae28da42"></a>

### Function get

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
DataT ansys::dpf::Any::get() const

```

**Returns**:

specified template type held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: DataT

<a id="classansys-dpf-any-1a00cce5475752905812ab028e4c1ca97b"></a>

### Function getAsInt

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
dp_int ansys::dpf::Any::getAsInt() const

```

**Returns**:

Int held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: [dp\_int](namespaceansys-dpf.md#namespaceansys-dpf-1a60d181a1f9d29cc7cc38b25dac4401f0)

<a id="classansys-dpf-any-1a890fb93b1496ef38284322110f682eae"></a>

### Function getAsString

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
std::string ansys::dpf::Any::getAsString() const

```

**Returns**:

String held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: std::string

<a id="classansys-dpf-any-1a4576e195b7ef1e4a48b26f57db844289"></a>

### Function getAsDouble

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
double ansys::dpf::Any::getAsDouble() const

```

**Returns**:

Double held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: double

<a id="classansys-dpf-any-1a9b3531295f844610cc131f78c96ef04d"></a>

### Function getAsIntVector

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
DpfVector< int > ansys::dpf::Any::getAsIntVector() const

```

**Returns**:

int vector held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: DpfVector&lt; int &gt;

<a id="classansys-dpf-any-1a8bb8b9c5c9b8caccff78ff66a16780cb"></a>

### Function getAsField

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
Field ansys::dpf::Any::getAsField() const

```

**Returns**:

[Field](classansys-dpf-field.md#classansys-dpf-field) held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: [Field](classansys-dpf-field.md#classansys-dpf-field)

<a id="classansys-dpf-any-1a91f7cbddb5ec5ce949a7a9f692d1d113"></a>

### Function getAsPropertyField

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
PropertyField ansys::dpf::Any::getAsPropertyField() const

```

**Returns**:

[PropertyField](classansys-dpf-propertyfield.md#classansys-dpf-propertyfield) held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: [PropertyField](classansys-dpf-propertyfield.md#classansys-dpf-propertyfield)

<a id="classansys-dpf-any-1a1fede102c77bed4303bc8aa9210863b2"></a>

### Function getAsScoping

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
Scoping ansys::dpf::Any::getAsScoping() const

```

**Returns**:

[Scoping](classansys-dpf-scoping.md#classansys-dpf-scoping) held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: [Scoping](classansys-dpf-scoping.md#classansys-dpf-scoping)

<a id="classansys-dpf-any-1af48a4b58d4d52dd107e75fdb6db2cdea"></a>

### Function getAsFieldsContainer

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
FieldsContainer ansys::dpf::Any::getAsFieldsContainer() const

```

**Returns**:

[FieldsContainer](classansys-dpf-fieldscontainer.md#classansys-dpf-fieldscontainer) held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: [FieldsContainer](classansys-dpf-fieldscontainer.md#classansys-dpf-fieldscontainer)

<a id="classansys-dpf-any-1abcc1dc4052f9679abd3f13538ada623e"></a>

### Function getAsScopingsContainer

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
ScopingsContainer ansys::dpf::Any::getAsScopingsContainer() const

```

**Returns**:

[ScopingsContainer](classansys-dpf-scopingscontainer.md#classansys-dpf-scopingscontainer) held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: [ScopingsContainer](classansys-dpf-scopingscontainer.md#classansys-dpf-scopingscontainer)

<a id="classansys-dpf-any-1aee25715543d8396d96a2826cf1d84a98"></a>

### Function getAsMeshesContainer

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
MeshesContainer ansys::dpf::Any::getAsMeshesContainer() const

```

**Returns**:

[MeshesContainer](classansys-dpf-meshescontainer.md#classansys-dpf-meshescontainer) held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: [MeshesContainer](classansys-dpf-meshescontainer.md#classansys-dpf-meshescontainer)

<a id="classansys-dpf-any-1a96bbb9c2b82fab07d230bed40d06bb47"></a>

### Function getAsTimeFreqSupport

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
TimeFreqSupport ansys::dpf::Any::getAsTimeFreqSupport() const

```

**Returns**:

[TimeFreqSupport](classansys-dpf-timefreqsupport.md#classansys-dpf-timefreqsupport) held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: [TimeFreqSupport](classansys-dpf-timefreqsupport.md#classansys-dpf-timefreqsupport)

<a id="classansys-dpf-any-1a58519b0fe5310585c78ff0b8cca8ae62"></a>

### Function getAsMeshedRegion

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
MeshedRegion ansys::dpf::Any::getAsMeshedRegion() const

```

**Returns**:

[MeshedRegion](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion) held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: [MeshedRegion](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion)

<a id="classansys-dpf-any-1a4dbf7a1c952b75dc3a2f2f36992559b0"></a>

### Function getAsStreams

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
Streams ansys::dpf::Any::getAsStreams() const

```

**Returns**:

[Streams](classansys-dpf-streams.md#classansys-dpf-streams) held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: [Streams](classansys-dpf-streams.md#classansys-dpf-streams)

<a id="classansys-dpf-any-1ab65ba60185b1136c36b4ed181521bfb1"></a>

### Function getAsResultInfo

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
ResultInfo ansys::dpf::Any::getAsResultInfo() const

```

**Returns**:

[ResultInfo](classansys-dpf-resultinfo.md#classansys-dpf-resultinfo) held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: [ResultInfo](classansys-dpf-resultinfo.md#classansys-dpf-resultinfo)

<a id="classansys-dpf-any-1ad25e7ea69b88bb148cc8046d50760c29"></a>

### Function getAsDataTree

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
DataTree ansys::dpf::Any::getAsDataTree() const

```

**Returns**:

[DataTree](classansys-dpf-datatree.md#classansys-dpf-datatree) held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: [DataTree](classansys-dpf-datatree.md#classansys-dpf-datatree)

<a id="classansys-dpf-any-1a0f2541d86f4078c8f5edefe21a07206a"></a>

### Function getAsWorkflow

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
Workflow ansys::dpf::Any::getAsWorkflow() const

```

**Returns**:

Workflow held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: Workflow

<a id="classansys-dpf-any-1a5c1f49a671fa9d9d53b5b98fefdbd33b"></a>

### Function getAsOperator

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
Operator ansys::dpf::Any::getAsOperator() const

```

**Returns**:

[Operator](classansys-dpf-operator.md#classansys-dpf-operator) held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: Operator

<a id="classansys-dpf-any-1ae1f0a0f83dd87c93e8a36ef83e390821"></a>

### Function getAsCyclicSupport

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
CyclicSupport ansys::dpf::Any::getAsCyclicSupport() const

```

**Returns**:

[CyclicSupport](classansys-dpf-cyclicsupport.md#classansys-dpf-cyclicsupport) held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: [CyclicSupport](classansys-dpf-cyclicsupport.md#classansys-dpf-cyclicsupport)

<a id="classansys-dpf-any-1a52850e5eb23e6cba70ccd0c0713e3452"></a>

### Function getAsDataSources

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
DataSources ansys::dpf::Any::getAsDataSources() const

```

**Returns**:

[DataSources](classansys-dpf-datasources.md#classansys-dpf-datasources) held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: [DataSources](classansys-dpf-datasources.md#classansys-dpf-datasources)

<a id="classansys-dpf-any-1aaab60afc505c69dbba4046eb5eaa3709"></a>

### Function getAsStringField

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
StringField ansys::dpf::Any::getAsStringField() const

```

**Returns**:

[StringField](classansys-dpf-stringfield.md#classansys-dpf-stringfield) held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: [StringField](classansys-dpf-stringfield.md#classansys-dpf-stringfield)

<a id="classansys-dpf-any-1a8a4ae829c4e5142a390158b7f1842cfb"></a>

### Function getAsGenericDataContainer

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
GenericDataContainer ansys::dpf::Any::getAsGenericDataContainer() const

```

**Returns**:

GenericDataContainer held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: GenericDataContainer

<a id="classansys-dpf-any-1a1dca8be1c667aecd16d76821088d1c58"></a>

### Function getAsCustomTypeFieldsContainer

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
CustomTypeFieldsContainer ansys::dpf::Any::getAsCustomTypeFieldsContainer() const

```

**Returns**:

[CustomTypeFieldsContainer](classansys-dpf-customtypefieldscontainer.md#classansys-dpf-customtypefieldscontainer) held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: [CustomTypeFieldsContainer](classansys-dpf-customtypefieldscontainer.md#classansys-dpf-customtypefieldscontainer)

<a id="classansys-dpf-any-1a971efc6d276a05d1e2e047878cdfb56a"></a>

### Function getAsCustomTypeField

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
CustomTypeField ansys::dpf::Any::getAsCustomTypeField() const

```

**Returns**:

[CustomTypeField](classansys-dpf-customtypefield.md#classansys-dpf-customtypefield) held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: [CustomTypeField](classansys-dpf-customtypefield.md#classansys-dpf-customtypefield)

<a id="classansys-dpf-any-1a53dda1baccbaa272f72df5195f30591b"></a>

### Function getAsLabelSpace

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
LabelSpace ansys::dpf::Any::getAsLabelSpace() const

```

**Returns**:

[LabelSpace](classansys-dpf-labelspace.md#classansys-dpf-labelspace) held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: [LabelSpace](classansys-dpf-labelspace.md#classansys-dpf-labelspace)

<a id="classansys-dpf-any-1ae414564b0c53e55acf9878a9c3237784"></a>

### Function getAsCollection

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
Collection< DataT > ansys::dpf::Any::getAsCollection() const

```

**Returns**:

AnyCollection held in the [Any](classansys-dpf-any.md#classansys-dpf-any) object.

**Exceptions**:

- **[DpfException](classansys-dpf-dpfexception.md#classansys-dpf-dpfexception)**:

**Return type**: [Collection](classansys-dpf-collection.md#classansys-dpf-collection)&lt; DataT &gt;

<a id="classansys-dpf-any-1adde807f660e7d288e709f3d372a1b916"></a>

### Function getAsFbsReference

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

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

```

**Parameters**:

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

**Return type**: void

<a id="classansys-dpf-any-1ae7764836c250415dc742260c3ef5f24f"></a>

### Function deep\_copy

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
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](classansys-dpf-client.md#classansys-dpf-client) const \*const **client** = nullptr : \[in\] Remote client

**Return type**: Any

## Public static functions

<a id="classansys-dpf-any-1a1b66e1daab041b4e72e729e1ae3f108d"></a>

### Function createFromFbsReference

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-static-lightgrey "static")

```cpp
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 &amp; **address**
- const opaque::FbsSlice \* **req\_slice**
- size\_t **req\_offset**
- const [ansys::dpf::Client](classansys-dpf-client.md#classansys-dpf-client) \* **client** = nullptr

**Return type**: Any

<a id="classansys-dpf-any-1a8a8270659397ad6d912ef5c62d16f61c"></a>

### Function retrieveFromServer

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-static-lightgrey "static")

```cpp
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](classansys-dpf-client.md#classansys-dpf-client) const \*const **client**: \[in\] [Client](classansys-dpf-client.md#classansys-dpf-client) instance designating the IP, port and protocol to use.

**Return type**: Any

<a id="classansys-dpf-any-1a4e7350ee3446b0e8ad3c1aca88fee463"></a>

### Function emptyAny

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-static-lightgrey "static")

```cpp
static Any ansys::dpf::Any::emptyAny()

```

**Return type**: Any