libdas2
das2 core C utilities
|
#include <das2/dataset.h>
Dataset iterator structure.
Since dataset rank and shape is a union of the shape of it's components iterating over datasets can be tricky. This structure and it's associated functions are provided to simplify this task. Usage is demonstrated by the example below:
Public Member Functions | |
void | dasds_iter_init (dasds_iterator *pIter, const DasDs *pDs) |
Initialize a const dataset iterator. More... | |
bool | dasds_iter_next (dasds_iterator *pIter) |
Increment the iterator's index by one position, rolling as needed at data boundaries. More... | |
Data Fields | |
bool | done |
If true the value in index is valid, false otherwise. | |
ptrdiff_t | index [DASIDX_MAX] |
A dataset bulk iteration index suitable for use in DasVar functions like DasVar_getDatum. | |