LibCDS
Stack Struct Reference

The implementation for stack. More...

Data Fields

StackDatapData
 The container private information. More...
 
int32_t(* push )(struct _Stack *, Item)
 Insert an item to the top of the stack. More...
 
int32_t(* top )(struct _Stack *, Item *)
 Retrieve item from the top of the stack. More...
 
int32_t(* pop )(struct _Stack *)
 Delete item from the top of the stack. More...
 
int32_t(* size )(struct _Stack *)
 Return the number of stored items. More...
 
int32_t(* set_destroy )(struct _Stack *, void(*)(Item))
 Set the custom item resource clean method. More...
 

Detailed Description

The implementation for stack.

Definition at line 14 of file stack.h.

Field Documentation

StackData* Stack::pData

The container private information.

Definition at line 16 of file stack.h.

int32_t(* Stack::push)(struct _Stack *, Item)

Insert an item to the top of the stack.

See Also
StackPush

Definition at line 20 of file stack.h.

int32_t(* Stack::top)(struct _Stack *, Item *)

Retrieve item from the top of the stack.

See Also
StackTop

Definition at line 24 of file stack.h.

int32_t(* Stack::pop)(struct _Stack *)

Delete item from the top of the stack.

See Also
StackPop

Definition at line 28 of file stack.h.

int32_t(* Stack::size)(struct _Stack *)

Return the number of stored items.

See Also
StackSize

Definition at line 32 of file stack.h.

int32_t(* Stack::set_destroy)(struct _Stack *, void(*)(Item))

Set the custom item resource clean method.

See Also
StackSetDestroy

Definition at line 36 of file stack.h.