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