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