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

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

Contains a group of custom type fields. The [CustomTypeFieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefieldscontainer.md) is designed as a set of custom type fields ordered through labels and ids. Labels identify how the fields are filtered.

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

**Inherits from**:

* ansys::dpf::CollectionBase

## Members

* [add](#classansys-dpf-customtypefieldscontainer-1a85eb626dd45ca5e3a1a8347ca73bdf59)
* [addLabel](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-collectionbase.md#classansys-dpf-collectionbase-1a623a0b168512a4621fb7af8084f9872b)
* [addLabel](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-collectionbase.md#classansys-dpf-collectionbase-1ac6ce7bc876d6a94a97996d5febba5116)
* [addLabels](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-collectionbase.md#classansys-dpf-collectionbase-1ae97480559c14c59e830559582c1f2cd5)
* [at](#classansys-dpf-customtypefieldscontainer-1a2bb825ef745028ae124723664d1721f0)
* [at](#classansys-dpf-customtypefieldscontainer-1a0d85df941eb94304aa713f31c203f6cb)
* [callAPI](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1aea34d37e0c080126eff70db34bf46597)
* [createSubCustomTypeFieldsContainer](#classansys-dpf-customtypefieldscontainer-1a163d49e339c1df1dea9271f591f52ade)
* [CustomTypeFieldsContainer](#classansys-dpf-customtypefieldscontainer-1a43fb73f6e8e6bdbc109777f5a42e39f6)
* [CustomTypeFieldsContainer](#classansys-dpf-customtypefieldscontainer-1a43cc23b4378cbda69c2df6b40351e20c)
* [CustomTypeFieldsContainer](#classansys-dpf-customtypefieldscontainer-1a7d3eff103026eee8324abdf0874b9bc1)
* [CustomTypeFieldsContainer](#classansys-dpf-customtypefieldscontainer-1a6549470b067faacff7505e4304d80da5)
* [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)
* [emptyCustomTypeFieldsContainer](#classansys-dpf-customtypefieldscontainer-1a0c1698f9c74ae209656e11454723670d)
* [getClient](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1a968afd9daa0b0f13b65a2ac61369d73a)
* [getCustomTypeField](#classansys-dpf-customtypefieldscontainer-1afbb394c6a1124f023188c0fde3f77d3c)
* [getCustomTypeFields](#classansys-dpf-customtypefieldscontainer-1a43329515b1faf96f24540fb28876d9c9)
* [getCustomTypeFieldsIndices](#classansys-dpf-customtypefieldscontainer-1aff4531367a6abed9b9884db0f49c519a)
* [getLabelSpace](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-collectionbase.md#classansys-dpf-collectionbase-1a66d62492d07889a95a5d10f9d827cd11)
* [getMatchingCustomTypeField](#classansys-dpf-customtypefieldscontainer-1a9a2fc0eca540a4ee8fc7682302093110)
* [getMatchingCustomTypeFieldIndices](#classansys-dpf-customtypefieldscontainer-1a15fe40c6913c4df3853af4bee4d6375b)
* [getSizeFor](#classansys-dpf-customtypefieldscontainer-1a0c526ddb5e50c14c564b2c68ece091e4)
* [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)
* [hasLabel](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-collectionbase.md#classansys-dpf-collectionbase-1a82ac9433fd3963b37b07989ef05de331)
* [id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-collectionbase.md#classansys-dpf-collectionbase-1a5e8d2dd8b9b6cf273985ce3ead392830)
* [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)
* [labels](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-collectionbase.md#classansys-dpf-collectionbase-1a2c1bb3718e1a96d3f40b64794eb25f91)
* [labelScoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-collectionbase.md#classansys-dpf-collectionbase-1ac61aef82ffe249c95dd10cf40de7c910)
* [name](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-collectionbase.md#classansys-dpf-collectionbase-1a691450ab7c89db80f39d6bb2d10eace4)
* [operator=](#classansys-dpf-customtypefieldscontainer-1aab7913584ae5fbd3ad88e74d1ce9ca10)
* [operator=](#classansys-dpf-customtypefieldscontainer-1a5ce7b298bcd14b03d2c620934c8d9f55)
* [operator\[\]](#classansys-dpf-customtypefieldscontainer-1a78e5486305d5d2330143a82e3ab1cd64)
* [reserve](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-collectionbase.md#classansys-dpf-collectionbase-1a98ab98c9a6b91b886fd600ed7d9e633b)
* [resize](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-collectionbase.md#classansys-dpf-collectionbase-1ac88664d3e1d22abb74a95c8223b1e771)
* [setId](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-collectionbase.md#classansys-dpf-collectionbase-1a93ebbfe9396dd1c4f447e799db6cbf3b)
* [setName](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-collectionbase.md#classansys-dpf-collectionbase-1a44394f964c6130dcbaed446cec3b0197)
* [setSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-collectionbase.md#classansys-dpf-collectionbase-1ae6f7683496d153ed944856d42b97dc82)
* [setSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-collectionbase.md#classansys-dpf-collectionbase-1ada2a037068417557fd7d410577a7fbb9)
* [size](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-collectionbase.md#classansys-dpf-collectionbase-1a69e6878d2d691807f8a45ddfbda42f9e)
* [support](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-collectionbase.md#classansys-dpf-collectionbase-1a9830a03b992af391bf03acad90eac372)
* [update](#classansys-dpf-customtypefieldscontainer-1ad6cd99e2c5c073ff3709c17657e59f0f)
* [\~CollectionBase](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-collectionbase.md#classansys-dpf-collectionbase-1a99e04439d35f26b89f4d66813d74035b)
* [\~CustomTypeFieldsContainer](#classansys-dpf-customtypefieldscontainer-1a931ed37182b866a94576dda67fde3265)
* [\~DpfTypes](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1ab7c83b6ea160c2b115e056f6c312112f)

## Friends

## Public functions

### Function CustomTypeFieldsContainer

![][public]

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

**Return type**:

### Function \~CustomTypeFieldsContainer

![][public]

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

**Return type**:

### Function CustomTypeFieldsContainer

![][public]

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

**Parameters**:

* CustomTypeFieldsContainer const &

**Return type**:

### Function CustomTypeFieldsContainer

![][public]

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

**Parameters**:

* CustomTypeFieldsContainer &&

**Return type**:

### Function CustomTypeFieldsContainer

![][public]

```cpp theme={null}
ansys::dpf::CustomTypeFieldsContainer::CustomTypeFieldsContainer(std::vector< std::string > const &labels)
```

Create container for a group of CustomTypeFields with the given labels.

**Parameters**:

* std::vector\< std::string > const & **labels**: \[in] Labels for group of CustomTypeFields.

**Return type**:

### Function operator=

![][public]

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

**Parameters**:

* CustomTypeFieldsContainer const &

**Return type**: CustomTypeFieldsContainer &

### Function operator=

![][public]

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

**Parameters**:

* CustomTypeFieldsContainer &&

**Return type**: CustomTypeFieldsContainer &

### Function operator\[]

![][public]

```cpp theme={null}
CustomTypeField ansys::dpf::CustomTypeFieldsContainer::operator[](dp_int index)
```

**Returns**:

[CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefield.md) for given index.

**Parameters**:

* [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1a60d181a1f9d29cc7cc38b25dac4401f0) **index**: \[in] Index of CustomTypeFields within container.

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

### Function at

![][public]

```cpp theme={null}
CustomTypeField ansys::dpf::CustomTypeFieldsContainer::at(dp_index index)
```

**Returns**:

CustomTypeFields for given index.

**Parameters**:

* [dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1a417548d1b705a9ba54ba9429afe68920) **index**: \[in] Index of [CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefield.md) to get.

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

### Function at

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

```cpp theme={null}
const CustomTypeField ansys::dpf::CustomTypeFieldsContainer::at(dp_index index) const
```

**Returns**:

CustomTypeFields for given index.

**Parameters**:

* [dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1a417548d1b705a9ba54ba9429afe68920) **index**: \[in] Index of [CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefield.md) to get.

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

### Function update

![][public]

```cpp theme={null}
void ansys::dpf::CustomTypeFieldsContainer::update(CustomTypeField &f, dp_index index)
```

Update a [CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefield.md) at index.

**Parameters**:

* [CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefield.md) & **f**: \[in] New [CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefield.md).
* [dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1a417548d1b705a9ba54ba9429afe68920) **index**: \[in] Index of [CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefield.md) to update.

**Return type**: void

### Function add

![][public]

```cpp theme={null}
void ansys::dpf::CustomTypeFieldsContainer::add(LabelSpace const &labels, CustomTypeField const &f, bool can_replace=true)
```

Add [CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefield.md) with given label space.

**Parameters**:

* [LabelSpace](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-labelspace.md) const & **labels**: \[in] [Label](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/structansys-dpf-label.md) space for [CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefield.md).
* [CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefield.md) const & **f**: \[in] [CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefield.md) to add.
* bool **can\_replace** = true : \[in] if can\_replace is false, then, the entity is pushed back without checking if the label space already exists.

**Return type**: void

### Function getSizeFor

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

```cpp theme={null}
dp_int ansys::dpf::CustomTypeFieldsContainer::getSizeFor(LabelSpace const &label_space) const
```

**Returns**:

Number of CustomTypeFields for given label space.

**Parameters**:

* [LabelSpace](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-labelspace.md) const & **label\_space**: \[in] [Label](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/structansys-dpf-label.md) space for which to get number of entities.

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

### Function getCustomTypeFields

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

```cpp theme={null}
std::vector< CustomTypeField > ansys::dpf::CustomTypeFieldsContainer::getCustomTypeFields(LabelSpace const &label_space) const
```

**Returns**:

Vector of CustomTypeFields for given label space.

**Parameters**:

* [LabelSpace](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-labelspace.md) const & **label\_space**: \[in] [Label](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/structansys-dpf-label.md) space for which to get CustomTypeFields.

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

### Function getCustomTypeField

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

```cpp theme={null}
CustomTypeField ansys::dpf::CustomTypeFieldsContainer::getCustomTypeField(LabelSpace const &label_space) const
```

**Returns**:

First [CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefield.md) for given label space.

**Parameters**:

* [LabelSpace](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-labelspace.md) const & **label\_space**: \[in] [Label](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/structansys-dpf-label.md) space for which to get [CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefield.md).

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

### Function getCustomTypeFieldsIndices

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

```cpp theme={null}
std::vector< int > ansys::dpf::CustomTypeFieldsContainer::getCustomTypeFieldsIndices(LabelSpace const &lab_space) const
```

**Parameters**:

* [LabelSpace](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-labelspace.md) const & **lab\_space**

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

### Function getMatchingCustomTypeField

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

```cpp theme={null}
CustomTypeField ansys::dpf::CustomTypeFieldsContainer::getMatchingCustomTypeField(LabelSpace const &label_space) const
```

**Returns**:

First matching [CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefield.md) for given label space.

**Parameters**:

* [LabelSpace](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-labelspace.md) const & **label\_space**: \[in] [Label](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/structansys-dpf-label.md) space for which to get [Any](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-any.md).

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

### Function getMatchingCustomTypeFieldIndices

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

```cpp theme={null}
DpfVector< dp_index > ansys::dpf::CustomTypeFieldsContainer::getMatchingCustomTypeFieldIndices(LabelSpace const &label_space) const
```

**Returns**:

Vector of matching [CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefield.md) to the given label space.

**Parameters**:

* [LabelSpace](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-labelspace.md) const & **label\_space**: \[in] [Label](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/structansys-dpf-label.md) space for which to get entries.

**Return type**: [DpfVector](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpfvector.md)\< [dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1a417548d1b705a9ba54ba9429afe68920) >

### Function createSubCustomTypeFieldsContainer

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

```cpp theme={null}
CustomTypeFieldsContainer ansys::dpf::CustomTypeFieldsContainer::createSubCustomTypeFieldsContainer(LabelSpace const &lab_space) const
```

create a [CustomTypeFieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-customtypefieldscontainer.md) with all the CustomTypeFields corresponding to the label space in input

**Parameters**:

* [LabelSpace](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-labelspace.md) const & **lab\_space**

**Return type**: CustomTypeFieldsContainer

## Public static functions

### Function emptyCustomTypeFieldsContainer

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

```cpp theme={null}
static CustomTypeFieldsContainer ansys::dpf::CustomTypeFieldsContainer::emptyCustomTypeFieldsContainer()
```

Create an empty container.
**Returns**:

Empty container.

**Return type**: CustomTypeFieldsContainer

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