21 #ifndef _das_dataset_h_
22 #define _das_dataset_h_
24 #include <das2/dimension.h>
133 typedef struct dataset {
194 const char* sId,
const char* sGroupId,
int nRank
309 typedef struct dasds_iterator_t{
316 ptrdiff_t index[DASIDX_MAX];
319 ptrdiff_t shape[DASIDX_MAX];
369 const char* DasDs_id(
const DasDs* pThis);
372 #define DasDs_rank(P) P->nRank
Das2 Physical Dimensions.
Definition: dimension.h:121
Das2 Datasets.
Definition: dataset.h:133
DasDim * DasDs_makeDim(DasDs *pThis, enum dim_type dType, const char *sId)
Make a new dimension within this dataset.
bool dasds_iter_next(dasds_iterator *pIter)
Increment the iterator's index by one position, rolling as needed at data boundaries.
void dasds_iter_init(dasds_iterator *pIter, const DasDs *pDs)
Initialize a const dataset iterator.
Base structure for Stream Header Items.
Definition: descriptor.h:80
DasDim * DasDs_getDimById(DasDs *pThis, const char *sId)
Get a dimension by string id.
DasDs * new_DasDs(const char *sId, const char *sGroupId, int nRank)
Create a new dataset object.
Dataset iterator structure.
Definition: dataset.h:309
char * DasDs_toStr(const DasDs *pThis, char *sBuf, int nLen)
Print a string reprenestation of this dataset.
bool DasDs_addAry(DasDs *pThis, DasAry *pAry)
Add an array to the dataset, stealing it's reference.
size_t DasDs_numDims(const DasDs *pThis, enum dim_type vt)
Get the number of physical dimensions in this dataset.
bool done
If true the value in index is valid, false otherwise.
Definition: dataset.h:312
int DasDs_copyInProps(DasDs *pThis, const DasDesc *pOther)
Copy in dataset properties from some other descriptor.
const char * DasDs_group(const DasDs *pThis)
Get the data set group id.
const DasDim * DasDs_getDim(const DasDs *pThis, size_t idx, enum dim_type vt)
Get a dimension by index.
int DasDs_shape(const DasDs *pThis, ptrdiff_t *pShape)
Return current valid ranges for whole data set iteration.
void del_DasDs(DasDs *pThis)
Delete a Correlated Data object, cleaning up it's memory.
ptrdiff_t DasDs_lengthIn(const DasDs *pThis, int nIdx, ptrdiff_t *pLoc)
Return the current max value index value + 1 for any partial index.
Dynamic recursive ragged arrays.
Definition: array.h:193