C++ Based OPC UA Client/Server/PubSub SDK  1.7.6.537

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.
 
UaUserTokenPolicysoperator= (const UaUserTokenPolicys &other)
 Assignment operator. More...
 
const OpcUa_UserTokenPolicyoperator[] (OpcUa_UInt32 index) const
 Index operator. More...
 
OpcUa_UserTokenPolicyoperator[] (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_UserTokenPolicydetach ()
 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.
 

Detailed Description

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.

See also
UaUserTokenPolicy for information about the encapsulated structure.

Constructor & Destructor Documentation

UaUserTokenPolicys::UaUserTokenPolicys ( const UaUserTokenPolicys other)

Constructs an instance of the class UaUserTokenPolicys with values from another UaUserTokenPolicys object.

Parameters
otherthe 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.

Parameters
lengththe length of the raw OpcUa_UserTokenPolicy array
datathe raw OpcUa_UserTokenPolicy array

Member Function Documentation

void UaUserTokenPolicys::attach ( OpcUa_UInt32  length,
OpcUa_UserTokenPolicy data 
)

Attach to a raw OpcUa_UserTokenPolicy array.

Note
Don't manually free the attached data afterwards, because UaUserTokenPolicys is responsible for it now.
Parameters
lengththe length of the raw OpcUa_UserTokenPolicy array
datathe raw OpcUa_UserTokenPolicy array
void UaUserTokenPolicys::attach ( OpcUa_Int32  length,
OpcUa_UserTokenPolicy data 
)

Attach to a raw OpcUa_UserTokenPolicy array.

Note
Don't manually free the attached data afterwards, because UaUserTokenPolicys is responsible for it now.
Parameters
lengththe length of the raw OpcUa_UserTokenPolicy array
datathe raw OpcUa_UserTokenPolicy array
void UaUserTokenPolicys::create ( OpcUa_UInt32  length)

Clears the array and resizes to the given length.

Parameters
lengththe 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.

Note
Remember to retrieve the length of the array before detaching.
Returns
the detached OpcUa_UserTokenPolicy array
bool UaUserTokenPolicys::operator!= ( const UaUserTokenPolicys other) const

Compare two UaUserTokenPolicys.

See also
operator==
Parameters
otherthe UaUserTokenPolicys to compare with.
Returns
true if not equal, false otherwise.
UaUserTokenPolicys & UaUserTokenPolicys::operator= ( const UaUserTokenPolicys other)

Assignment operator.

Parameters
otherthe UaUserTokenPolicys to assign.
bool UaUserTokenPolicys::operator== ( const UaUserTokenPolicys other) const

Compare two UaUserTokenPolicys.

Parameters
otherthe UaUserTokenPolicys to compare with.
Returns
true if equal, false if not.
const OpcUa_UserTokenPolicy & UaUserTokenPolicys::operator[] ( OpcUa_UInt32  index) const

Index operator.

Parameters
indexthe index of the structure to return.
OpcUa_UserTokenPolicy & UaUserTokenPolicys::operator[] ( OpcUa_UInt32  index)

Index operator.

Parameters
indexthe index of the structure to return.
void UaUserTokenPolicys::resize ( OpcUa_UInt32  length)

Resizes the array to a given length.

Parameters
lengththe new length of the array

The documentation for this class was generated from the following files: