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

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

#include <uaaliasnamedatatype.h>

Public Member Functions

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

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

See also
UaAliasNameDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaAliasNameDataTypes::UaAliasNameDataTypes ( const UaAliasNameDataTypes other)

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

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

Constructs an instance of the class UaAliasNameDataTypes using a raw OpcUa_AliasNameDataType array.

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

Member Function Documentation

void UaAliasNameDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_AliasNameDataType *  data 
)

Attach to a raw OpcUa_AliasNameDataType array.

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

Attach to a raw OpcUa_AliasNameDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_AliasNameDataType * UaAliasNameDataTypes::detach ( )

Detach from the internal OpcUa_AliasNameDataType 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_AliasNameDataType array
bool UaAliasNameDataTypes::operator!= ( const UaAliasNameDataTypes other) const

Compare two UaAliasNameDataTypes.

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

Assignment operator.

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

Compare two UaAliasNameDataTypes.

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

Index operator.

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

Index operator.

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