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

# libuserd::Query Class Reference

Part of [LibUserd](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/group__userd.md)

`#include <libuserd_interface.h>`

Inheritance diagram for libuserd::Query:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/ensight/ensight-apis/2025-r2/classlibuserd_1_1_query.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=49bcf1e3bd5f95ad7adb928cb7adc8c4)

## Public Member Functions

| Type | Name |
| - | - |
| size\_t | [num\_points](#a6752296f06ad53305522f14cc45b3867) () override num\_points |
| ErrorCode | [data](#acbe09d10fcd3e9a7260c7b03b1d19661) (float \*x, float \*y) override data |

## Friends

| Type | Name |
| - | - |
| class | [Reader](#a35cb182752752c74a30050705acc3c06) |

## Detailed Description

This class is basically a wrapper around an query (f(x)=y) that can change over time.

Definition at line [76](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/libuserd__interface_8h_source) of file [libuserd\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/libuserd__interface_8h_source).

## Member Function Documentation

### data()

```cpp theme={null}
ErrorCode libuserd::Query::data(
    float * x,
    float * y
)
```

`override`

data

Return the data points for the query.

Note: the x and y arrays must be at least [num\_points()](#a6752296f06ad53305522f14cc45b3867) in size.

**Returns**

ErrorCode

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | float | \* x |
| \[out] | float | \* y |

### num\_points()

```cpp theme={null}
size_t libuserd::Query::num_points()
```

`override`

num\_points

Return the number of points in the query

**Returns**

size\_t

## Friends And Related Symbol Documentation

### Reader

```cpp theme={null}
friend class Reader
```

`friend`

Definition at line [108](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/libuserd__interface_8h_source) of file [libuserd\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/libuserd__interface_8h_source).

The documentation for this class was generated from the following file:

* D:/ANSYSDev/Product-src/ensight/server/userd/include/[libuserd\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/libuserd__interface_8h_source)
