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