C++ Based OPC UA Client/Server/PubSub SDK  1.7.6.537
UaIdentityMappingRuleTypes Class Reference

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

#include <uaidentitymappingruletype.h>

Public Member Functions

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

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

See also
UaIdentityMappingRuleType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaIdentityMappingRuleTypes::UaIdentityMappingRuleTypes ( const UaIdentityMappingRuleTypes other)

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

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

Constructs an instance of the class UaIdentityMappingRuleTypes using a raw OpcUa_IdentityMappingRuleType array.

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

Member Function Documentation

void UaIdentityMappingRuleTypes::attach ( OpcUa_UInt32  length,
OpcUa_IdentityMappingRuleType *  data 
)

Attach to a raw OpcUa_IdentityMappingRuleType array.

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

Attach to a raw OpcUa_IdentityMappingRuleType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_IdentityMappingRuleType * UaIdentityMappingRuleTypes::detach ( )

Detach from the internal OpcUa_IdentityMappingRuleType 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_IdentityMappingRuleType array
bool UaIdentityMappingRuleTypes::operator!= ( const UaIdentityMappingRuleTypes other) const

Compare two UaIdentityMappingRuleTypes.

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

Assignment operator.

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

Compare two UaIdentityMappingRuleTypes.

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

Index operator.

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

Index operator.

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