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