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