C++ Based OPC UA Client/Server/PubSub SDK
1.7.3.505
|
Array class for the UA stack structure OpcUa_UInt32. More...
#include <uaarraytemplates.h>
Public Member Functions | |
UaUInt32Array () | |
Constructs an empty instance of the class UaUInt32Array. | |
UaUInt32Array (const UaUInt32Array &other) | |
Constructs an instance of the class UInt32Array with values from another UInt32Array object. More... | |
UaUInt32Array (OpcUa_Int32 length, OpcUa_UInt32 *data) | |
Constructs an instance of the class UaUInt32 using a raw OpcUa_UInt32 array. More... | |
virtual | ~UaUInt32Array () |
Destroys the UaUInt32Array object. | |
UaUInt32Array & | operator= (const UaUInt32Array &other) |
Assignment operator. More... | |
const OpcUa_UInt32 & | operator[] (OpcUa_UInt32 index) const |
Index operator. More... | |
OpcUa_UInt32 & | operator[] (OpcUa_UInt32 index) |
Index operator. More... | |
bool | operator== (const UaUInt32Array &other) const |
Compare two UaUInt32Array. More... | |
bool | operator!= (const UaUInt32Array &other) const |
Compare two UaUInt32Array. More... | |
void | attach (OpcUa_UInt32 length, OpcUa_UInt32 *data) |
Attach to a raw OpcUa_UInt32 array. More... | |
void | attach (OpcUa_Int32 length, OpcUa_UInt32 *data) |
Attach to a raw OpcUa_UInt32 array. More... | |
OpcUa_UInt32 * | detach () |
Detach from the internal OpcUa_UInt32 array. More... | |
void | create (OpcUa_UInt32 length) |
Clears the array and resizes to the given length. More... | |
void | resize (OpcUa_UInt32 length) |
Resizes the array to a given length. More... | |
void | clear () |
Clears the array. | |
Array class for the UA stack structure OpcUa_UInt32.
This class encapsulates an array of the native OpcUa_UInt32 structure and handles memory allocation and cleanup for you.
UaUInt32Array::UaUInt32Array | ( | const UaUInt32Array & | other | ) |
Constructs an instance of the class UInt32Array with values from another UInt32Array object.
other | the other UInt32Array used to initialize the object |
UaUInt32Array::UaUInt32Array | ( | OpcUa_Int32 | length, |
OpcUa_UInt32 * | data | ||
) |
Constructs an instance of the class UaUInt32 using a raw OpcUa_UInt32 array.
length | the length of the raw OpcUa_UInt32 array |
data | the raw OpcUa_UInt32 array |
void UaUInt32Array::attach | ( | OpcUa_UInt32 | length, |
OpcUa_UInt32 * | data | ||
) |
Attach to a raw OpcUa_UInt32 array.
length | the length of the raw OpcUa_UInt32 array |
data | the raw OpcUa_UInt32 array |
void UaUInt32Array::attach | ( | OpcUa_Int32 | length, |
OpcUa_UInt32 * | data | ||
) |
Attach to a raw OpcUa_UInt32 array.
length | the length of the raw OpcUa_UInt32 array |
data | the raw OpcUa_UInt32 array |
void UaUInt32Array::create | ( | OpcUa_UInt32 | length | ) |
Clears the array and resizes to the given length.
length | the new length of the array |
OpcUa_UInt32 * UaUInt32Array::detach | ( | ) |
Detach from the internal OpcUa_UInt32 array.
After detaching, the detached array data will not be cleared automatically anymore.
bool UaUInt32Array::operator!= | ( | const UaUInt32Array & | other | ) | const |
Compare two UaUInt32Array.
other | the UaUInt32Array to compare with. |
UaUInt32Array & UaUInt32Array::operator= | ( | const UaUInt32Array & | other | ) |
Assignment operator.
other | the UaUInt32Array to assign. |
bool UaUInt32Array::operator== | ( | const UaUInt32Array & | other | ) | const |
Compare two UaUInt32Array.
other | the UaUInt32Array to compare with. |
const OpcUa_UInt32 & UaUInt32Array::operator[] | ( | OpcUa_UInt32 | index | ) | const |
Index operator.
index | the index of the structure to return. |
OpcUa_UInt32 & UaUInt32Array::operator[] | ( | OpcUa_UInt32 | index | ) |
Index operator.
index | the index of the structure to return. |
void UaUInt32Array::resize | ( | OpcUa_UInt32 | length | ) |
Resizes the array to a given length.
length | the new length of the array |