HandleManager.
More...
#include <opcuatypesinternal.h>
|
| HandleManager () |
| construction with Variable initialization. More...
|
|
virtual | ~HandleManager () |
| destruction
|
|
void | clearList () |
| Clears the formally created list. More...
|
|
void | prepareAdd (OpcUa_UInt32 addCount) |
| Prepares an array to add more items. More...
|
|
OpcUa_UInt32 | add (T *pItem) |
| Adds a new item to the array. More...
|
|
OpcUa_StatusCode | addAt (OpcUa_UInt32 index, T *pItem) |
| Adds a new item at a specific index to the array. More...
|
|
OpcUa_Boolean | remove (OpcUa_UInt32 index) |
| Removes and deletes the item with the passed handle and returns a boolean value indicating success. More...
|
|
OpcUa_Boolean | detach (OpcUa_UInt32 index) |
| Removes the item with the passed handle but does not delete the item. More...
|
|
T * | get (OpcUa_UInt32 index) |
| Get the specified item with the given index. More...
|
|
OpcUa_UInt32 | itemCount () |
| Counts all available items. More...
|
|
OpcUa_UInt32 | maxIndex () |
| Get the maximum Index. More...
|
|
|
void | resize (OpcUa_UInt32 length) |
| Resizes the length of the array. More...
|
|
template<class T>
class HandleManager< T >
HandleManager.
construction with Variable initialization.
Adds a new item to the array.
Returns invalid index 0 if the passed item is NULL
- Parameters
-
- Returns
- the index where the new item is stored.
Adds a new item at a specific index to the array.
- Parameters
-
index | The index where the new item should be stored. |
pItem | The item to add. |
- Returns
- Success code.
Clears the formally created list.
Removes the item with the passed handle but does not delete the item.
Returns a boolean value indicating success.
- Parameters
-
index | The handle of the item to remove. |
- Returns
- A flag indicating if the item was removed (true) or not found (false).
Get the specified item with the given index.
- Parameters
-
index | the specified index where to get the item. |
- Returns
- the specified item.
Counts all available items.
- Returns
- the counted number of items.
Get the maximum Index.
- Returns
- the maximum index number.
Prepares an array to add more items.
First of all the actual size will be calculated and after that the existing array will be expanded.
- Parameters
-
addCount | the size for expanding the array. |
Removes and deletes the item with the passed handle and returns a boolean value indicating success.
- Parameters
-
index | The handle of the item to remove. |
- Returns
- A flag indicating if the item was removed (true) or not found (false).
Resizes the length of the array.
- Parameters
-
length | the value of length for the resize. |
The documentation for this class was generated from the following file:
- D:/work/uasdkcpp/src/uaserver/uaservercpp/coremodule/opcuatypesinternal.h