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

# DVS::IDataset Class Reference

`#include <dvs_dataset_interface.h>`

Inheritance diagram for DVS::IDataset:

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

## Public Member Functions

| Type | Name |
| - | - |
| | **IDataset** ()=default |
|  virtual | **\~IDataset** ()=default |
| | **IDataset** ([IDataset](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_dataset.md) &&)=default |
| [IDataset](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_dataset.md) & | **operator=** ([IDataset](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_dataset.md) &&)=default |
| | **IDataset** (const [IDataset](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_dataset.md) &)=default |
| [IDataset](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_dataset.md) & | **operator=** (const [IDataset](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_dataset.md) &)=default |
| virtual const char \* | [get\_unit\_system](#af69301cb1a2d466933e8fee162411a60) () const =0 |
| virtual uint32\_t | [get\_num\_ranks](#a423774f63a6f5275d4d4f33da65f37b4) () const =0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_ranks](#ac620a1f5fb513d636ed59d7b4552197a) (uint32\_t \*ranks) const =0 |
| virtual uint32\_t | [get\_num\_chunks\_per\_rank](#a5ec19061a478d6b2aea0976b9e79f73b) () const =0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_chunks\_per\_rank](#afb023f6b10fd4c072e8c7cb140d666ae) (uint32\_t \*chunks\_per\_rank) const =0 |
| virtual uint32\_t | [get\_num\_parts](#a69aa8f4d0ad2c4fd69e6443f662fbc1d) () const =0 |
| virtual const [DVS::IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object) \* | [get\_part](#af000ab1d7bfdd043cdc2b4f6cd4d682c) (uint32\_t index) const =0 |
| virtual uint32\_t | [get\_num\_plots](#a49e3b27865d865ba36dd5d7e5c659a6b) () const =0 |
| virtual const [DVS::IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object) \* | [get\_plot](#a8f3bb3e37530f0b1dd6630fb6f9925f5) (uint32\_t index) const =0 |
| virtual uint32\_t | [get\_num\_variables](#acd0c0e81b283bce8044d9b4de796574a) () const =0 |
| virtual const [DVS::IVar](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var.md) \* | [get\_var](#abfef24372147723533c9feebd55666c1) (uint32\_t index) const =0 |

> [accordion] Public Member Functions inherited from DVS::IObject
>
> Public Member Functions inherited from [DVS::IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object)
>
> | Type | Name |
> | - | - |
> | | **IObject** ()=default |
> | virtual | **\~IObject** ()=default |
> | | **IObject** ([IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object) &&)=default |
> | [IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object) & | **operator=** ([IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object) &&)=default |
> | | **IObject** (const [IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object) &)=default |
> | [IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object) & | **operator=** (const [IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object) &)=default |
> | virtual const char \* | [get\_name](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object#a39be8b08200f75b20a7b5cf715ba9dd3) () const =0 |
> | virtual [ObjectDefType](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object#aa897daa1f7d0467515fd108c29015348) | [get\_type](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object#a889c46624013cc3802c7164d153b95f6) () const =0 |
> | virtual const [DVS::IDataset](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_dataset.md) \* | [get\_dataset](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object#aea688a307b1cb02ae53e0e8fd3791e64) () const =0 |
> | virtual uint32\_t | [get\_num\_metadata](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object#a31db3b716cc815c2c73f826f24384f6a) () const =0 |
> | virtual const char \* | [get\_metadata\_key](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object#a04ee2919ffeb46d966d4675c8cd4420c) (uint32\_t index) const =0 |
> | virtual const char \* | [get\_metadata\_value](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object#a7a37d603ccf93f7f1ec9f962fa9d1f61) (uint32\_t index) const =0 |
> | virtual const char \* | [get\_metadata\_value](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object#aa33105e0510c3a2b0da022d5e9632bc8) (const char \*key) const =0 |

## Additional Inherited Members

> [accordion] Public Types inherited from DVS::IObject
>
> Public Types inherited from [DVS::IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object)
>
> | Type | Name |
> | - | - |
> | enum | [ObjectDefType](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object#aa897daa1f7d0467515fd108c29015348) \{ [PART](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object#aa897daa1f7d0467515fd108c29015348a8b2484e08a16329d2d91c18c254f5ca6) , [PLOT](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object#aa897daa1f7d0467515fd108c29015348abe80fa1e67dae7efb56fdb2936914cae) , [CASE](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object#aa897daa1f7d0467515fd108c29015348a03dcfd36d493cd1d828af236e2c357fd) } |

## Detailed Description

This object's lifetime is controlled by the query it is returned from. If the filter or uri of the query is changed this object will be destroyed. If this is a chained query and any of the parent queries are modified this object will also be destroyed. See [dvs\_query\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dvs__query__interface_8h) for more information.

Definition at line [43](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dvs__dataset__interface_8h_source.md) of file [dvs\_dataset\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dvs__dataset__interface_8h_source.md).

## Member Function Documentation

### get\_chunks\_per\_rank()

```cpp theme={null}
virtual dvs_ret DVS::IDataset::get_chunks_per_rank(uint32_t * chunks_per_rank) const
```

`pure virtual`

Get the number of chunks for each rank.

This method returns an array of the max number of chunks for each rank based on the filters of the query. The values correspond to the ranks returned from [IDataset::get\_ranks()](#ac620a1f5fb513d636ed59d7b4552197a). Example: if get\_ranks returns ranks: \[0 2 5] then this might return \[1 1 2] based on the number of chunks this dataset was written with.

**Parameters**

| Name | Description |
| - | - |
| chunks\_per\_rank | buffer of size [DVS::IDataset::get\_num\_chunks\_per\_rank()](#a5ec19061a478d6b2aea0976b9e79f73b), returns the number of chunks for each rank for this query/dataset |

**Returns**

dvs\_ret DVS\_NONE if no errors, otherwise see [dynamic\_visualization\_store\_error\_codes.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h)

### get\_num\_chunks\_per\_rank()

```cpp theme={null}
virtual uint32_t DVS::IDataset::get_num_chunks_per_rank() const
```

`pure virtual`

Get the size of the chunks\_per\_rank array for [get\_chunks\_per\_rank()](#afb023f6b10fd4c072e8c7cb140d666ae)

The size of this should match the number of ranks this dataset has

**Returns**

uint32\_t the number of chunks per ranks

### get\_num\_parts()

```cpp theme={null}
virtual uint32_t DVS::IDataset::get_num_parts() const
```

`pure virtual`

Get the number of parts for this dataset.

**Returns**

uint32\_t the number of parts

### get\_num\_plots()

```cpp theme={null}
virtual uint32_t DVS::IDataset::get_num_plots() const
```

`pure virtual`

Get the number of plots for this datasets.

**Returns**

uint32\_t the number of plots for this dataset

### get\_num\_ranks()

```cpp theme={null}
virtual uint32_t DVS::IDataset::get_num_ranks() const
```

`pure virtual`

Get the number of ranks for the dataset.

**Returns**

uint32\_t number of ranks

### get\_num\_variables()

```cpp theme={null}
virtual uint32_t DVS::IDataset::get_num_variables() const
```

`pure virtual`

Get the number of variables for this dataset.

**Returns**

uint32\_t the number of variable definitions

### get\_part()

```cpp theme={null}
virtual const DVS::IObject * DVS::IDataset::get_part(uint32_t index) const
```

`pure virtual`

Get a part by index.

**Parameters**

| Name | Description |
| - | - |
| index | index of the part |

**Returns**

[DVS::IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object)\* pointer to part object or nullptr if not found

### get\_plot()

```cpp theme={null}
virtual const DVS::IObject * DVS::IDataset::get_plot(uint32_t index) const
```

`pure virtual`

Get the plot object.

**Parameters**

| Name | Description |
| - | - |
| index | the index of the plot to retrieve |

**Returns**

[DVS::IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object)\* pointer to [DVS::IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object) plot or nullptr

### get\_ranks()

```cpp theme={null}
virtual dvs_ret DVS::IDataset::get_ranks(uint32_t * ranks) const
```

`pure virtual`

Get an array of the ranks for this dataset query.

This method returns an array of the rank numbers for this dataset based on the query

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | ranks | buffer of size [DVS::IDataset::get\_num\_ranks()](#a423774f63a6f5275d4d4f33da65f37b4), the ranks avaialble for this query/dataset |

**Returns**

dvs\_ret DVS\_NONE if no errors, otherwise see [dynamic\_visualization\_store\_error\_codes.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h)

### get\_unit\_system()

```cpp theme={null}
virtual const char * DVS::IDataset::get_unit_system() const
```

`pure virtual`

Get the unit system of the dataset.

**Returns**

const char\* unit system of the dataset

### get\_var()

```cpp theme={null}
virtual const DVS::IVar * DVS::IDataset::get_var(uint32_t index) const
```

`pure virtual`

Get the var object.

**Parameters**

| Name | Description |
| - | - |
| index | the index of the var to retrieve |

**Returns**

[DVS::IVar](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var.md)\* pointer to [DVS::IVar](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var.md) object or nullptr

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

* D:/ANSYSDev/Product-src/ensight/user\_defined\_src/readers/dvs/include/[dvs\_dataset\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dvs__dataset__interface_8h_source.md)
