Lines Matching refs:deque
10 ds_queue_t *ds_queue_ex(ds_deque_t *deque) in ds_queue_ex() argument
13 queue->deque = deque; in ds_queue_ex()
24 return ds_queue_ex(ds_deque_clone(queue->deque)); in ds_queue_clone()
29 ds_deque_free(queue->deque); in ds_queue_free()
35 ds_deque_allocate(queue->deque, capacity); in ds_queue_allocate()
40 return queue->deque->capacity; in ds_queue_capacity()
45 ds_deque_push_va(queue->deque, argc, argv); in ds_queue_push()
50 ds_deque_push(queue->deque, value); in ds_queue_push_one()
55 ds_deque_clear(queue->deque); in ds_queue_clear()
60 ds_deque_push_all(queue->deque, value); in ds_queue_push_all()
74 DS_DEQUE_FOREACH(queue->deque, value) { in ds_queue_to_array()
84 ds_deque_shift_throw(queue->deque, return_value); in ds_queue_pop_throw()
89 ds_deque_shift(queue->deque, return_value); in ds_queue_pop()
94 return ds_deque_get_first_throw(queue->deque); in ds_queue_peek_throw()
99 return ds_deque_get_first(queue->deque); in ds_queue_peek()