    

 ## On this page

  

 

 # Class ansys::dpf::GenericDataContainer

 Last update: 25.03.2026 

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

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

**Inherits from**:

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

## Members

- [callAPI](classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1aea34d37e0c080126eff70db34bf46597)
- [container](classansys-dpf-genericdatacontainer.md#classansys-dpf-genericdatacontainer-1ae8266244834854d4bbc7e0c95b5e253e)
- [describe](classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1a9977945710983bc03d2940fa007847b2)
- [empty](classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1a39cd546c42518e2332be8f287db95459)
- [emptyGenericDataContainer](classansys-dpf-genericdatacontainer.md#classansys-dpf-genericdatacontainer-1a522b957635dffa828ea90ac8c905a007)
- [GenericDataContainer](classansys-dpf-genericdatacontainer.md#classansys-dpf-genericdatacontainer-1a8f809e3503a06710a076825a1c331740)
- [GenericDataContainer](classansys-dpf-genericdatacontainer.md#classansys-dpf-genericdatacontainer-1afce6ef073ac2fc60ddb7cef7aef1eec5)
- [GenericDataContainer](classansys-dpf-genericdatacontainer.md#classansys-dpf-genericdatacontainer-1a933dd62982781ee2643cbf120aa455f3)
- [GenericDataContainer](classansys-dpf-genericdatacontainer.md#classansys-dpf-genericdatacontainer-1aa21e7758ec9efc6d257e7d2db76035ef)
- [GenericDataContainer](classansys-dpf-genericdatacontainer.md#classansys-dpf-genericdatacontainer-1a852bd420e544d60c570e427725400d8d)
- [getClient](classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1a968afd9daa0b0f13b65a2ac61369d73a)
- [getCustomContainerProperty](classansys-dpf-genericdatacontainer.md#classansys-dpf-genericdatacontainer-1a0a3b3f1c37f9425fd2d335d9a4e52e14)
- [getProperty](classansys-dpf-genericdatacontainer.md#classansys-dpf-genericdatacontainer-1ace0470f9a8f297bbd3f1d12620f76500)
- [getPropertyAny](classansys-dpf-genericdatacontainer.md#classansys-dpf-genericdatacontainer-1a901007643a851b2e028800f82c2dea21)
- [getPropertyNames](classansys-dpf-genericdatacontainer.md#classansys-dpf-genericdatacontainer-1ada189eba34c9cd3ecb8e667f0cfbbcf4)
- [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-genericdatacontainer.md#classansys-dpf-genericdatacontainer-1a1f5664d7fdb211b1760ca82e4f0c3481)
- [operator=](classansys-dpf-genericdatacontainer.md#classansys-dpf-genericdatacontainer-1ad0bf774a3dddbe73e04976818d403fa2)
- [setProperty](classansys-dpf-genericdatacontainer.md#classansys-dpf-genericdatacontainer-1ae9feb6c42b98ceb8f7371c3cb6c3d601)
- [setPropertyAny](classansys-dpf-genericdatacontainer.md#classansys-dpf-genericdatacontainer-1a772dc4122f531c8a3944411b55e232a3)
- [~DpfTypes](classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1ab7c83b6ea160c2b115e056f6c312112f)
- [~GenericDataContainer](classansys-dpf-genericdatacontainer.md#classansys-dpf-genericdatacontainer-1a842c796209ed3d9b975894c6d2e18a3c)

## Friends

<a id="classansys-dpf-genericdatacontainer-1ab2e4916b9d046a72d197238993a71433"></a>

### Friend internal::set\_prop

![](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-genericdatacontainer-1a842c796209ed3d9b975894c6d2e18a3c"></a>

### Function ~GenericDataContainer

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

```cpp
virtual ansys::dpf::GenericDataContainer::~GenericDataContainer()=default

```

**Return type**:

<a id="classansys-dpf-genericdatacontainer-1a8f809e3503a06710a076825a1c331740"></a>

### Function GenericDataContainer

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

```cpp
ansys::dpf::GenericDataContainer::GenericDataContainer()

```

**Return type**:

<a id="classansys-dpf-genericdatacontainer-1afce6ef073ac2fc60ddb7cef7aef1eec5"></a>

### Function GenericDataContainer

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

```cpp
ansys::dpf::GenericDataContainer::GenericDataContainer(int id, Client const *const client)

```

Retrieve an existing instance of GenericDataContainer on a server.

**Parameters**:

- int **id**: \[in\] Id of the GenericDataContainer 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**:

<a id="classansys-dpf-genericdatacontainer-1a933dd62982781ee2643cbf120aa455f3"></a>

### Function GenericDataContainer

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

```cpp
ansys::dpf::GenericDataContainer::GenericDataContainer(Client const *const client)

```

**Parameters**:

- [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**:

<a id="classansys-dpf-genericdatacontainer-1aa21e7758ec9efc6d257e7d2db76035ef"></a>

### Function GenericDataContainer

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

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

```

**Parameters**:

- GenericDataContainer const &amp;

**Return type**:

<a id="classansys-dpf-genericdatacontainer-1a852bd420e544d60c570e427725400d8d"></a>

### Function GenericDataContainer

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

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

```

**Parameters**:

- GenericDataContainer &amp;&amp;

**Return type**:

<a id="classansys-dpf-genericdatacontainer-1a1f5664d7fdb211b1760ca82e4f0c3481"></a>

### Function operator=

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

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

```

**Parameters**:

- GenericDataContainer const &amp;

**Return type**: GenericDataContainer &amp;

<a id="classansys-dpf-genericdatacontainer-1ad0bf774a3dddbe73e04976818d403fa2"></a>

### Function operator=

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

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

```

**Parameters**:

- GenericDataContainer &amp;&amp;

**Return type**: GenericDataContainer &amp;

<a id="classansys-dpf-genericdatacontainer-1ada189eba34c9cd3ecb8e667f0cfbbcf4"></a>

### Function getPropertyNames

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

```cpp
std::vector< std::string > ansys::dpf::GenericDataContainer::getPropertyNames() const

```

**Returns**:

property names as a vector of string considering the properties set in the file

**Return type**: std::vector&lt; std::string &gt;

<a id="classansys-dpf-genericdatacontainer-1ace0470f9a8f297bbd3f1d12620f76500"></a>

### Function getProperty

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

```cpp
T ansys::dpf::GenericDataContainer::getProperty(const std::string &property_name) const

```

**Returns**:

property associated to given property name

**Exceptions**:

- **if**: the property doesn't exist.

**Parameters**:

- const std::string &amp; **property\_name**

**Return type**: T

<a id="classansys-dpf-genericdatacontainer-1a0a3b3f1c37f9425fd2d335d9a4e52e14"></a>

### Function getCustomContainerProperty

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

```cpp
CustomContainerT ansys::dpf::GenericDataContainer::getCustomContainerProperty(const std::string &property_name) const

```

**Returns**:

property of type deriving from CustomContainerBase associated to given property name

**Parameters**:

- const std::string &amp; **property\_name**

**Return type**: CustomContainerT

<a id="classansys-dpf-genericdatacontainer-1ae8266244834854d4bbc7e0c95b5e253e"></a>

### Function container

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

```cpp
GenericDataContainer const  & ansys::dpf::GenericDataContainer::container() const

```

**Return type**: GenericDataContainer const &amp;

<a id="classansys-dpf-genericdatacontainer-1ae9feb6c42b98ceb8f7371c3cb6c3d601"></a>

### Function setProperty

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

```cpp
void ansys::dpf::GenericDataContainer::setProperty(const std::string &property_name, const T &property)

```

set property with given property name

**Parameters**:

- const std::string &amp; **property\_name**
- const T &amp; **property**

**Return type**: void

<a id="classansys-dpf-genericdatacontainer-1a901007643a851b2e028800f82c2dea21"></a>

### Function getPropertyAny

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

```cpp
Any ansys::dpf::GenericDataContainer::getPropertyAny(const std::string &property_name) const

```

**Parameters**:

- const std::string &amp; **property\_name**

**Return type**: Any

<a id="classansys-dpf-genericdatacontainer-1a772dc4122f531c8a3944411b55e232a3"></a>

### Function setPropertyAny

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

```cpp
void ansys::dpf::GenericDataContainer::setPropertyAny(const std::string &property_name, const Any &property)

```

**Parameters**:

- const std::string &amp; **property\_name**
- const Any &amp; **property**

**Return type**: void

## Public static functions

<a id="classansys-dpf-genericdatacontainer-1a522b957635dffa828ea90ac8c905a007"></a>

### Function emptyGenericDataContainer

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

```cpp
static GenericDataContainer ansys::dpf::GenericDataContainer::emptyGenericDataContainer()

```

Creates an empty GenericDataContainer. **Returns**:

Empty GenericDataContainer.

**Return type**: GenericDataContainer