| 1 |
#ifndef P7_GBANDS_INCLUDED |
| 2 |
#define P7_GBANDS_INCLUDED |
| 3 |
|
| 4 |
typedef struct { |
| 5 |
int nseg; |
| 6 |
int nrow; |
| 7 |
int L; |
| 8 |
int M; |
| 9 |
int64_t ncell; |
| 10 |
|
| 11 |
int *imem; |
| 12 |
int *kmem; |
| 13 |
|
| 14 |
int segalloc; |
| 15 |
int rowalloc; |
| 16 |
} P7_GBANDS; |
| 17 |
|
| 18 |
#define p7_GBANDS_NK 2 |
| 19 |
|
| 20 |
extern P7_GBANDS *p7_gbands_Create (void); |
| 21 |
extern int p7_gbands_Reuse (P7_GBANDS *bnd); |
| 22 |
extern int p7_gbands_Append (P7_GBANDS *bnd, int i, int ka, int kb); |
| 23 |
extern int p7_gbands_Prepend (P7_GBANDS *bnd, int i, int ka, int kb); |
| 24 |
extern int p7_gbands_Reverse (P7_GBANDS *bnd); |
| 25 |
extern int p7_gbands_GrowSegs(P7_GBANDS *bnd); |
| 26 |
extern int p7_gbands_GrowRows(P7_GBANDS *bnd); |
| 27 |
extern void p7_gbands_Destroy (P7_GBANDS *bnd); |
| 28 |
extern int p7_gbands_Dump(FILE *ofp, P7_GBANDS *bnd); |
| 29 |
|
| 30 |
#endif |