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

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

#include <uasimpletypedescription.h>

Public Member Functions

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

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

See also
UaSimpleTypeDescription for information about the encapsulated structure.

Constructor & Destructor Documentation

UaSimpleTypeDescriptions::UaSimpleTypeDescriptions ( const UaSimpleTypeDescriptions other)

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

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

Constructs an instance of the class UaSimpleTypeDescriptions using a raw OpcUa_SimpleTypeDescription array.

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

Member Function Documentation

void UaSimpleTypeDescriptions::attach ( OpcUa_UInt32  length,
OpcUa_SimpleTypeDescription *  data 
)

Attach to a raw OpcUa_SimpleTypeDescription array.

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

Attach to a raw OpcUa_SimpleTypeDescription array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_SimpleTypeDescription * UaSimpleTypeDescriptions::detach ( )

Detach from the internal OpcUa_SimpleTypeDescription 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_SimpleTypeDescription array
bool UaSimpleTypeDescriptions::operator!= ( const UaSimpleTypeDescriptions other) const

Compare two UaSimpleTypeDescriptions.

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

Assignment operator.

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

Compare two UaSimpleTypeDescriptions.

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

Index operator.

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

Index operator.

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