> ## 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::PropFieldCursor Class Reference

`#include <dpf_api.h>`

## Public Member Functions

| Type | Name |
| - | - |
| [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) \* | [data](#afb9be4ae3088090d4caf097455fe877f) () const |
| [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) & | [operator\[\]](#ac90d986242e37c0ff902cfb88fbf62b8) ([dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) index) const |
| [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) | [size](#a269c1fad1eab6210e2f0e271bd0a1b34) () const |
| [dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) | [id](#ae4525edd503db4d6a9892428facc2f92) () const |
| [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) | [numberOfComponents](#a8647f34e38981812b3a6c37b0d859567) () const |
| [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) | [numberOfElementaryData](#aba47f2547a400007ff5140bb23addaf6) () const |
| bool | [defined](#a21c28026e67c8724b6610f545647f289) () const |

## Detailed Description

Represents complete property data(id, size, num elementary data)

**Examples**

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

## Member Function Documentation

### data()

```cpp theme={null}
dp_int * ansys::dpf::PropFieldCursor::data() const
```

`inline`

**Returns**

Pointer to property data.

**Examples**

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

### defined()

```cpp theme={null}
bool ansys::dpf::PropFieldCursor::defined() const
```

`inline`

**Returns**

Indication that property defined

### id()

```cpp theme={null}
dp_id ansys::dpf::PropFieldCursor::id() const
```

`inline`

**Returns**

Id of property.

### numberOfComponents()

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

`inline`

**Returns**

Number of components in property data.

### numberOfElementaryData()

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

`inline`

**Returns**

Number of entries in property data.

### operator\[]\()

```cpp theme={null}
dp_int & ansys::dpf::PropFieldCursor::operator[](dp_int index) const
```

`inline`

**Returns**

Property data at given index.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | index | Index of data within [PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1PropertyField.md). |

### size()

```cpp theme={null}
dp_int ansys::dpf::PropFieldCursor::size() const
```

`inline`

**Returns**

Size of property data.

**Examples**

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