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