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

Array class for the UA stack structure OpcUa_RolePermissionType. More...

#include <uarolepermissiontype.h>

Public Member Functions

 UaRolePermissionTypes ()
 Constructs an empty instance of the class UaRolePermissionTypes.
 
 UaRolePermissionTypes (const UaRolePermissionTypes &other)
 Constructs an instance of the class UaRolePermissionTypes with values from another UaRolePermissionTypes object. More...
 
 UaRolePermissionTypes (OpcUa_Int32 length, OpcUa_RolePermissionType *data)
 Constructs an instance of the class UaRolePermissionTypes using a raw OpcUa_RolePermissionType array. More...
 
virtual ~UaRolePermissionTypes ()
 Destroys the UaRolePermissionTypes object.
 
UaRolePermissionTypesoperator= (const UaRolePermissionTypes &other)
 Assignment operator. More...
 
const OpcUa_RolePermissionType & operator[] (OpcUa_UInt32 index) const
 Index operator. More...
 
OpcUa_RolePermissionType & operator[] (OpcUa_UInt32 index)
 Index operator. More...
 
bool operator== (const UaRolePermissionTypes &other) const
 Compare two UaRolePermissionTypes. More...
 
bool operator!= (const UaRolePermissionTypes &other) const
 Compare two UaRolePermissionTypes. More...
 
void attach (OpcUa_UInt32 length, OpcUa_RolePermissionType *data)
 Attach to a raw OpcUa_RolePermissionType array. More...
 
void attach (OpcUa_Int32 length, OpcUa_RolePermissionType *data)
 Attach to a raw OpcUa_RolePermissionType array. More...
 
OpcUa_RolePermissionType * detach ()
 Detach from the internal OpcUa_RolePermissionType 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_RolePermissionType.

This class encapsulates an array of the native OpcUa_RolePermissionType structure and handles memory allocation and cleanup for you.

See also
UaRolePermissionType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaRolePermissionTypes::UaRolePermissionTypes ( const UaRolePermissionTypes other)

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

Parameters
otherthe other UaRolePermissionTypes used to initialize the object
UaRolePermissionTypes::UaRolePermissionTypes ( OpcUa_Int32  length,
OpcUa_RolePermissionType *  data 
)

Constructs an instance of the class UaRolePermissionTypes using a raw OpcUa_RolePermissionType array.

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

Member Function Documentation

void UaRolePermissionTypes::attach ( OpcUa_UInt32  length,
OpcUa_RolePermissionType *  data 
)

Attach to a raw OpcUa_RolePermissionType array.

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

Attach to a raw OpcUa_RolePermissionType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_RolePermissionType * UaRolePermissionTypes::detach ( )

Detach from the internal OpcUa_RolePermissionType 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_RolePermissionType array
bool UaRolePermissionTypes::operator!= ( const UaRolePermissionTypes other) const

Compare two UaRolePermissionTypes.

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

Assignment operator.

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

Compare two UaRolePermissionTypes.

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

Index operator.

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

Index operator.

Parameters
indexthe index of the structure to return.
void UaRolePermissionTypes::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: