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