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