geo_polygon_collection.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2014 Equinor ASA, Norway.
3
4 The file 'geo_polygon_collection.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_GEO_POLYGON_COLLECTION_H
20#define ERT_GEO_POLYGON_COLLECTION_H
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#include <stdbool.h>
27
29
31
32
33
34 typedef struct geo_polygon_collection_struct geo_polygon_collection_type;
35
41 bool geo_polygon_collection_add_polygon( geo_polygon_collection_type * polygons , geo_polygon_type * polygon , bool polygon_owner );
44
45 UTIL_IS_INSTANCE_HEADER( geo_polygon_collection );
46
47#ifdef __cplusplus
48}
49#endif
50#endif
const char *const name
Definition: cJSON.h:258
int index
Definition: cJSON.h:168
struct geo_polygon_struct geo_polygon_type
Definition: geo_polygon.hpp:30
geo_polygon_collection_type * geo_polygon_collection_alloc()
int geo_polygon_collection_size(const geo_polygon_collection_type *polygons)
UTIL_IS_INSTANCE_HEADER(geo_polygon_collection)
bool geo_polygon_collection_has_polygon(const geo_polygon_collection_type *polygons, const char *name)
geo_polygon_type * geo_polygon_collection_create_polygon(geo_polygon_collection_type *polygons, const char *name)
struct geo_polygon_collection_struct geo_polygon_collection_type
Definition: geo_polygon_collection.hpp:34
void geo_polygon_collection_free(geo_polygon_collection_type *polygons)
geo_polygon_type * geo_polygon_collection_get_polygon(const geo_polygon_collection_type *polygons, const char *polygon_name)
geo_polygon_type * geo_polygon_collection_iget_polygon(const geo_polygon_collection_type *polygons, int index)
bool geo_polygon_collection_add_polygon(geo_polygon_collection_type *polygons, geo_polygon_type *polygon, bool polygon_owner)