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

`#include <dpf_api.h>`

## Public Member Functions

| Type | Name |
| - | - |
| [dp\_double](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#acb480013bfed185b5e34a0bdcb0e3790) \* | [data](#a815f0d760f113116cb5ed55b9ec9f584) () const |
| [dp\_double](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#acb480013bfed185b5e34a0bdcb0e3790) & | [operator\[\]](#a00beb09a53d6fd59dcd80dd21f698895) ([dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) index) const |
| [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) | [size](#a088f17f2b7eec6cd4470ece35f0dc01a) () const |
| [dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) | [id](#a4a87616f5f17ac420f0499170efcf454) () const |
| [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) | [n\_component](#a907fd15815ec3ffbd89cdc3a5b2ba5ca) () const |
| [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) | [n\_elementary\_data](#a546e38c5c0b76a50350946e11718a9d3) () const |
| [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) | [data\_first\_index](#aac74361ccc8826b47e26aff3215038a7) () const |
| bool | [defined](#afb033c6e098f2aebf9b8c6da12608891) () const |

## Detailed Description

Represents a complete entity data (id, size, num elementary data).

**Examples**

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

## Member Function Documentation

### data()

```cpp theme={null}
dp_double * ansys::dpf::FieldCursor::data() const
```

`inline`

**Returns**

Pointer to field data.

**Examples**

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

### data\_first\_index()

```cpp theme={null}
dp_int ansys::dpf::FieldCursor::data_first_index() const
```

`inline`

**Returns**

Index of first entry in field data.

### defined()

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

`inline`

**Returns**

Indication that field defined

### id()

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

`inline`

**Returns**

Id of field.

**Examples**

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

### n\_component()

```cpp theme={null}
dp_int ansys::dpf::FieldCursor::n_component() const
```

`inline`

**Returns**

Number of components in field data.

### n\_elementary\_data()

```cpp theme={null}
dp_int ansys::dpf::FieldCursor::n_elementary_data() const
```

`inline`

**Returns**

Number of entries in field data.

**Examples**

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

### operator\[]\()

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

`inline`

**Returns**

[Field](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Field.md) data at given index.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | index | Index of data within field. |

### size()

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

`inline`

**Returns**

Size of field data.

**Examples**

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