LibCDS
Queue Struct Reference

The implementation for queue. More...

Data Fields

QueueDatapData
 The container private information. More...
 
int32_t(* push )(struct _Queue *, Item)
 Insert an item to the tail of the queue. More...
 
int32_t(* front )(struct _Queue *, Item *)
 Retrieve item from the head of the queue. More...
 
int32_t(* back )(struct _Queue *, Item *)
 Retrieve item from the tail of the queue. More...
 
int32_t(* pop )(struct _Queue *)
 Delete an item from the head of the queue. More...
 
int32_t(* size )(struct _Queue *)
 Return the number of stored items. More...
 
int32_t(* set_destroy )(struct _Queue *, void(*)(Item))
 Set the custom item resource clean method. More...
 

Detailed Description

The implementation for queue.

Definition at line 14 of file queue.h.

Field Documentation

QueueData* Queue::pData

The container private information.

Definition at line 16 of file queue.h.

int32_t(* Queue::push)(struct _Queue *, Item)

Insert an item to the tail of the queue.

See Also
QueuePush

Definition at line 20 of file queue.h.

int32_t(* Queue::front)(struct _Queue *, Item *)

Retrieve item from the head of the queue.

See Also
QueueFront

Definition at line 24 of file queue.h.

int32_t(* Queue::back)(struct _Queue *, Item *)

Retrieve item from the tail of the queue.

See Also
QueueBack

Definition at line 28 of file queue.h.

int32_t(* Queue::pop)(struct _Queue *)

Delete an item from the head of the queue.

See Also
QueuePop

Definition at line 32 of file queue.h.

int32_t(* Queue::size)(struct _Queue *)

Return the number of stored items.

See Also
QueueSize

Definition at line 36 of file queue.h.

int32_t(* Queue::set_destroy)(struct _Queue *, void(*)(Item))

Set the custom item resource clean method.

See Also
QueueSetDestroy

Definition at line 40 of file queue.h.