C++ Based OPC UA Client/Server SDK  1.5.5.355

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

#include <uaarraytemplates.h>

Public Member Functions

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

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

Constructor & Destructor Documentation

UaNodeTypeDescriptions::UaNodeTypeDescriptions ( const UaNodeTypeDescriptions other)

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

Parameters
otherthe other NodeTypeDescriptions used to initialize the object
UaNodeTypeDescriptions::UaNodeTypeDescriptions ( OpcUa_Int32  length,
OpcUa_NodeTypeDescription data 
)

Constructs an instance of the class UaNodeTypeDescription using a raw OpcUa_NodeTypeDescription array.

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

Member Function Documentation

void UaNodeTypeDescriptions::attach ( OpcUa_UInt32  length,
OpcUa_NodeTypeDescription data 
)

Attach to a raw OpcUa_NodeTypeDescription array.

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

Attach to a raw OpcUa_NodeTypeDescription array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_NodeTypeDescription * UaNodeTypeDescriptions::detach ( )

Detach from the internal OpcUa_NodeTypeDescription 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_NodeTypeDescription array
bool UaNodeTypeDescriptions::operator!= ( const UaNodeTypeDescriptions other) const

Compare two UaNodeTypeDescriptions.

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

Assignment operator.

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

Compare two UaNodeTypeDescriptions.

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

Index operator.

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

Index operator.

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