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