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