UA Ansi C Server Professional  1.3.0.225
 All Data Structures Functions Variables Typedefs Enumerations Groups Pages
UaServerTurboList

Data Structures

struct  _UaServer_TurboList
 TurboList structure. More...

Functions

UaServer_TurboListUaServer_TurboList_Create (OpcUa_UInt size)
 Creates and initializes a TurboList of requested size.
OpcUa_Void UaServer_TurboList_Delete (UaServer_TurboList *pList)
 This operation frees the TurboList and it's data.
OpcUa_Int UaServer_TurboList_Add (UaServer_TurboList *pList, OpcUa_Void *pData)
 Adds a new element to the TurboList.
OpcUa_Void * UaServer_TurboList_Get (UaServer_TurboList *pList, OpcUa_UInt index)
 Retrieves the stored element at the given index.
OpcUa_Void * UaServer_TurboList_Remove (UaServer_TurboList *pList, OpcUa_UInt index)
 Removes the stored element at the given index.
OpcUa_UInt UaServer_TurboList_GetSize (UaServer_TurboList *pList)
 Returns the number of elements in list.

Detailed Description

Function Documentation

OpcUa_Int UaServer_TurboList_Add ( UaServer_TurboList pList,
OpcUa_Void *  pData 
)

Adds a new element to the TurboList.

Parameters
pListPointer to the list.
pDataData to add to the list.
Returns
Index where element was stored or -1 if the list is full. Don't store NULL pointers in this list, because 0 is used to mark an element as free.
UaServer_TurboList * UaServer_TurboList_Create ( OpcUa_UInt  size)

Creates and initializes a TurboList of requested size.

Parameters
sizenumber of elements that can be stored in this list.
Returns
Pointer to the created list or 0 if malloc fails.
OpcUa_Void UaServer_TurboList_Delete ( UaServer_TurboList pList)

This operation frees the TurboList and it's data.

Parameters
pListPointer to the list.
OpcUa_Void * UaServer_TurboList_Get ( UaServer_TurboList pList,
OpcUa_UInt  index 
)

Retrieves the stored element at the given index.

Parameters
pListPointer to the list.
indexIndex of the element to get.
Returns
Pointer to stored element or 0 if not found.
OpcUa_UInt UaServer_TurboList_GetSize ( UaServer_TurboList pList)

Returns the number of elements in list.

Parameters
pListPointer to the list.
Returns
The number of elements in list.
OpcUa_Void * UaServer_TurboList_Remove ( UaServer_TurboList pList,
OpcUa_UInt  index 
)

Removes the stored element at the given index.

Parameters
pListPointer to the list.
indexIndex of the element to remove.
Returns
Pointer to removed element or 0 if not found.