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

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

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

## Members

* [data](#classansys-dpf-fieldcursor-1a815f0d760f113116cb5ed55b9ec9f584)
* [data\_first\_index](#classansys-dpf-fieldcursor-1aac74361ccc8826b47e26aff3215038a7)
* [defined](#classansys-dpf-fieldcursor-1afb033c6e098f2aebf9b8c6da12608891)
* [id](#classansys-dpf-fieldcursor-1a4a87616f5f17ac420f0499170efcf454)
* [n\_component](#classansys-dpf-fieldcursor-1a907fd15815ec3ffbd89cdc3a5b2ba5ca)
* [n\_elementary\_data](#classansys-dpf-fieldcursor-1a546e38c5c0b76a50350946e11718a9d3)
* [operator\[\]](#classansys-dpf-fieldcursor-1a00beb09a53d6fd59dcd80dd21f698895)
* [size](#classansys-dpf-fieldcursor-1a088f17f2b7eec6cd4470ece35f0dc01a)

## Friends

### Friend Field

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

## Public functions

### Function data

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

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

**Returns**:

Pointer to field data.

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

### Function operator\[]

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

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

**Returns**:

[Field](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-field.md) data at 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 data within field.

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

### Function size

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

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

**Returns**:

Size of field data.

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

### Function id

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

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

**Returns**:

Id of field.

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

### Function n\_component

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

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

**Returns**:

Number of components in field data.

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

### Function n\_elementary\_data

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

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

**Returns**:

Number of entries in field data.

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

### Function data\_first\_index

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

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

**Returns**:

Index of first entry in field data.

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

### Function defined

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

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

**Returns**:

Indication that field defined

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