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