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