node_data.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2011 Equinor ASA, Norway.
3
4 The file 'node_data.h' is part of ERT - Ensemble based Reservoir Tool.
5
6 ERT is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 ERT is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE.
14
15 See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
16 for more details.
17*/
18
19#ifndef ERT_NODE_DATA_H
20#define ERT_NODE_DATA_H
21
22#include <stdbool.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28typedef void * ( copyc_ftype ) (const void *);
29typedef void ( free_ftype ) (void *);
30
31
32
33typedef struct node_data_struct node_data_type;
34
35
40node_data_type * node_data_alloc_copy(const node_data_type * node , bool deep_copy);
45
53
54
55
56#ifdef __cplusplus
57}
58#endif
59#endif
node_data_type * node_data_alloc_double(double)
node_data_type * node_data_alloc_buffer(const void *, int)
void * node_data_get_ptr(const node_data_type *)
const void * node_data_get_const_ptr(const node_data_type *)
node_data_type * node_data_alloc_copy(const node_data_type *node, bool deep_copy)
char * node_data_get_string(const node_data_type *)
node_data_type * node_data_alloc_string(const char *)
double node_data_get_double(const node_data_type *)
node_data_type * node_data_alloc_int(int)
void node_data_free_container(node_data_type *)
node_data_type * node_data_alloc_shallow_copy(const node_data_type *)
int node_data_get_int(const node_data_type *)
void node_data_free(node_data_type *)
node_data_type * node_data_alloc_ptr(const void *, copyc_ftype *, free_ftype *)
void() free_ftype(void *)
Definition: node_data.hpp:29
void *() copyc_ftype(const void *)
Definition: node_data.hpp:28
int node_data_fetch_and_inc_int(node_data_type *node_data)
struct node_data_struct node_data_type
Definition: node_data.hpp:33
node_data_type * node_data_alloc_deep_copy(const node_data_type *)