ANSI C Based OPC UA Client/Server SDK
1.8.3.398
|
Data Structures | |
struct | UaBase_TurboVector |
TurboVector structure. More... | |
Functions | |
OpcUa_StatusCode | UaBase_TurboVector_Initialize (UaBase_TurboVector *pV, unsigned int size, unsigned int grow) |
Initializes the vector structure. More... | |
OpcUa_Void | UaBase_TurboVector_Clear (UaBase_TurboVector *pV) |
Clears the vector structure. More... | |
unsigned int | UaBase_TurboVector_Add (UaBase_TurboVector *pV, OpcUa_Void *pData) |
Adds an element to the vector. More... | |
OpcUa_Void * | UaBase_TurboVector_RemoveAt (UaBase_TurboVector *pV, unsigned int iIndex) |
Removes an element from the vector at the given index. More... | |
OpcUa_StatusCode | UaBase_TurboVector_Set (UaBase_TurboVector *pV, unsigned int iIndex, OpcUa_Void *pData) |
Sets an element at the given index. More... | |
OpcUa_Void * | UaBase_TurboVector_Get (UaBase_TurboVector *pV, unsigned int iIndex) |
Returns the value at the given index. More... | |
OpcUa_Void * | UaBase_TurboVector_GetNext (UaBase_TurboVector *pV, unsigned int *pIndex) |
Returns the value at or next to the given index. More... | |
unsigned int | UaBase_TurboVector_GetSize (UaBase_TurboVector *pV) |
Returns the current size of the vector. More... | |
unsigned int | UaBase_TurboVector_GetNoOfItems (UaBase_TurboVector *pV) |
Returns the current size of the vector. More... | |
unsigned int UaBase_TurboVector_Add | ( | UaBase_TurboVector * | pV, |
OpcUa_Void * | pData | ||
) |
Adds an element to the vector.
This method can let the vector grow.
pV | Pointer to the vector object to work on. |
pData | [in] The data for the Vector generation. |
OpcUa_Void UaBase_TurboVector_Clear | ( | UaBase_TurboVector * | pV | ) |
Clears the vector structure.
pV | Pointer to the vector object to work on. |
OpcUa_Void * UaBase_TurboVector_Get | ( | UaBase_TurboVector * | pV, |
unsigned int | iIndex | ||
) |
Returns the value at the given index.
pV | Pointer to the vector object to work on. |
iIndex | index where the value is stored. |
OpcUa_Void * UaBase_TurboVector_GetNext | ( | UaBase_TurboVector * | pV, |
unsigned int * | pIndex | ||
) |
Returns the value at or next to the given index.
pV | Pointer to the vector object to work on. |
pIndex | index to start the search from, will be set to the index of the returned value or to 0 if no next value exists. |
unsigned int UaBase_TurboVector_GetNoOfItems | ( | UaBase_TurboVector * | pV | ) |
Returns the current size of the vector.
pV | Pointer to the vector object to work on. |
unsigned int UaBase_TurboVector_GetSize | ( | UaBase_TurboVector * | pV | ) |
Returns the current size of the vector.
pV | Pointer to the vector object to work on. |
OpcUa_StatusCode UaBase_TurboVector_Initialize | ( | UaBase_TurboVector * | pV, |
unsigned int | size, | ||
unsigned int | grow | ||
) |
Initializes the vector structure.
The vector is an array like container that can grow dynamically. It stores pointers to objects.
pV | Pointer to the vector object to work on. |
size | Initial size of the vector in number of elements, not bytes. |
grow | The number of elements the vector should grow when it needs to be reallocated. |
OpcUa_Void * UaBase_TurboVector_RemoveAt | ( | UaBase_TurboVector * | pV, |
unsigned int | iIndex | ||
) |
Removes an element from the vector at the given index.
pV | Pointer to the vector object to work on. |
iIndex | index where the value is stored. |
OpcUa_StatusCode UaBase_TurboVector_Set | ( | UaBase_TurboVector * | pV, |
unsigned int | iIndex, | ||
OpcUa_Void * | pData | ||
) |
Sets an element at the given index.
This method doesn't change the size of the vector. It's up to you to write to a valid index.
pV | Pointer to the vector object to work on. |
iIndex | index where the value is stored. |
pData | [in] The data for the Vector generation. |