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