ecl_sum_vector.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2014 Equinor ASA, Norway.
3
4 The file 'ecl_sum_vector.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_ECL_SUM_VECTOR_H
20#define ERT_ECL_SUM_VECTOR_H
21
23
24#include <ert/ecl/ecl_sum.hpp>
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30typedef struct ecl_sum_vector_struct ecl_sum_vector_type;
31
33 ecl_sum_vector_type * ecl_sum_vector_alloc(const ecl_sum_type * ecl_sum, bool add_keywords);
34
35 bool ecl_sum_vector_add_key( ecl_sum_vector_type * keylist, const char * key);
36 void ecl_sum_vector_add_keys( ecl_sum_vector_type * keylist, const char * pattern);
37
38 const char* ecl_sum_vector_iget_key(const ecl_sum_vector_type * ecl_sum_vector, int index);
39 bool ecl_sum_vector_iget_is_rate(const ecl_sum_vector_type * ecl_sum_vector, int index);
41 int ecl_sum_vector_get_size(const ecl_sum_vector_type * ecl_sum_vector);
42 bool ecl_sum_vector_iget_valid(const ecl_sum_vector_type * ecl_sum_vector, int index);
43
45
46
47 UTIL_IS_INSTANCE_HEADER( ecl_sum_vector);
48
49
50#ifdef __cplusplus
51}
52#endif
53#endif
int index
Definition: cJSON.h:168
struct ecl_sum_vector_struct ecl_sum_vector_type
Definition: ecl_sum.hpp:56
struct ecl_sum_struct ecl_sum_type
Definition: ecl_sum.hpp:58
void ecl_sum_vector_free(ecl_sum_vector_type *keylist)
UTIL_IS_INSTANCE_HEADER(ecl_sum_vector)
ecl_sum_vector_type * ecl_sum_vector_alloc_layout_copy(const ecl_sum_vector_type *src_vector, const ecl_sum_type *ecl_sum)
bool ecl_sum_vector_iget_is_rate(const ecl_sum_vector_type *ecl_sum_vector, int index)
void ecl_sum_vector_add_keys(ecl_sum_vector_type *keylist, const char *pattern)
int ecl_sum_vector_iget_param_index(const ecl_sum_vector_type *ecl_sum_vector, int index)
bool ecl_sum_vector_add_key(ecl_sum_vector_type *keylist, const char *key)
bool ecl_sum_vector_iget_valid(const ecl_sum_vector_type *ecl_sum_vector, int index)
int ecl_sum_vector_get_size(const ecl_sum_vector_type *ecl_sum_vector)
const char * ecl_sum_vector_iget_key(const ecl_sum_vector_type *ecl_sum_vector, int index)
ecl_sum_vector_type * ecl_sum_vector_alloc(const ecl_sum_type *ecl_sum, bool add_keywords)