组合类型 |
struct | st_queue |
宏定义 |
#define | queue_top(queue) ((queue)->root[1]) |
#define | queue_element(queue, index) ((queue)->root[index+1]) |
#define | queue_end(queue) ((queue)->root[(queue)->elements]) |
#define | queue_replaced(queue) _downheap(queue,1) |
#define | queue_set_cmp_arg(queue, set_arg) (queue)->first_cmp_arg= set_arg |
#define | queue_set_max_at_top(queue, set_arg) (queue)->max_at_top= set_arg ? -1 : 1 |
#define | queue_remove_all(queue) { (queue)->elements= 0; } |
#define | queue_is_full(queue) (queue->elements == queue->max_elements) |
#define | is_queue_inited(queue) ((queue)->root != 0) |
类型定义 |
typedef struct st_queue | QUEUE |
typedef int(* | queue_compare )(void *, uchar *, uchar *) |
函数 |
int | init_queue (QUEUE *queue, uint max_elements, uint offset_to_key, pbool max_at_top, queue_compare compare, void *first_cmp_arg) |
int | init_queue_ex (QUEUE *queue, uint max_elements, uint offset_to_key, pbool max_at_top, queue_compare compare, void *first_cmp_arg, uint auto_extent) |
int | reinit_queue (QUEUE *queue, uint max_elements, uint offset_to_key, pbool max_at_top, queue_compare compare, void *first_cmp_arg) |
int | resize_queue (QUEUE *queue, uint max_elements) |
void | delete_queue (QUEUE *queue) |
void | queue_insert (QUEUE *queue, uchar *element) |
int | queue_insert_safe (QUEUE *queue, uchar *element) |
uchar * | queue_remove (QUEUE *queue, uint idx) |
void | _downheap (QUEUE *queue, uint idx) |
void | queue_fix (QUEUE *queue) |