UA ANSI C Server Professional  1.4.2.297
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
UaServerTurboStack

Data Structures

struct  _UaServer_TurboStack
 TurboStack structure. More...
 

Functions

UaServer_TurboStackUaServer_TurboStack_Create (OpcUa_UInt size)
 Creates and initializes a UaServer_TurboStack of requested size. More...
 
OpcUa_Void UaServer_TurboStack_Delete (UaServer_TurboStack *pStack)
 This operation frees the UaServer_TurboStack and it's data. More...
 
OpcUa_UInt UaServer_TurboStack_GetSize (UaServer_TurboStack *pStack)
 Returns the current size of the stack. More...
 
OpcUa_Int UaServer_TurboStack_Push (UaServer_TurboStack *pStack, OpcUa_Void *pData)
 Pushes an element onto the stack. More...
 
OpcUa_Void * UaServer_TurboStack_Pop (UaServer_TurboStack *pStack)
 Pops an element from the stack. More...
 

Detailed Description

Function Documentation

UaServer_TurboStack * UaServer_TurboStack_Create ( OpcUa_UInt  size)

Creates and initializes a UaServer_TurboStack of requested size.

Parameters
sizenumber of elements that can be stored in this list.
Returns
Pointer to created stack or 0 if malloc fails.
OpcUa_Void UaServer_TurboStack_Delete ( UaServer_TurboStack pStack)

This operation frees the UaServer_TurboStack and it's data.

Parameters
[in]pStackPointer to the stack.
OpcUa_UInt UaServer_TurboStack_GetSize ( UaServer_TurboStack pStack)

Returns the current size of the stack.

Parameters
[in]pStackPointer to the stack.
Returns
ToDoDoc
OpcUa_Void * UaServer_TurboStack_Pop ( UaServer_TurboStack pStack)

Pops an element from the stack.

Parameters
[in]pStackPointer to the stack.
Returns
Popped data or 0 if stack is empty.
OpcUa_Int UaServer_TurboStack_Push ( UaServer_TurboStack pStack,
OpcUa_Void *  pData 
)

Pushes an element onto the stack.

Parameters
[in]pStackPointer to the stack.
[in]pDataData to push.
Returns
0 on success, -1 if stack is full.