#include "ctrump/common/queue.h"
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Functions | |
void | ctrump_queue_init (struct ctrump_queue *q, size_t nelem, size_t elem_size) |
FIFOの初期化. | |
void | ctrump_queue_realloc (struct ctrump_queue *q) |
FIFOのサイズを増やす. | |
void | ctrump_queue_destroy (struct ctrump_queue *q) |
FIFOの消去. |
Definition in file queue.c.
void ctrump_queue_destroy | ( | struct ctrump_queue * | q | ) |
FIFOの消去.
q | FIFOオブジェクト |
Definition at line 87 of file queue.c.
References ctrump_queue::elements.
Referenced by build_bfs_order().
void ctrump_queue_init | ( | struct ctrump_queue * | q, | |
size_t | nelem, | |||
size_t | elem_size | |||
) |
FIFOの初期化.
q | FIFOオブジェクト | |
nelem | 初期要素数 | |
要素サイズ |
Definition at line 41 of file queue.c.
References ctrump_queue::elem_size, ctrump_queue::elements, ctrump_queue::head, ctrump_queue::rem, ctrump_queue::size, and ctrump_queue::tail.
Referenced by build_bfs_order().
void ctrump_queue_realloc | ( | struct ctrump_queue * | q | ) |
FIFOのサイズを増やす.
q | FIFOオブジェクト |
Definition at line 52 of file queue.c.
References ctrump_queue::elem_size, ctrump_queue::elements, ctrump_queue::head, ctrump_queue::rem, ctrump_queue::size, and ctrump_queue::tail.