File: occonstraints.h

package info (click to toggle)
netcdf-parallel 1%3A4.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 101,668 kB
  • sloc: ansic: 200,241; sh: 10,807; yacc: 2,522; makefile: 1,306; lex: 1,153; xml: 173; awk: 2
file content (39 lines) | stat: -rw-r--r-- 1,154 bytes parent folder | download | duplicates (2)
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
39
/* Copyright 2009, UCAR/Unidata and OPeNDAP, Inc.
   See the COPYRIGHT file for more information. */

#ifndef OCCONSTRAINTS_H
#define OCCONSTRAINTS_H 1

/*! Specifies an OCslice. */
typedef struct OCslice {
    size_t first;
    size_t count;
    size_t stride;
    size_t stop; /* == first + count */
    size_t declsize;  /* from defining dimension, if any.*/
} OCslice;

/*! Specifies a form of path where each element can have a set of associated indices */
typedef struct OCpath {
    NClist* names;
    NClist* indexsets; /* oclist<oclist<Slice>> */
} OCpath;

/*! Specifies a ProjectionClause. */
typedef struct OCprojectionclause {
    char* target; /* "variable name" as mentioned in the projection */
    NClist* indexsets; /* oclist<oclist<OCslice>> */
    struct OCnode* node; /* node with name matching target, if any. */
    int    gridconstraint; /*  used only for testing purposes */
} OCprojectionclause;

/*! Selection is the node type for selection expression trees */
typedef struct OCselectionclause {
    int op;
    char* value;
    struct OCselectionclause* lhs;
    NClist* rhs;
} OCselectionclause;


#endif /*OCCONSTRAINTS_H*/