C++ Based OPC UA Client/Server SDK  1.5.5.355

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

#include <uatrustlistdatatype.h>

Public Member Functions

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

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

See also
UaTrustListDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaTrustListDataTypes::UaTrustListDataTypes ( const UaTrustListDataTypes other)

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

Parameters
otherthe other UaTrustListDataTypes used to initialize the object
UaTrustListDataTypes::UaTrustListDataTypes ( OpcUa_Int32  length,
OpcUa_TrustListDataType data 
)

Constructs an instance of the class UaTrustListDataTypes using a raw OpcUa_TrustListDataType array.

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

Member Function Documentation

void UaTrustListDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_TrustListDataType data 
)

Attach to a raw OpcUa_TrustListDataType array.

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

Attach to a raw OpcUa_TrustListDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_TrustListDataType * UaTrustListDataTypes::detach ( )

Detach from the internal OpcUa_TrustListDataType 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_TrustListDataType array
bool UaTrustListDataTypes::operator!= ( const UaTrustListDataTypes other) const

Compare two UaTrustListDataTypes.

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

Assignment operator.

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

Compare two UaTrustListDataTypes.

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

Index operator.

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

Index operator.

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