MobilityDB 1.3
Loading...
Searching...
No Matches
Functions
meos_array.c File Reference

Functions for expandable arrays. More...

#include <meos.h>
#include <meos_internal.h>
#include "temporal/temporal.h"

Functions

static void * array_slot (const MeosArray *array, int n)
 Get the address of the n-th slot of the array. More...
 
void meos_array_add (MeosArray *array, void *value)
 Add a value to the array. More...
 
int meos_array_count (const MeosArray *array)
 Return the number of elements in the array. More...
 
MeosArraymeos_array_create (int elem_size)
 Create an expandable array. More...
 
void meos_array_destroy (MeosArray *array)
 Destroy the array, freeing its internal storage. More...
 
void meos_array_destroy_free (MeosArray *array)
 Destroy a varlength array, freeing both the stored pointers and the internal storage. More...
 
void * meos_array_get (const MeosArray *array, int n)
 Get the n-th element of the array (0-based) More...
 
void meos_array_reset (MeosArray *array)
 Reset the array, keeping the allocated memory for reuse. More...
 
void meos_array_reset_free (MeosArray *array)
 Reset a varlength array, freeing the stored pointers and keeping the allocated memory for reuse. More...
 
static void meos_array_reset_int (MeosArray *array, bool free_elems)
 Reset the array. More...
 

Detailed Description

Functions for expandable arrays.