forked from Unidata/netcdf-c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
odom.h
38 lines (30 loc) · 1.13 KB
/
odom.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*********************************************************************
* Copyright 2009, UCAR/Unidata
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
*********************************************************************/
#ifndef ODOM_H
#define ODOM_H 1
typedef struct Odometer {
int rank;
int offset;
struct Odometer* origin;
size_t start[NC_MAX_VAR_DIMS];
size_t count[NC_MAX_VAR_DIMS];
size_t index[NC_MAX_VAR_DIMS];
size_t declsize[NC_MAX_VAR_DIMS];
} Odometer;
/*Forward*/
struct Dimset;
/* Odometer operators*/
extern Odometer* newodometer(struct Dimset*, size_t* startp, size_t* countp);
extern Odometer* newsubodometer(Odometer*, struct Dimset*, int, int);
extern Odometer* newsubodometer(Odometer*, struct Dimset*,
int start, int stop);
extern void odometerfree(Odometer*);
extern char* odometerprint(Odometer* odom);
extern int odometermore(Odometer* odom);
extern int odometerincr(Odometer* odom);
extern size_t odometeroffset(Odometer* odom);
extern size_t* odometerstartvector(Odometer* odom);
extern size_t* odometercountvector(Odometer* odom);
#endif /*ODOM_H*/