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