vector.hpp File Reference
#include <ert/util/node_data.hpp>
#include <ert/util/type_macros.hpp>
#include <ert/util/int_vector.hpp>
Include dependency graph for vector.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void() vector_func_type(void *, void *)
 
typedef int() vector_cmp_ftype(const void *, const void *)
 
typedef struct vector_struct vector_type
 

Functions

vector_typevector_alloc_new (void)
 
void vector_grow_NULL (vector_type *vector, int new_size)
 
vector_typevector_alloc_NULL_initialized (int size)
 
int vector_append_ref (vector_type *, const void *)
 
int vector_append_owned_ref (vector_type *, const void *, free_ftype *del)
 
int vector_append_copy (vector_type *, const void *, copyc_ftype *, free_ftype *)
 
void vector_iset_ref (vector_type *, int, const void *)
 
void vector_iset_owned_ref (vector_type *, int, const void *, free_ftype *del)
 
void vector_iset_copy (vector_type *, int, const void *, copyc_ftype *, free_ftype *)
 
void vector_safe_iset_copy (vector_type *vector, int index, const void *data, copyc_ftype *copyc, free_ftype *del)
 
void vector_safe_iset_owned_ref (vector_type *vector, int index, const void *data, free_ftype *del)
 
void vector_safe_iset_ref (vector_type *vector, int index, const void *data)
 
void vector_insert_ref (vector_type *, int, const void *)
 
void vector_insert_owned_ref (vector_type *, int, const void *, free_ftype *del)
 
void vector_insert_copy (vector_type *, int, const void *, copyc_ftype *, free_ftype *)
 
void vector_insert_buffer (vector_type *vector, int index, const void *buffer, int buffer_size)
 
void vector_push_front_ref (vector_type *, const void *)
 
void vector_push_front_owned_ref (vector_type *, const void *, free_ftype *del)
 
void vector_push_front_copy (vector_type *, const void *, copyc_ftype *, free_ftype *)
 
void vector_clear (vector_type *vector)
 
void vector_free (vector_type *)
 
void vector_free__ (void *arg)
 
void vector_append_buffer (vector_type *, const void *, int)
 
void vector_push_buffer (vector_type *, const void *, int)
 
void * vector_safe_iget (const vector_type *vector, int index)
 
const void * vector_safe_iget_const (const vector_type *vector, int index)
 
const void * vector_iget_const (const vector_type *, int)
 
void * vector_iget (const vector_type *, int)
 
void vector_idel (vector_type *vector, int index)
 
void vector_shrink (vector_type *vector, int new_size)
 
void * vector_get_last (const vector_type *)
 
const void * vector_get_last_const (const vector_type *)
 
int vector_get_size (const vector_type *)
 
void * vector_pop_back (vector_type *)
 
void * vector_pop_front (vector_type *)
 
void vector_sort (vector_type *vector, vector_cmp_ftype *cmp)
 
int_vector_type * vector_alloc_sort_perm (const vector_type *vector, vector_cmp_ftype *cmp)
 
void vector_permute (vector_type *vector, const int_vector_type *perm_vector)
 
void vector_inplace_reverse (vector_type *vector)
 
vector_typevector_alloc_copy (const vector_type *src, bool deep_copy)
 
void vector_iset_buffer (vector_type *vector, int index, const void *buffer, int buffer_size)
 
int vector_find (const vector_type *vector, const void *ptr)
 
 UTIL_IS_INSTANCE_HEADER (vector)
 
 UTIL_SAFE_CAST_HEADER (vector)
 

Typedef Documentation

◆ vector_cmp_ftype

typedef int() vector_cmp_ftype(const void *, const void *)

◆ vector_func_type

typedef void() vector_func_type(void *, void *)

◆ vector_type

typedef struct vector_struct vector_type

Function Documentation

◆ UTIL_IS_INSTANCE_HEADER()

UTIL_IS_INSTANCE_HEADER ( vector  )

◆ UTIL_SAFE_CAST_HEADER()

UTIL_SAFE_CAST_HEADER ( vector  )

◆ vector_alloc_copy()

vector_type * vector_alloc_copy ( const vector_type src,
bool  deep_copy 
)

◆ vector_alloc_new()

vector_type * vector_alloc_new ( void  )

◆ vector_alloc_NULL_initialized()

vector_type * vector_alloc_NULL_initialized ( int  size)

