43typedef void *(*ib_mem_alloc_t)(
52typedef void *(*ib_mem_resize_t)(
68#define ib_vector_getp(v, n) (*(void **)ib_vector_get(v, n))
69#define ib_vector_getp_const(v, n) (*(void **)ib_vector_get_const(v, n))
71#define ib_vector_allocator(v) (v->allocator)
static int compare(size_t a, size_t b)
Function to compare two size_t integers for their relative order.
Definition: rpl_utility.cc:107
ib_mem_free_t mem_release
Definition: ut0vec.h:206
void * arg
Definition: ut0vec.h:208
ib_mem_resize_t mem_resize
Definition: ut0vec.h:207
ib_mem_alloc_t mem_malloc
Definition: ut0vec.h:205
ib_alloc_t * allocator
Definition: ut0vec.h:214
ulint used
Definition: ut0vec.h:217
void * data
Definition: ut0vec.h:216
ulint sizeof_value
Definition: ut0vec.h:220
ulint total
Definition: ut0vec.h:218
The info structure stored at the beginning of a heap block.
Definition: mem0mem.h:302
Version control for database, common definitions, and include files.
unsigned long int ulint
Definition: univ.i:406
static void ib_heap_allocator_free(ib_alloc_t *ib_ut_alloc)
static const void * ib_vector_get_const(const ib_vector_t *vec, ulint n)
static void ib_vector_set(ib_vector_t *vec, ulint n, void *elem)
Set the n'th element.
static void * ib_vector_remove(ib_vector_t *vec, const void *elem)
Remove an element to the vector.
static void ib_vector_reset(ib_vector_t *vec)
static void ib_vector_sort(ib_vector_t *vec, ib_compare_t compare)
static void ib_vector_free(ib_vector_t *vec)
static ulint ib_vector_size(const ib_vector_t *vec)
void *(* ib_mem_resize_t)(ib_alloc_t *allocator, void *ptr, ulint old_size, ulint new_size)
Definition: ut0vec.h:52
static void ib_heap_free(ib_alloc_t *allocator, void *ptr)
static void * ib_vector_get_last(ib_vector_t *vec)
Get last element.
static void * ib_vector_last(ib_vector_t *vec)
static void * ib_vector_pop(ib_vector_t *vec)
void *(* ib_mem_alloc_t)(ib_alloc_t *allocator, ulint size)
Definition: ut0vec.h:43
static void * ib_heap_resize(ib_alloc_t *allocator, void *old_ptr, ulint old_size, ulint new_size)
void(* ib_mem_free_t)(ib_alloc_t *allocator, void *ptr)
Definition: ut0vec.h:48
static void * ib_heap_malloc(ib_alloc_t *allocator, ulint size)
ib_vector_t * ib_vector_create(ib_alloc_t *alloc, ulint sizeof_value, ulint size)
Definition: ut0vec.cc:39
static ib_alloc_t * ib_heap_allocator_create(mem_heap_t *heap)
static void * ib_vector_push(ib_vector_t *vec, const void *elem)
static const void * ib_vector_last_const(const ib_vector_t *vec)
int(* ib_compare_t)(const void *, const void *)
Definition: ut0vec.h:59
static void * ib_vector_get(ib_vector_t *vec, ulint n)
Get the n'th element.
void ib_vector_resize(ib_vector_t *vec)
Definition: ut0vec.cc:66
static bool ib_vector_is_empty(const ib_vector_t *vec)
in: vector
A vector of pointers to data items.
int n
Definition: xcom_base.cc:509