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