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