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