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