acl
3.5.3.0
|
类 | |
struct | ACL_FIFO_INFO |
struct | ACL_FIFO_ITER |
struct | ACL_FIFO |
宏定义 | |
#define | acl_fifo_push acl_fifo_push_back |
#define | acl_fifo_push_info acl_fifo_push_info_back |
#define | acl_fifo_pop acl_fifo_pop_front |
#define | ACL_FIFO_ITER_VALUE(iter) ((iter).ptr->data) |
#define | acl_fifo_iter_value ACL_FIFO_ITER_VALUE |
#define | ACL_FIFO_FOREACH(iter, fifo_ptr) for ((iter).ptr = (fifo_ptr)->head; (iter).ptr; (iter).ptr = (iter).ptr->next) |
#define | acl_fifo_foreach ACL_FIFO_FOREACH |
#define | ACL_FIFO_FOREACH_REVERSE(iter, fifo_ptr) for ((iter).ptr = (fifo_ptr)->tail; (iter).ptr; (iter).ptr = (iter).ptr->prev) |
#define | acl_fifo_foreach_reverse ACL_FIFO_FOREACH_REVERSE |
类型定义 | |
typedef struct ACL_FIFO_INFO | ACL_FIFO_INFO |
typedef struct ACL_FIFO_ITER | ACL_FIFO_ITER |
typedef struct ACL_FIFO | ACL_FIFO |
#define ACL_FIFO_FOREACH | ( | iter, | |
fifo_ptr | |||
) | for ((iter).ptr = (fifo_ptr)->head; (iter).ptr; (iter).ptr = (iter).ptr->next) |
在文件 acl_fifo.h 第 205 行定义.
#define acl_fifo_foreach ACL_FIFO_FOREACH |
在文件 acl_fifo.h 第 207 行定义.
#define ACL_FIFO_FOREACH_REVERSE | ( | iter, | |
fifo_ptr | |||
) | for ((iter).ptr = (fifo_ptr)->tail; (iter).ptr; (iter).ptr = (iter).ptr->prev) |
在文件 acl_fifo.h 第 239 行定义.
#define acl_fifo_foreach_reverse ACL_FIFO_FOREACH_REVERSE |
在文件 acl_fifo.h 第 241 行定义.
#define ACL_FIFO_ITER_VALUE | ( | iter | ) | ((iter).ptr->data) |
#define acl_fifo_iter_value ACL_FIFO_ITER_VALUE |
在文件 acl_fifo.h 第 159 行定义.
#define acl_fifo_pop acl_fifo_pop_front |
在文件 acl_fifo.h 第 119 行定义.
#define acl_fifo_push acl_fifo_push_back |
在文件 acl_fifo.h 第 108 行定义.
#define acl_fifo_push_info acl_fifo_push_info_back |
在文件 acl_fifo.h 第 110 行定义.
在文件 acl_fifo.h 第 14 行定义.
typedef struct ACL_FIFO_INFO ACL_FIFO_INFO |
在文件 acl_fifo.h 第 12 行定义.
typedef struct ACL_FIFO_ITER ACL_FIFO_ITER |
在文件 acl_fifo.h 第 13 行定义.
ACL_API int acl_fifo_delete | ( | ACL_FIFO * | fifo, |
const void * | data | ||
) |
从队列中删除与所给值相同的对象
fifo | {ACL_FIFO*} |
data | {const void*} |
ACL_API void acl_fifo_delete_info | ( | ACL_FIFO * | fifo, |
ACL_FIFO_INFO * | info | ||
) |
ACL_API void acl_fifo_free | ( | ACL_FIFO * | fifo, |
void(*)(void *) | free_fn | ||
) |
释放以堆分配的队列对象
fifo | {ACL_FIFO*} |
free_fn | {void (*)(void*)}, 如果该函数指针不为空则 用来释放队列中动态分配的对象 |
ACL_API void acl_fifo_free2 | ( | ACL_FIFO * | fifo, |
void(*)(ACL_FIFO_INFO *) | free_fn | ||
) |
ACL_API void* acl_fifo_head | ( | ACL_FIFO * | fifo | ) |
返回队列中头部的动态对象
fifo | {ACL_FIFO*} |
ACL_API ACL_FIFO_INFO* acl_fifo_head_info | ( | ACL_FIFO * | fifo | ) |
ACL_API void acl_fifo_init | ( | ACL_FIFO * | fifo | ) |
ACL_API ACL_FIFO* acl_fifo_new | ( | void | ) |
ACL_API ACL_FIFO* acl_fifo_new1 | ( | ACL_SLICE_POOL * | slice | ) |
从内存堆中分配一个队列对象并传内存池对象做为分配器
slice | {ACL_SLICE_POOL*} |
ACL_API void* acl_fifo_pop_back | ( | ACL_FIFO * | fifo | ) |
从队列中以后进先出方式弹出一个动态对象, 同时该对象从队列中删除
fifo | {ACL_FIFO*} |
ACL_API void* acl_fifo_pop_front | ( | ACL_FIFO * | fifo | ) |
从队列中以先进先出方式弹出一个动态对象, 同时将该对象从队列中删除
fifo | {ACL_FIFO*} |
ACL_API ACL_FIFO_INFO* acl_fifo_pop_info | ( | ACL_FIFO * | fifo | ) |
ACL_API ACL_FIFO_INFO* acl_fifo_push_back | ( | ACL_FIFO * | fifo, |
void * | data | ||
) |
向队列中添加一个动态堆对象
fifo | {ACL_FIFO*} |
data | {void*} 动态对象 |
ACL_API ACL_FIFO_INFO* acl_fifo_push_front | ( | ACL_FIFO * | fifo, |
void * | data | ||
) |
ACL_API void acl_fifo_push_info_back | ( | ACL_FIFO * | fifo, |
ACL_FIFO_INFO * | info | ||
) |
ACL_API int acl_fifo_size | ( | ACL_FIFO * | fifo | ) |
返回队列中动态对象的总个数
fifo | {ACL_FIFO*} |
ACL_API void* acl_fifo_tail | ( | ACL_FIFO * | fifo | ) |
返回队列中尾部的动态对象
fifo | {ACL_FIFO*} |
ACL_API ACL_FIFO_INFO* acl_fifo_tail_info | ( | ACL_FIFO * | fifo | ) |