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

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

Allows you to define your own containers by deriving from this class.

For the custom class deriving from [CustomContainerBase](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customcontainerbase.md) to be fully supported by DPF features (connection to Operator, remote access, multi languages API), all private attributes should registered into the GenericDataContainer held.

**Inherited by**:

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

## Members

* [container](#classansys-dpf-customcontainerbase-1a595ca7a2057dd128a01676b24e622c08)
* [container](#classansys-dpf-customcontainerbase-1a43b2fea572fa3298d6405cf7f497c78b)
* [CustomContainerBase](#classansys-dpf-customcontainerbase-1ab2649202d9da1730e164634a4d864f3e)
* [CustomContainerBase](#classansys-dpf-customcontainerbase-1a0dbdad77df7b779da34e8fa283a6597f)
* [CustomContainerBase](#classansys-dpf-customcontainerbase-1ae7229c52821828cec4fca9dce836ee55)
* [describe](#classansys-dpf-customcontainerbase-1a65a8a6f6585ddf80c7e0dfdf9b9c50f5)
* [getAttributeNames](#classansys-dpf-customcontainerbase-1a1ba98abe5c74497c829744f302de3cb5)
* [getClient](#classansys-dpf-customcontainerbase-1ae048111b288fdbddfd3a5ab07438bc85)
* [\~CustomContainerBase](#classansys-dpf-customcontainerbase-1a352060b066a01aeda0631390b664f021)

## Friends

## Public functions

### Function CustomContainerBase

![][public]

```cpp theme={null}
ansys::dpf::CustomContainerBase::CustomContainerBase(std::string const &class_name)
```

**Parameters**:

* std::string const & **class\_name**: \[in] Name of the custom class in camel case format. Will be used to print the instance.

**Return type**:

### Function CustomContainerBase

![][public]

```cpp theme={null}
ansys::dpf::CustomContainerBase::CustomContainerBase(std::string const &class_name, Client const *const client)
```

**Parameters**:

* std::string const & **class\_name**: \[in] Name of the custom class in camel case format. Will be used to print the instance.
* [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 CustomContainerBase

![][public]

```cpp theme={null}
ansys::dpf::CustomContainerBase::CustomContainerBase(std::string const &class_name, GenericDataContainer const &container)
```

**Parameters**:

* std::string const & **class\_name**: \[in] Name of the custom class in camel case format. Will be used to print the instance.
* GenericDataContainer const & **container**: \[in] Internal container holding all the attributes as properties.

**Return type**:

### Function \~CustomContainerBase

![][public]

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

**Return type**:

### Function container

![][public]

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

**Returns**:

The internal container.

**Return type**: GenericDataContainer &

### Function container

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

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

**Returns**:

The internal container.

**Return type**: GenericDataContainer const &

### Function describe

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

```cpp theme={null}
std::string ansys::dpf::CustomContainerBase::describe() const
```

**Returns**:

Description of object.

**Return type**: std::string

### Function getAttributeNames

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

```cpp theme={null}
std::vector< std::string > ansys::dpf::CustomContainerBase::getAttributeNames() const
```

**Return type**: std::vector\< std::string >

### Function getClient

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

```cpp theme={null}
bool ansys::dpf::CustomContainerBase::getClient(Client &client) const
```

**Returns**:

Get the [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-client.md) the object is on, if it has one. Must not be used without using remote API.

**Parameters**:

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

**Return type**: bool

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