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