UaServer_TurboList


Functions

UaServer_TurboListUaServer_TurboList_Create (OpcUa_UInt size)
 Creates and initializes a TurboList of requested size.
OpcUa_Void UaServer_TurboList_Initialize (UaServer_TurboList *pList, OpcUa_UInt size)
 Initializes the TurboList structure.
OpcUa_Void UaServer_TurboList_Clear (UaServer_TurboList *pList)
 Clears the TurboList.
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.

Function Documentation

OpcUa_Int UaServer_TurboList_Add ( UaServer_TurboList pList,
OpcUa_Void *  pData 
)

Adds a new element to the TurboList.

Parameters:
pList pointer to TurboList.
pData pointer to store in 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.

OpcUa_Void UaServer_TurboList_Clear ( UaServer_TurboList pList  ) 

Clears the TurboList.

Parameters:
pList a pointer to the actual list.

UaServer_TurboList* UaServer_TurboList_Create ( OpcUa_UInt  size  ) 

Creates and initializes a TurboList of requested size.

Parameters:
size number of elements that can be stored in this list-
Returns:
Pointer to 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:
pList a pointer to the actual list.

OpcUa_Void* UaServer_TurboList_Get ( UaServer_TurboList pList,
OpcUa_UInt  index 
)

Retrieves the stored element at the given index.

Parameters:
pList pointer to TurboList.
index index of element
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:
pList the list where to search the elements.
Returns:
the number of elements in list.

OpcUa_Void UaServer_TurboList_Initialize ( UaServer_TurboList pList,
OpcUa_UInt  size 
)

Initializes the TurboList structure.

This operation expects, that the memory block containg the structure is big enough to hold also size elements of data.

Parameters:
pList a pointer to the actual list.
size the size of the actual list.

OpcUa_Void* UaServer_TurboList_Remove ( UaServer_TurboList pList,
OpcUa_UInt  index 
)

Removes the stored element at the given index.

Parameters:
pList pointer to TurboList.
index of element
Returns:
Pointer to removed element or 0 if not found.