FreeRDP
Stack.c File Reference
#include <winpr/config.h>
#include <winpr/collections.h>
#include <winpr/assert.h>

Functions

size_t Stack_Count (wStack *stack)
 
BOOL Stack_IsSynchronized (wStack *stack)
 
wObjectStack_Object (wStack *stack)
 
void Stack_Clear (wStack *stack)
 
BOOL Stack_Contains (wStack *stack, const void *obj)
 
void Stack_Push (wStack *stack, void *obj)
 
void * Stack_Pop (wStack *stack)
 
void * Stack_Peek (wStack *stack)
 
static BOOL default_stack_equals (const void *obj1, const void *obj2)
 
wStack * Stack_New (BOOL synchronized)
 
void Stack_Free (wStack *stack)
 

Function Documentation

◆ default_stack_equals()

static BOOL default_stack_equals ( const void *  obj1,
const void *  obj2 
)
static
Here is the caller graph for this function:

◆ Stack_Clear()

void Stack_Clear ( wStack *  stack)

Methods Removes all objects from the Stack.

Here is the call graph for this function:

◆ Stack_Contains()

BOOL Stack_Contains ( wStack *  stack,
const void *  obj 
)

Determines whether an element is in the Stack.

Here is the call graph for this function:

◆ Stack_Count()

size_t Stack_Count ( wStack *  stack)

C equivalent of the C# Stack Class: http://msdn.microsoft.com/en-us/library/system.collections.stack.aspx Properties Gets the number of elements contained in the Stack.

Here is the call graph for this function:

◆ Stack_Free()

void Stack_Free ( wStack *  stack)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Stack_IsSynchronized()

BOOL Stack_IsSynchronized ( wStack *  stack)

Gets a value indicating whether access to the Stack is synchronized (thread safe).

◆ Stack_New()

wStack* Stack_New ( BOOL  synchronized)

Construction, Destruction

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Stack_Object()

wObject* Stack_Object ( wStack *  stack)

◆ Stack_Peek()

void* Stack_Peek ( wStack *  stack)

Returns the object at the top of the Stack without removing it.

Here is the call graph for this function:

◆ Stack_Pop()

void* Stack_Pop ( wStack *  stack)

Removes and returns the object at the top of the Stack.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Stack_Push()

void Stack_Push ( wStack *  stack,
void *  obj 
)

Inserts an object at the top of the Stack.

Here is the call graph for this function:
Here is the caller graph for this function: