> ## 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.

# ansys::dpf::PropertyField Class Reference

`#include <dpf_api.h>`

Inheritance diagram for ansys::dpf::PropertyField:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1PropertyField.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=992b376dc695749c476a1e9dfd952333)

## Public Member Functions

| Type | Name |
| - | - |
| | [PropertyField](#aae094e83275af15988f720966683078a) ([Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Client.md) const \*const client, [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) number\_of\_entities=0, [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) data\_size=0) |
| | [PropertyField](#ac8723c38fad6636b55b31a3d6d8ccc76) ([dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) number\_of\_entities=0, [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) data\_size=0) |
| | [PropertyField](#a88b5dfeb3f030e6afbfbf87efbcc3561) (int id, [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Client.md) const \*const client) |
| | **PropertyField** ([PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1PropertyField.md) const &) |
| | **PropertyField** ([PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1PropertyField.md) &&) noexcept |
| [PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1PropertyField.md) & | **operator=** ([PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1PropertyField.md) const &) |
| [PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1PropertyField.md) & | **operator=** ([PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1PropertyField.md) &&) noexcept |
| [FieldDefinition](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1FieldDefinition.md) | [fieldDefinition](#a4df2020806c5f8d2ace1faa6b26a1ecb) () const |
| void | [setFieldDefinition](#a4ed774aecf5c68516a17da55da7b0ff7) ([FieldDefinition](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1FieldDefinition.md) const \&f) |
| std::string | [name](#aaf5a2e4abe9da5e77cc7b954b0ef81ba) () const |
| void | [setName](#aefb5d03109bcc57f95ca1257ab92ed7b) (const std::string &[name](#aaf5a2e4abe9da5e77cc7b954b0ef81ba)) |
| [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) | [location](#a9dbf80f14848a93eb311d97a4b3da8dd) () const |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Scoping.md) | [scoping](#a9d57c8ecf193532958d34de87db60da0) () const |
| [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) | [dataSize](#af0ff358222e067e0c03d588a6b11b04c) () const |
| [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) | [numberOfComponents](#a1a2b01c58216827f720b4a76a8f52d9d) () const |
| [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) | [numberOfElementaryData](#a3cb32ee79adc23f5c7ab5f6b6d831e26) () const |
| void | [push\_back](#a74bc6460d3924f837b480b725f2d230c) ([dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) entity\_id, std::vector\< int > const \&values) |
| void | [push\_back](#ac709022d579f02b554fdc06fe0a59f7f) ([dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) entity\_id, const int \*values, int size) |
| void | [push\_back](#a2200849fcd3d0c6ebc171b15d9cb8e54) ([dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) entity\_id, int \*values, int size) |
| void | [setData](#ae40e20aaa78a8bfc6ff8176cb9381152) (std::vector\< int > const &[data](#ac77c2c8994da1d1511c69849257c748c)) |
| void | [setData](#a74e8c4842a23651d988f8a264c9eabe6) (int const \*const [data](#ac77c2c8994da1d1511c69849257c748c), int size) |
| void | [setDataPointer](#afb3f6cd0c63ea162c4a7a53ef8066e7f) (std::vector\< int > const &[data](#ac77c2c8994da1d1511c69849257c748c)) |
| void | [setDataPointer](#a4e7b773455c0cf6aefdfaa5e25261940) (int \*const [data](#ac77c2c8994da1d1511c69849257c748c), int size) |
| void | [setScoping](#a6e63d1d672b5b1d074052e9e9f0ad239) ([ansys::dpf::Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Scoping.md) const \&s) |
| const [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) \* | [dataByIndex](#a8b09b1109c854475c4af16cba105a667) ([dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a417548d1b705a9ba54ba9429afe68920) entity\_index, int \&size) const |
| const [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) \* | [dataById](#aa32b0e1c2611e88a2aef55c94a8c6880) ([dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) entity\_id, int \&size) const |
| void | [fillCursor](#a90f3baa944b4dd1a49adbcbec5a3d766) ([dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a417548d1b705a9ba54ba9429afe68920) index, [PropFieldCursor](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1PropFieldCursor.md) \&cursor) const |
| void | [getIds](#a55c6d4eb97b98ca58672b149e2bf1483) (std::vector\< [dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) > \&ids\_to\_fill) const |
| void | [getData](#ab4fd6ed2f236efb404d4454944b4474b) (std::vector\< [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) > \&values\_to\_fill) const |
| [DpfVector](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfVector.md)\< int > | [data](#ac77c2c8994da1d1511c69849257c748c) () const |
| [DpfVector](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfVector.md)\< int > | [dataPointer](#a7b2afaba19a4b177460572a231c5275b) () const |
| void | [entityData](#a78f843b67d4df51c5bd0c57f98d9cc17) ([dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a417548d1b705a9ba54ba9429afe68920) entity\_index, [DpfVector](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfVector.md)\< int > &[data](#ac77c2c8994da1d1511c69849257c748c)) const |
| void | [entityDataById](#a433fe762b8bbf44c5cb7bc09e8e4f7a7) ([dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) entity\_id, [DpfVector](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfVector.md)\< int > &[data](#ac77c2c8994da1d1511c69849257c748c)) const |
| void | [reserve](#ad7e142a83fd4138694a80f1a36bb778a) ([dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) number\_of\_entities, [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) overall\_size=0) |
| void | [resize](#aafa75bc6e0e191b4914282ad620a5c35) ([dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) number\_of\_entities, [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) overall\_size) |
| [PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1PropertyField.md) | [deep\_copy](#ac440564a6c9b1f9266c72d600da28179) ([ansys::dpf::Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Client.md) const \*const client) const |
| [PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1PropertyField.md) | [deep\_copy](#a78cd4e97e8ad454271fe4ccdf896e842) () const |

> [accordion] Public Member Functions inherited from ansys::dpf::DpfTypes
>
> Public Member Functions inherited from [ansys::dpf::DpfTypes](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md)
>
> | Type | Name |
> | - | - |
> | virtual bool | [empty](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#a39cd546c42518e2332be8f287db95459) () const |
> | virtual bool | [hasInternalObject](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#ae198f89868d85c7db6dc1a934a1d3c15) () const |
> | virtual std::string | [describe](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#a9977945710983bc03d2940fa007847b2) () const |
> | so::API const \* | [callAPI](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#aea34d37e0c080126eff70db34bf46597) () const |
> | bool | [isOnCommonAPI](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#a9f9789ff61cc9d400a2a344830706b73) () const |
> | bool | [getClient](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#a968afd9daa0b0f13b65a2ac61369d73a) ([Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Client.md) \&client) const |
> | bool | [hasBeenMovedLocally](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#a1a5634202c15404b6b24e8f50e51cb66) () const |
> | bool | [isSameObject](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md#aa64d5f8fcd7d85ad6ebf708494dbefd7) ([DpfTypes](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfTypes.md) const \&rhs) const |

## Static Public Member Functions

| Type | Name |
| - | - |
|  static [PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1PropertyField.md) | **emptyPropertyField** () |
| static [PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1PropertyField.md) | [createPropertyFieldWithTransformation](#a0ca259df13f04a150585337c7914c37e) ([Workflow](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Workflow.md) transformation\_wf, int reserved\_number\_of\_entity=0, int reserved\_data\_size=0, std::string const \&input\_name\_to\_connect="input\_field", std::string const \&output\_name\_to\_eval="transformed\_field") |

## Detailed Description

Holds Integral (int32) data describing a Property located on given entities (the Property [Field](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Field.md)'s data is bounded with its scoping). Is the equivalent of the [Field](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Field.md) but with integral values data (and not double values).

**Examples**

[DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/DataApis_8cpp-example.md), and [ModelTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/ModelTest_8cpp-example.md).

## Constructor & Destructor Documentation

### PropertyField() \[1/3]

```cpp theme={null}
ansys::dpf::PropertyField::PropertyField(
    Client const *const client,
    dp_int number_of_entities = 0,
    dp_int data_size = 0
)
```

Create an empty property field with a client.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | client | [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Client.md) to create the property field on. |
| \[in] | number\_of\_entities | Number of entities. |
| \[in] | data\_size | Reserved size of data. |

### PropertyField() \[2/3]

```cpp theme={null}
ansys::dpf::PropertyField::PropertyField(
    dp_int number_of_entities = 0,
    dp_int data_size = 0
)
```

Create a property with number of entities and data size.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | number\_of\_entities | Number of entities. |
| \[in] | data\_size | Reserved size of data. |

### PropertyField() \[3/3]

```cpp theme={null}
ansys::dpf::PropertyField::PropertyField(
    int id,
    Client const *const client
)
```

Retrieve an existing instance of [PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1PropertyField.md) on a server. \


**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | id | Id of the [Field](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Field.md) object on the server's database. |
| \[in] | client | [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Client.md) instance designating the IP, port and protocol to use. |

## Member Function Documentation

### createPropertyFieldWithTransformation()

```cpp theme={null}
static PropertyField ansys::dpf::PropertyField::createPropertyFieldWithTransformation(
    Workflow transformation_wf,
    int reserved_number_of_entity = 0,
    int reserved_data_size = 0,
    std::string const & input_name_to_connect = "input_field",
    std::string const & output_name_to_eval = "transformed_field"
)
```

`static`

Instantiate a [PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1PropertyField.md) with Transformation. For each call to a getter, the workflow in input is connected this [PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1PropertyField.md) to input\_name\_to\_connect and the [PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1PropertyField.md) output in output\_name\_to\_eval is used as the getter instance.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | transformation\_wf | Transformation workflow. |
| \[in] | input\_name\_to\_connect | Name of the input of the workflow to connect. Should take a [Field](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Field.md). |
| \[in] | output\_name\_to\_eval | Name of the output of the workflow to evaluate. Should return a [Field](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Field.md). |

### data()

```cpp theme={null}
DpfVector < int > ansys::dpf::PropertyField::data() const
```

**Returns**

[DpfVector](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfVector.md) of data array.

### dataById()

```cpp theme={null}
const dp_int * ansys::dpf::PropertyField::dataById(
    dp_id entity_id,
    int & size
) const
```

**Returns**

Pointer to entity data given by id.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | entity\_id | Id of entity for which to get data. |
| \[out] | size | Size of return data. |

### dataByIndex()

```cpp theme={null}
const dp_int * ansys::dpf::PropertyField::dataByIndex(
    dp_index entity_index,
    int & size
) const
```

**Returns**

Pointer to entity data given by index.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | entity\_index | Index of entity for which to get data. |
| \[out] | size | Size of return data. |

### dataPointer()

```cpp theme={null}
DpfVector < int > ansys::dpf::PropertyField::dataPointer() const
```

**Returns**

[DpfVector](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfVector.md) of data array.

### dataSize()

```cpp theme={null}
dp_int ansys::dpf::PropertyField::dataSize() const
```

**Returns**

Size of the data container.

**Examples**

[ModelTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/ModelTest_8cpp-example.md).

### deep\_copy() \[1/2]

```cpp theme={null}
PropertyField ansys::dpf::PropertyField::deep_copy() const
```

Make a deep copy locally.

### deep\_copy() \[2/2]

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

Make a deep copy on a given client.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | client | Remote client |

### entityData()

```cpp theme={null}
void ansys::dpf::PropertyField::entityData(
    dp_index entity_index,
    DpfVector < int > & data
) const
```

**Returns**

[DpfVector](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfVector.md) of data array of an entity, by index.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | entity\_index | Index of entity for which to get data. |
| \[out] | data | Pointer to the data. |

### entityDataById()

```cpp theme={null}
void ansys::dpf::PropertyField::entityDataById(
    dp_id entity_id,
    DpfVector < int > & data
) const
```

**Returns**

[DpfVector](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfVector.md) of data array of an entity, by id.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | entity\_id | Id of entity for which to get data. |
| \[out] | data | Pointer to the data. |

### fieldDefinition()

```cpp theme={null}
FieldDefinition ansys::dpf::PropertyField::fieldDefinition() const
```

**Returns**

[FieldDefinition](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1FieldDefinition.md) of the field.

### fillCursor()

```cpp theme={null}
void ansys::dpf::PropertyField::fillCursor(
    dp_index index,
    PropFieldCursor & cursor
) const
```

Get data at a given index.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | index | Index of entity for which to get data. |
| \[out] | cursor | [PropFieldCursor](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1PropFieldCursor.md) with which to contain data. |

**Examples**

[DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/DataApis_8cpp-example.md).

### getData()

```cpp theme={null}
void ansys::dpf::PropertyField::getData(std::vector< dp_int > & values_to_fill) const
```

Get all data for property entities.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | values\_to\_fill | Property entity data. |

### getIds()

```cpp theme={null}
void ansys::dpf::PropertyField::getIds(std::vector< dp_id > & ids_to_fill) const
```

Get ids of property entities.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | ids\_to\_fill | Entity ids. |

### location()

```cpp theme={null}
Location ansys::dpf::PropertyField::location() const
```

**Returns**

[Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) of the property.

### name()

```cpp theme={null}
std::string ansys::dpf::PropertyField::name() const
```

**Returns**

Name of [CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1CustomTypeField.md).

### numberOfComponents()

```cpp theme={null}
dp_int ansys::dpf::PropertyField::numberOfComponents() const
```

**Returns**

Number of components in the property data.

### numberOfElementaryData()

```cpp theme={null}
dp_int ansys::dpf::PropertyField::numberOfElementaryData() const
```

**Returns**

Number of elementary data (size = number of components) contained in the [PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1PropertyField.md).

### push\_back() \[1/3]

```cpp theme={null}
void ansys::dpf::PropertyField::push_back(
    dp_id entity_id,
    const int * values,
    int size
)
```

Push back the entity data.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | entity\_id | Index of entity for which to push data. |
| \[in] | values | Ptr on data for entity. |
| \[in] | size | Number of entities. |

### push\_back() \[2/3]

```cpp theme={null}
void ansys::dpf::PropertyField::push_back(
    dp_id entity_id,
    int * values,
    int size
)
```

Push back the entity data.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | entity\_id | Index of entity for which to push data. |
| \[in] | values | Ptr on data for entity. |
| \[in] | size | Number of entities. |

### push\_back() \[3/3]

```cpp theme={null}
void ansys::dpf::PropertyField::push_back(
    dp_id entity_id,
    std::vector< int > const & values
)
```

Push back the entity data.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | entity\_id | Id of entity for which to push data. |
| \[in] | values | Vector of data for entity. |

### reserve()

```cpp theme={null}
void ansys::dpf::PropertyField::reserve(
    dp_int number_of_entities,
    dp_int overall_size = 0
)
```

Reserve the [Field](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Field.md). Only implemented for in process udage. To reserve the size for gRPC usage, use the constructor.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | number\_of\_entities | Number of entities. |
| \[in] | overall\_size | Total size of entity data. |

### resize()

```cpp theme={null}
void ansys::dpf::PropertyField::resize(
    dp_int number_of_entities,
    dp_int overall_size
)
```

Reserve the [Field](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Field.md).

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | number\_of\_entities | Number of entities. |
| \[in] | overall\_size | Total size of entity data. |

### scoping()

```cpp theme={null}
Scoping ansys::dpf::PropertyField::scoping() const
```

**Returns**

[Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Scoping.md) of the property.

### setData() \[1/2]

```cpp theme={null}
void ansys::dpf::PropertyField::setData(
    int const *const data,
    int size
)
```

Set the data of the property field.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | data | List of data. |
| \[in] | size | Size of list. |

### setData() \[2/2]

```cpp theme={null}
void ansys::dpf::PropertyField::setData(std::vector< int > const & data)
```

Set the data of the property field.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | data | Vector of data. |

### setDataPointer() \[1/2]

```cpp theme={null}
void ansys::dpf::PropertyField::setDataPointer(
    int *const data,
    int size
)
```

Set the data pointer of the property field.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | data | List of data. |
| \[in] | size | Size of list. |

### setDataPointer() \[2/2]

```cpp theme={null}
void ansys::dpf::PropertyField::setDataPointer(std::vector< int > const & data)
```

Set the data pointer of the property field.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | data | Vector of data. |

### setFieldDefinition()

```cpp theme={null}
void ansys::dpf::PropertyField::setFieldDefinition(FieldDefinition const & f)
```

Set the [FieldDefinition](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1FieldDefinition.md).

### setName()

```cpp theme={null}
void ansys::dpf::PropertyField::setName(const std::string & name)
```

Set name of [CustomTypeField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1CustomTypeField.md).

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | name | New name. |

### setScoping()

```cpp theme={null}
void ansys::dpf::PropertyField::setScoping(ansys::dpf::Scoping const & s)
```

Set the scoping of the property field.
