C++ Based OPC UA Client/Server SDK  1.5.5.355
UaDoubleComplexNumberTypes Class Reference

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

#include <uadoublecomplexnumbertype.h>

Public Member Functions

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

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

See also
UaDoubleComplexNumberType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaDoubleComplexNumberTypes::UaDoubleComplexNumberTypes ( const UaDoubleComplexNumberTypes other)

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

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

Constructs an instance of the class UaDoubleComplexNumberTypes using a raw OpcUa_DoubleComplexNumberType array.

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

Member Function Documentation

void UaDoubleComplexNumberTypes::attach ( OpcUa_UInt32  length,
OpcUa_DoubleComplexNumberType *  data 
)

Attach to a raw OpcUa_DoubleComplexNumberType array.

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

Attach to a raw OpcUa_DoubleComplexNumberType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_DoubleComplexNumberType * UaDoubleComplexNumberTypes::detach ( )

Detach from the internal OpcUa_DoubleComplexNumberType 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_DoubleComplexNumberType array
bool UaDoubleComplexNumberTypes::operator!= ( const UaDoubleComplexNumberTypes other) const

Compare two UaDoubleComplexNumberTypes.

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

Assignment operator.

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

Compare two UaDoubleComplexNumberTypes.

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

Index operator.

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

Index operator.

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