XanStack Struct Reference

Stack. More...

#include <xanlib.h>

Collaboration diagram for XanStack:
Collaboration graph
[legend]

Data Fields

XanListinternalList
sem_t mutex
void *(* synchPop )(struct XanStack *stack)
void(* synchPush )(struct XanStack *stack, void *newElement)
int(* synchGetSize )(struct XanStack *stack)
void *(* pop )(struct XanStack *stack)
void(* push )(struct XanStack *stack, void *newElement)
int(* getSize )(struct XanStack *stack)
void(* destroyStack )(struct XanStack *stack)

Detailed Description

Stack.

This is a stack structure. This is a queue with the LIFO (Last In First Out) policy.

Definition at line 234 of file xanlib.h.


Field Documentation

void(* XanStack::destroyStack)(struct XanStack *stack)

Free the memory used by the XanStack structure, but it does not free the data contains inside itself

Definition at line 248 of file xanlib.h.

Referenced by xanStackNew().

int(* XanStack::getSize)(struct XanStack *stack)

Return the number of elements stored inside the stack.

Definition at line 247 of file xanlib.h.

Referenced by xanStackNew().

void*(* XanStack::pop)(struct XanStack *stack)

Fetch the top element of the stack; if the stack is empty, then it returns NULL.

Definition at line 245 of file xanlib.h.

Referenced by xanStackNew().

void(* XanStack::push)(struct XanStack *stack, void *newElement)

Push the newElement on top of the stack.

Definition at line 246 of file xanlib.h.

Referenced by xanStackNew().

int(* XanStack::synchGetSize)(struct XanStack *stack)

Return the number of elements stored inside the stack. This method is synchronized for the thread safe guarantees.

Definition at line 243 of file xanlib.h.

Referenced by xanStackNew().

void*(* XanStack::synchPop)(struct XanStack *stack)

Fetch the top element of the stack; if the stack is empty, then it returns NULL. This method is synchronized for the thread safe guarantees.

Definition at line 241 of file xanlib.h.

Referenced by xanStackNew().

void(* XanStack::synchPush)(struct XanStack *stack, void *newElement)

Push the newElement on top of the stack. This method is synchronized for the thread safe guarantees.

Definition at line 242 of file xanlib.h.

Referenced by xanStackNew().


The documentation for this struct was generated from the following file:
Generated on Mon Apr 26 15:54:47 2010 for xanlib by  doxygen 1.6.3