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