> ## 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::GenericDataContainer

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

**Inherits from**:

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

## Members

* [callAPI](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1aea34d37e0c080126eff70db34bf46597)
* [container](#classansys-dpf-genericdatacontainer-1ae8266244834854d4bbc7e0c95b5e253e)
* [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)
* [emptyGenericDataContainer](#classansys-dpf-genericdatacontainer-1a522b957635dffa828ea90ac8c905a007)
* [GenericDataContainer](#classansys-dpf-genericdatacontainer-1a8f809e3503a06710a076825a1c331740)
* [GenericDataContainer](#classansys-dpf-genericdatacontainer-1afce6ef073ac2fc60ddb7cef7aef1eec5)
* [GenericDataContainer](#classansys-dpf-genericdatacontainer-1a933dd62982781ee2643cbf120aa455f3)
* [GenericDataContainer](#classansys-dpf-genericdatacontainer-1aa21e7758ec9efc6d257e7d2db76035ef)
* [GenericDataContainer](#classansys-dpf-genericdatacontainer-1a852bd420e544d60c570e427725400d8d)
* [getClient](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1a968afd9daa0b0f13b65a2ac61369d73a)
* [getCustomContainerProperty](#classansys-dpf-genericdatacontainer-1a0a3b3f1c37f9425fd2d335d9a4e52e14)
* [getProperty](#classansys-dpf-genericdatacontainer-1ace0470f9a8f297bbd3f1d12620f76500)
* [getPropertyAny](#classansys-dpf-genericdatacontainer-1a901007643a851b2e028800f82c2dea21)
* [getPropertyNames](#classansys-dpf-genericdatacontainer-1ada189eba34c9cd3ecb8e667f0cfbbcf4)
* [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-genericdatacontainer-1a1f5664d7fdb211b1760ca82e4f0c3481)
* [operator=](#classansys-dpf-genericdatacontainer-1ad0bf774a3dddbe73e04976818d403fa2)
* [setProperty](#classansys-dpf-genericdatacontainer-1ae9feb6c42b98ceb8f7371c3cb6c3d601)
* [setPropertyAny](#classansys-dpf-genericdatacontainer-1a772dc4122f531c8a3944411b55e232a3)
* [\~DpfTypes](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1ab7c83b6ea160c2b115e056f6c312112f)
* [\~GenericDataContainer](#classansys-dpf-genericdatacontainer-1a842c796209ed3d9b975894c6d2e18a3c)

## Friends

### Friend internal::set\_prop

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

## Public functions

### Function \~GenericDataContainer

![][public]

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

**Return type**:

### Function GenericDataContainer

![][public]

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

**Return type**:

### Function GenericDataContainer

![][public]

```cpp theme={null}
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](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**:

### Function GenericDataContainer

![][public]

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

**Parameters**:

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

### Function GenericDataContainer

![][public]

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

**Parameters**:

* GenericDataContainer const &

**Return type**:

### Function GenericDataContainer

![][public]

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

**Parameters**:

* GenericDataContainer &&

**Return type**:

### Function operator=

![][public]

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

**Parameters**:

* GenericDataContainer const &

**Return type**: GenericDataContainer &

### Function operator=

![][public]

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

**Parameters**:

* GenericDataContainer &&

**Return type**: GenericDataContainer &

### Function getPropertyNames

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

```cpp theme={null}
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\< std::string >

### Function getProperty

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

```cpp theme={null}
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 & **property\_name**

**Return type**: T

### Function getCustomContainerProperty

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

```cpp theme={null}
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 & **property\_name**

**Return type**: CustomContainerT

### Function container

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

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

**Return type**: GenericDataContainer const &

### Function setProperty

![][public]

```cpp theme={null}
void ansys::dpf::GenericDataContainer::setProperty(const std::string &property_name, const T &property)
```

set property with given property name

**Parameters**:

* const std::string & **property\_name**
* const T & **property**

**Return type**: void

### Function getPropertyAny

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

```cpp theme={null}
Any ansys::dpf::GenericDataContainer::getPropertyAny(const std::string &property_name) const
```

**Parameters**:

* const std::string & **property\_name**

**Return type**: Any

### Function setPropertyAny

![][public]

```cpp theme={null}
void ansys::dpf::GenericDataContainer::setPropertyAny(const std::string &property_name, const Any &property)
```

**Parameters**:

* const std::string & **property\_name**
* const Any & **property**

**Return type**: void

## Public static functions

### Function emptyGenericDataContainer

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

```cpp theme={null}
static GenericDataContainer ansys::dpf::GenericDataContainer::emptyGenericDataContainer()
```

Creates an empty GenericDataContainer.
**Returns**:

Empty GenericDataContainer.

**Return type**: GenericDataContainer

[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"
