HiRep 0.1
Loading...
Searching...
No Matches
data_storage.h
1
2#ifndef DATA_STORAGE_H
3#define DATA_STORAGE_H
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8typedef enum { STORE, DONTSTORE } storage_switch;
9
10typedef struct data_storage {
11 int n;
12 int *ni;
13 double *data;
15
16typedef struct data_storage_array {
17 int n;
18 data_storage *element;
20
21data_storage_array *allocate_data_storage_array(int n);
22void allocate_data_storage_element(data_storage_array *cont, int id, int n, int *ni);
23void free_data_storage(data_storage_array *dat);
24double *data_storage_element(data_storage_array *dat, int iel, int *ni);
25void print_data_storage(data_storage_array *dat);
26
27#ifdef __cplusplus
28}
29#endif
30#endif
Definition data_storage.h:16
Definition data_storage.h:10