Array class for the UA stack structure OpcUa_Int16.
More...
#include <uaarraytemplates.h>
Array class for the UA stack structure OpcUa_Int16.
This class encapsulates an array of the native OpcUa_Int16 structure and handles memory allocation and cleanup for you.
Constructs an instance of the class Int16Array with values from another Int16Array object.
- Parameters
-
other | the other Int16Array used to initialize the object |
UaInt16Array::UaInt16Array |
( |
OpcUa_Int32 |
length, |
|
|
OpcUa_Int16 * |
data |
|
) |
| |
Constructs an instance of the class UaInt16 using a raw OpcUa_Int16 array.
- Parameters
-
length | the length of the raw OpcUa_Int16 array |
data | the raw OpcUa_Int16 array |
void UaInt16Array::attach |
( |
OpcUa_UInt32 |
length, |
|
|
OpcUa_Int16 * |
data |
|
) |
| |
Attach to a raw OpcUa_Int16 array.
- Note
- Don't manually free the attached data afterwards, because UaInt16Array is responsible for it now.
- Parameters
-
length | the length of the raw OpcUa_Int16 array |
data | the raw OpcUa_Int16 array |
void UaInt16Array::attach |
( |
OpcUa_Int32 |
length, |
|
|
OpcUa_Int16 * |
data |
|
) |
| |
Attach to a raw OpcUa_Int16 array.
- Note
- Don't manually free the attached data afterwards, because UaInt16Array is responsible for it now.
- Parameters
-
length | the length of the raw OpcUa_Int16 array |
data | the raw OpcUa_Int16 array |
void UaInt16Array::create |
( |
OpcUa_UInt32 |
length | ) |
|
Clears the array and resizes to the given length.
- Parameters
-
length | the new length of the array |
OpcUa_Int16 * UaInt16Array::detach |
( |
| ) |
|
Detach from the internal OpcUa_Int16 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_Int16 array
bool UaInt16Array::operator!= |
( |
const UaInt16Array & |
other | ) |
const |
Compare two UaInt16Array.
- See also
- operator==
- Parameters
-
- Returns
- true if not equal, false otherwise.
Assignment operator.
- Parameters
-
bool UaInt16Array::operator== |
( |
const UaInt16Array & |
other | ) |
const |
Compare two UaInt16Array.
- Parameters
-
- Returns
- true if equal, false if not.
const OpcUa_Int16 & UaInt16Array::operator[] |
( |
OpcUa_UInt32 |
index | ) |
const |
Index operator.
- Parameters
-
index | the index of the structure to return. |
OpcUa_Int16 & UaInt16Array::operator[] |
( |
OpcUa_UInt32 |
index | ) |
|
Index operator.
- Parameters
-
index | the index of the structure to return. |
void UaInt16Array::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