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