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