MySQL 5.6.14 Source Code Document
|
#include "ut0list.h"
Go to the source code of this file.
Functions | |
UNIV_INTERN ib_list_t * | ib_list_create (void) |
UNIV_INTERN ib_list_t * | ib_list_create_heap (mem_heap_t *heap) |
UNIV_INTERN void | ib_list_free (ib_list_t *list) |
UNIV_INTERN ib_list_node_t * | ib_list_add_first (ib_list_t *list, void *data, mem_heap_t *heap) |
UNIV_INTERN ib_list_node_t * | ib_list_add_last (ib_list_t *list, void *data, mem_heap_t *heap) |
UNIV_INTERN ib_list_node_t * | ib_list_add_after (ib_list_t *list, ib_list_node_t *prev_node, void *data, mem_heap_t *heap) |
UNIV_INTERN void | ib_list_remove (ib_list_t *list, ib_list_node_t *node) |
UNIV_INTERN ib_list_node_t* ib_list_add_after | ( | ib_list_t * | list, |
ib_list_node_t * | prev_node, | ||
void * | data, | ||
mem_heap_t * | heap | ||
) |
Add the data after the indicated node.
list | in: list |
prev_node | in: node preceding new node (can be NULL) |
data | in: data |
heap | in: memory heap to use |
Definition at line 121 of file ut0list.cc.
UNIV_INTERN ib_list_node_t* ib_list_add_first | ( | ib_list_t * | list, |
void * | data, | ||
mem_heap_t * | heap | ||
) |
Add the data to the start of the list.
list | in: list |
data | in: data |
heap | in: memory heap to use |
Definition at line 93 of file ut0list.cc.
UNIV_INTERN ib_list_node_t* ib_list_add_last | ( | ib_list_t * | list, |
void * | data, | ||
mem_heap_t * | heap | ||
) |
Add the data to the end of the list.
list | in: list |
data | in: data |
heap | in: memory heap to use |
Definition at line 107 of file ut0list.cc.
UNIV_INTERN ib_list_t* ib_list_create | ( | void | ) |
Create a new list.
Definition at line 36 of file ut0list.cc.
UNIV_INTERN ib_list_t* ib_list_create_heap | ( | mem_heap_t * | heap | ) |
Create a new list using the given heap. ib_list_free MUST NOT BE CALLED for lists created with this function.
heap | in: memory heap to use |
Definition at line 56 of file ut0list.cc.
UNIV_INTERN void ib_list_free | ( | ib_list_t * | list | ) |
Free a list.
list | in: list |
Definition at line 75 of file ut0list.cc.
UNIV_INTERN void ib_list_remove | ( | ib_list_t * | list, |
ib_list_node_t * | node | ||
) |
Remove the node from the list.
list | in: list |
node | in: node to remove |
Definition at line 177 of file ut0list.cc.