#include "dm_services.h"
#include "include/vector.h"
bool dal_vector_construct(
struct vector *vector,
struct dc_context *ctx,
uint32_t capacity,
uint32_t struct_size)
{ … }
static bool dal_vector_presized_costruct(struct vector *vector,
struct dc_context *ctx,
uint32_t count,
void *initial_value,
uint32_t struct_size)
{ … }
struct vector *dal_vector_presized_create(
struct dc_context *ctx,
uint32_t size,
void *initial_value,
uint32_t struct_size)
{ … }
struct vector *dal_vector_create(
struct dc_context *ctx,
uint32_t capacity,
uint32_t struct_size)
{ … }
void dal_vector_destruct(
struct vector *vector)
{ … }
void dal_vector_destroy(
struct vector **vector)
{ … }
uint32_t dal_vector_get_count(
const struct vector *vector)
{ … }
void *dal_vector_at_index(
const struct vector *vector,
uint32_t index)
{ … }
bool dal_vector_remove_at_index(
struct vector *vector,
uint32_t index)
{ … }
void dal_vector_set_at_index(
const struct vector *vector,
const void *what,
uint32_t index)
{ … }
static inline uint32_t calc_increased_capacity(
uint32_t old_capacity)
{ … }
bool dal_vector_insert_at(
struct vector *vector,
const void *what,
uint32_t position)
{ … }
bool dal_vector_append(
struct vector *vector,
const void *item)
{ … }
struct vector *dal_vector_clone(
const struct vector *vector)
{ … }
uint32_t dal_vector_capacity(const struct vector *vector)
{ … }
bool dal_vector_reserve(struct vector *vector, uint32_t capacity)
{ … }
void dal_vector_clear(struct vector *vector)
{ … }