C++ Based OPC UA Client/Server SDK  1.5.5.355

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

#include <uaaddnodesitem.h>

Public Member Functions

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

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

See also
UaAddNodesItem for information about the encapsulated structure.

Constructor & Destructor Documentation

UaAddNodesItems::UaAddNodesItems ( const UaAddNodesItems other)

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

Parameters
otherthe other UaAddNodesItems used to initialize the object
UaAddNodesItems::UaAddNodesItems ( OpcUa_Int32  length,
OpcUa_AddNodesItem data 
)

Constructs an instance of the class UaAddNodesItems using a raw OpcUa_AddNodesItem array.

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

Member Function Documentation

void UaAddNodesItems::attach ( OpcUa_UInt32  length,
OpcUa_AddNodesItem data 
)

Attach to a raw OpcUa_AddNodesItem array.

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

Attach to a raw OpcUa_AddNodesItem array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_AddNodesItem * UaAddNodesItems::detach ( )

Detach from the internal OpcUa_AddNodesItem 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_AddNodesItem array
bool UaAddNodesItems::operator!= ( const UaAddNodesItems other) const

Compare two UaAddNodesItems.

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

Assignment operator.

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

Compare two UaAddNodesItems.

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

Index operator.

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

Index operator.

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