Array class for the UA stack structure OpcUa_NodeId.
More...
#include <uaarraytemplates.h>
Array class for the UA stack structure OpcUa_NodeId.
This class encapsulates an array of the native OpcUa_NodeId structure and handles memory allocation and cleanup for you.
- See also
- UaNodeId for information about the encapsulated structure.
Constructs an instance of the class NodeIdArray with values from another NodeIdArray object.
- Parameters
-
other | the other NodeIdArray used to initialize the object |
UaNodeIdArray::UaNodeIdArray |
( |
OpcUa_Int32 |
length, |
|
|
OpcUa_NodeId * |
data |
|
) |
| |
void UaNodeIdArray::attach |
( |
OpcUa_UInt32 |
length, |
|
|
OpcUa_NodeId * |
data |
|
) |
| |
Attach to a raw OpcUa_NodeId array.
- Note
- Don't manually free the attached data afterwards, because UaNodeIdArray is responsible for it now.
- Parameters
-
void UaNodeIdArray::attach |
( |
OpcUa_Int32 |
length, |
|
|
OpcUa_NodeId * |
data |
|
) |
| |
Attach to a raw OpcUa_NodeId array.
- Note
- Don't manually free the attached data afterwards, because UaNodeIdArray is responsible for it now.
- Parameters
-
void UaNodeIdArray::create |
( |
OpcUa_UInt32 |
length | ) |
|
Clears the array and resizes to the given length.
- Parameters
-
length | the new length of the array |
Detach from the internal OpcUa_NodeId array.
After detaching, the detached array data will not be cleared automatically anymore.
- Note
- Remember to retrieve the length of the array before detaching.
- Returns
- the detached OpcUa_NodeId array
bool UaNodeIdArray::operator!= |
( |
const UaNodeIdArray & |
other | ) |
const |
Compare two UaNodeIdArray.
- See also
- operator==
- Parameters
-
- Returns
- true if not equal, false otherwise.
Assignment operator.
- Parameters
-
bool UaNodeIdArray::operator== |
( |
const UaNodeIdArray & |
other | ) |
const |
Compare two UaNodeIdArray.
- Parameters
-
- Returns
- true if equal, false if not.
const OpcUa_NodeId & UaNodeIdArray::operator[] |
( |
OpcUa_UInt32 |
index | ) |
const |
Index operator.
- Parameters
-
index | the index of the structure to return. |
OpcUa_NodeId & UaNodeIdArray::operator[] |
( |
OpcUa_UInt32 |
index | ) |
|
Index operator.
- Parameters
-
index | the index of the structure to return. |
void UaNodeIdArray::resize |
( |
OpcUa_UInt32 |
length | ) |
|
Resizes the array to a given length.
- Parameters
-
length | the new length of the array |
The documentation for this class was generated from the following files:
- D:/work/uasdkcpp/src/uabase/uabasecpp/uaarraytemplates.h
- D:/work/uasdkcpp/src/uabase/uabasecpp/uaarraytemplates.cpp