|
drizzle
C++ MySQL-protocol-compatible database server
|
Go to the source code of this file.
Classes | |
| struct | ib_vector_struct |
Typedefs | |
| typedef struct ib_vector_struct | ib_vector_t |
Functions | |
| UNIV_INTERN ib_vector_t * | ib_vector_create (mem_heap_t *heap, ulint size) |
| UNIV_INTERN void | ib_vector_push (ib_vector_t *vec, void *elem) |
| UNIV_INLINE ulint | ib_vector_size (const ib_vector_t *vec) |
| UNIV_INLINE ibool | ib_vector_is_empty (const ib_vector_t *vec) |
| UNIV_INLINE void * | ib_vector_get (ib_vector_t *vec, ulint n) |
| UNIV_INLINE void * | ib_vector_get_last (ib_vector_t *vec) |
| UNIV_INLINE void | ib_vector_set (ib_vector_t *vec, ulint n, void *elem) |
| UNIV_INLINE void * | ib_vector_pop (ib_vector_t *vec) |
| UNIV_INLINE void | ib_vector_free (ib_vector_t *vec) |
| typedef struct ib_vector_struct ib_vector_t |
| UNIV_INTERN ib_vector_t * ib_vector_create | ( | mem_heap_t * | heap, |
| ulint | size ) |
| UNIV_INLINE void ib_vector_free | ( | ib_vector_t * | vec | ) |
Free the underlying heap of the vector. Note that vec is invalid after this call. in,own: vector
| UNIV_INLINE void * ib_vector_get | ( | ib_vector_t * | vec, |
| ulint | n ) |
Get the n'th element.
| vec | in: vector |
| UNIV_INLINE void * ib_vector_get_last | ( | ib_vector_t * | vec | ) |
Get last element. The vector must not be empty.
| UNIV_INLINE ibool ib_vector_is_empty | ( | const ib_vector_t * | vec | ) |
Test whether a vector is empty or not.
| UNIV_INLINE void * ib_vector_pop | ( | ib_vector_t * | vec | ) |
Remove the last element from the vector. in: vector
| UNIV_INTERN void ib_vector_push | ( | ib_vector_t * | vec, |
| void * | elem ) |
| UNIV_INLINE void ib_vector_set | ( | ib_vector_t * | vec, |
| ulint | n, | ||
| void * | elem ) |
Set the n'th element. in: data element
| vec | in/out: vector |
| n | in: element index to set |
| UNIV_INLINE ulint ib_vector_size | ( | const ib_vector_t * | vec | ) |
Get the number of elements in the vector.