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