das2C
das core C utilities (v3)
Data Structures | Functions
dataset.h File Reference

Objects which define a iteration space. More...

#include <das2/dimension.h>
#include <das2/codec.h>
Include dependency graph for dataset.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  DasDs
 Das Datasets. More...
 
struct  dasds_iterator
 Dataset iterator structure. More...
 

Functions

DAS_API size_t DasDs_memIndexed (const DasDs *pThis)
 The apparent memory usage of all arrays in the dataset. More...
 
DAS_API DasErrCode DasDs_addDim (DasDs *pThis, DasDim *pDim)
 Add a physical dimension to the dataset. More...
 

Detailed Description

Objects which define a iteration space.

Function Documentation

◆ DasDs_memIndexed()

DAS_API size_t DasDs_memIndexed ( const DasDs pThis)

The apparent memory usage of all arrays in the dataset.

Note that this is less the the apparent memory usage of all variables in the dataset.

◆ DasDs_addDim()

DAS_API DasErrCode DasDs_addDim ( DasDs pThis,
DasDim pDim 
)

Add a physical dimension to the dataset.

Warning
The dataset takes ownership of the dimesion object and will delete it when the dataset is deleted. It is important not to provide a pointer to a stack variable.
Parameters
pThisA pointer to a dataset structure
pDimA existing dimension object created on the heap.
Returns
DAS_OKAY if the dimension

@membefof DasDs