◆ vector_alloc_sort_perm()

int_vector_type * vector_alloc_sort_perm ( const vector_type vector,
vector_cmp_ftype cmp 
)

◆ vector_append_buffer()

void vector_append_buffer ( vector_type ,
const void *  ,
int   
)

◆ vector_append_copy()

int vector_append_copy ( vector_type ,
const void *  ,
copyc_ftype ,
free_ftype  
)

◆ vector_append_owned_ref()

int vector_append_owned_ref ( vector_type ,
const void *  ,
free_ftype del 
)

◆ vector_append_ref()

int vector_append_ref ( vector_type ,
const void *   
)

◆ vector_clear()

void vector_clear ( vector_type vector)

◆ vector_find()

int vector_find ( const vector_type vector,
const void *  ptr 
)

◆ vector_free()

void vector_free ( vector_type )

◆ vector_free__()

void vector_free__ ( void *  arg)

◆ vector_get_last()

void * vector_get_last ( const vector_type )

◆ vector_get_last_const()

const void * vector_get_last_const ( const vector_type )

◆ vector_get_size()

int vector_get_size ( const vector_type )

◆ vector_grow_NULL()

void vector_grow_NULL ( vector_type vector,
int  new_size 
)

◆ vector_idel()

void vector_idel ( vector_type vector,
int  index 
)

◆ vector_iget()

void * vector_iget ( const vector_type ,
int   
)

◆ vector_iget_const()

const void * vector_iget_const ( const vector_type ,
int   
)

◆ vector_inplace_reverse()

void vector_inplace_reverse ( vector_type vector)

◆ vector_insert_buffer()

void vector_insert_buffer ( vector_type vector,
int  index,
const void *  buffer,
int  buffer_size 
)

◆ vector_insert_copy()

void vector_insert_copy ( vector_type ,
int  ,
const void *  ,
copyc_ftype ,
free_ftype  
)

◆ vector_insert_owned_ref()

void vector_insert_owned_ref ( vector_type ,
int  ,
const void *  ,
free_ftype del 
)

◆ vector_insert_ref()

void vector_insert_ref ( vector_type ,
int  ,
const void *   
)

◆ vector_iset_buffer()

void vector_iset_buffer ( vector_type vector,
int  index,
const void *  buffer,
int  buffer_size 
)

◆ vector_iset_copy()

void vector_iset_copy ( vector_type ,
int  ,
const void *  ,
copyc_ftype ,
free_ftype  
)

◆ vector_iset_owned_ref()

void vector_iset_owned_ref ( vector_type ,
int  ,
const void *  ,
free_ftype del 
)

◆ vector_iset_ref()

void vector_iset_ref ( vector_type ,
int  ,
const void *   
)

◆ vector_permute()

void vector_permute ( vector_type vector,
const int_vector_type *  perm_vector 
)

◆ vector_pop_back()

void * vector_pop_back ( vector_type )

◆ vector_pop_front()

void * vector_pop_front ( vector_type )

◆ vector_push_buffer()

void vector_push_buffer ( vector_type ,
const void *  ,
int   
)

◆ vector_push_front_copy()

void vector_push_front_copy ( vector_type ,
const void *  ,
copyc_ftype ,
free_ftype  
)

◆ vector_push_front_owned_ref()

void vector_push_front_owned_ref ( vector_type ,
const void *  ,
free_ftype del 
)

◆ vector_push_front_ref()

void vector_push_front_ref ( vector_type ,
const void *   
)

◆ vector_safe_iget()

void * vector_safe_iget ( const vector_type vector,
int  index 
)

◆ vector_safe_iget_const()

const void * vector_safe_iget_const ( const vector_type vector,
int  index 
)

◆ vector_safe_iset_copy()

void vector_safe_iset_copy ( vector_type vector,
int  index,
const void *  data,
copyc_ftype copyc,
free_ftype del 
)

◆ vector_safe_iset_owned_ref()

void vector_safe_iset_owned_ref ( vector_type vector,
int  index,
const void *  data,
free_ftype del 
)

◆ vector_safe_iset_ref()

void vector_safe_iset_ref ( vector_type vector,
int  index,
const void *  data 
)

◆ vector_shrink()

void vector_shrink ( vector_type vector,
int  new_size 
)

◆ vector_sort()

void vector_sort ( vector_type vector,
vector_cmp_ftype cmp 
)