Stack. More...
#include <xanlib.h>
Data Fields | |
XanList * | internalList |
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) |
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.
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().
Definition at line 237 of file xanlib.h.
Referenced by _xanStackDestroyStack(), _xanStackGetSize(), _xanStackPop(), _xanStackPush(), xanStackContains(), and xanStackNew().
sem_t XanStack::mutex |
Definition at line 238 of file xanlib.h.
Referenced by xanStackGetSize(), xanStackNew(), xanStackPop(), xanStackPush(), and xanStackSynchContains().
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().