ecl_file_kw.hpp File Reference
#include <stdbool.h>
#include <ert/util/util.h>
#include <ert/ecl/ecl_kw.hpp>
#include <ert/ecl/fortio.h>
Include dependency graph for ecl_file_kw.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct ecl_file_kw_struct ecl_file_kw_type
 
typedef struct inv_map_struct inv_map_type
 

Functions

inv_map_typeinv_map_alloc (void)
 
ecl_file_kw_typeinv_map_get_file_kw (inv_map_type *inv_map, const ecl_kw_type *ecl_kw)
 
void inv_map_free (inv_map_type *map)
 
bool ecl_file_kw_equal (const ecl_file_kw_type *kw1, const ecl_file_kw_type *kw2)
 
ecl_file_kw_typeecl_file_kw_alloc (const ecl_kw_type *ecl_kw, offset_type offset)
 
ecl_file_kw_typeecl_file_kw_alloc0 (const char *header, ecl_data_type data_type, int size, offset_type offset)
 
void ecl_file_kw_free (ecl_file_kw_type *file_kw)
 
void ecl_file_kw_free__ (void *arg)
 
ecl_kw_typeecl_file_kw_get_kw (ecl_file_kw_type *file_kw, fortio_type *fortio, inv_map_type *inv_map)
 
ecl_kw_typeecl_file_kw_get_kw_ptr (ecl_file_kw_type *file_kw)
 
ecl_file_kw_typeecl_file_kw_alloc_copy (const ecl_file_kw_type *src)
 
const char * ecl_file_kw_get_header (const ecl_file_kw_type *file_kw)
 
int ecl_file_kw_get_size (const ecl_file_kw_type *file_kw)
 
ecl_data_type ecl_file_kw_get_data_type (const ecl_file_kw_type *)
 
offset_type ecl_file_kw_get_offset (const ecl_file_kw_type *file_kw)
 
bool ecl_file_kw_ptr_eq (const ecl_file_kw_type *file_kw, const ecl_kw_type *ecl_kw)
 
void ecl_file_kw_replace_kw (ecl_file_kw_type *file_kw, fortio_type *target, ecl_kw_type *new_kw)
 
bool ecl_file_kw_fskip_data (const ecl_file_kw_type *file_kw, fortio_type *fortio)
 
void ecl_file_kw_inplace_fwrite (ecl_file_kw_type *file_kw, fortio_type *fortio)
 
void ecl_file_kw_fwrite (const ecl_file_kw_type *file_kw, FILE *stream)
 
ecl_file_kw_type ** ecl_file_kw_fread_alloc_multiple (FILE *stream, int num)
 
ecl_file_kw_typeecl_file_kw_fread_alloc (FILE *stream)
 
void ecl_file_kw_start_transaction (const ecl_file_kw_type *file_kw, int *ref_count)
 
void ecl_file_kw_end_transaction (ecl_file_kw_type *file_kw, int ref_count)
 

Typedef Documentation

◆ ecl_file_kw_type

typedef struct ecl_file_kw_struct ecl_file_kw_type

◆ inv_map_type

typedef struct inv_map_struct inv_map_type

Function Documentation

◆ ecl_file_kw_alloc()

ecl_file_kw_type * ecl_file_kw_alloc ( const ecl_kw_type ecl_kw,
offset_type  offset 
)

◆ ecl_file_kw_alloc0()

ecl_file_kw_type * ecl_file_kw_alloc0 ( const char *  header,
ecl_data_type  data_type,
int  size,
offset_type  offset 
)

◆ ecl_file_kw_alloc_copy()

ecl_file_kw_type * ecl_file_kw_alloc_copy ( const ecl_file_kw_type src)

◆ ecl_file_kw_end_transaction()

void ecl_file_kw_end_transaction ( ecl_file_kw_type file_kw,
int  ref_count 
)

◆ ecl_file_kw_equal()

bool ecl_file_kw_equal ( const ecl_file_kw_type kw1,
const ecl_file_kw_type kw2 
)

◆ ecl_file_kw_fread_alloc()

ecl_file_kw_type * ecl_file_kw_fread_alloc ( FILE *  stream)

◆ ecl_file_kw_fread_alloc_multiple()

ecl_file_kw_type ** ecl_file_kw_fread_alloc_multiple ( FILE *  stream,
int  num 
)

◆ ecl_file_kw_free()

void ecl_file_kw_free ( ecl_file_kw_type file_kw)

◆ ecl_file_kw_free__()

void ecl_file_kw_free__ ( void *  arg)

◆ ecl_file_kw_fskip_data()

bool ecl_file_kw_fskip_data ( const ecl_file_kw_type file_kw,
fortio_type fortio 
)

◆ ecl_file_kw_fwrite()

void ecl_file_kw_fwrite ( const ecl_file_kw_type file_kw,
FILE *  stream 
)

◆ ecl_file_kw_get_data_type()

ecl_data_type ecl_file_kw_get_data_type ( const ecl_file_kw_type )

◆ ecl_file_kw_get_header()

const char * ecl_file_kw_get_header ( const ecl_file_kw_type file_kw)

◆ ecl_file_kw_get_kw()

ecl_kw_type * ecl_file_kw_get_kw ( ecl_file_kw_type file_kw,
fortio_type fortio,
inv_map_type inv_map 
)

◆ ecl_file_kw_get_kw_ptr()

ecl_kw_type * ecl_file_kw_get_kw_ptr ( ecl_file_kw_type file_kw)

◆ ecl_file_kw_get_offset()

offset_type ecl_file_kw_get_offset ( const ecl_file_kw_type file_kw)

◆ ecl_file_kw_get_size()

int ecl_file_kw_get_size ( const ecl_file_kw_type file_kw)

◆ ecl_file_kw_inplace_fwrite()

void ecl_file_kw_inplace_fwrite ( ecl_file_kw_type file_kw,
fortio_type fortio 
)

◆ ecl_file_kw_ptr_eq()

bool ecl_file_kw_ptr_eq ( const ecl_file_kw_type file_kw,
const ecl_kw_type ecl_kw 
)

◆ ecl_file_kw_replace_kw()

void ecl_file_kw_replace_kw ( ecl_file_kw_type file_kw,
fortio_type target,
ecl_kw_type new_kw 
)

◆ ecl_file_kw_start_transaction()

void ecl_file_kw_start_transaction ( const ecl_file_kw_type file_kw,
int *  ref_count 
)

◆ inv_map_alloc()

inv_map_type * inv_map_alloc ( void  )

◆ inv_map_free()

void inv_map_free ( inv_map_type map)

◆ inv_map_get_file_kw()

ecl_file_kw_type * inv_map_get_file_kw ( inv_map_type inv_map,
const ecl_kw_type ecl_kw 
)