C++ Based OPC UA Client/Server SDK  1.5.5.355

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

#include <uadeletenodesitem.h>

Public Member Functions

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

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

See also
UaDeleteNodesItem for information about the encapsulated structure.

Constructor & Destructor Documentation

UaDeleteNodesItems::UaDeleteNodesItems ( const UaDeleteNodesItems other)

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

Parameters
otherthe other UaDeleteNodesItems used to initialize the object
UaDeleteNodesItems::UaDeleteNodesItems ( OpcUa_Int32  length,
OpcUa_DeleteNodesItem data 
)

Constructs an instance of the class UaDeleteNodesItems using a raw OpcUa_DeleteNodesItem array.

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

Member Function Documentation

void UaDeleteNodesItems::attach ( OpcUa_UInt32  length,
OpcUa_DeleteNodesItem data 
)

Attach to a raw OpcUa_DeleteNodesItem array.

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

Attach to a raw OpcUa_DeleteNodesItem array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_DeleteNodesItem * UaDeleteNodesItems::detach ( )

Detach from the internal OpcUa_DeleteNodesItem 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_DeleteNodesItem array
bool UaDeleteNodesItems::operator!= ( const UaDeleteNodesItems other) const

Compare two UaDeleteNodesItems.

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

Assignment operator.

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

Compare two UaDeleteNodesItems.

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

Index operator.

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

Index operator.

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