C++ Based OPC UA Client/Server/PubSub SDK  1.7.6.537
UaSimpleAttributeOperands Class Reference

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

#include <uaarraytemplates.h>

Public Member Functions

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

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

See also
UaSimpleAttributeOperand for information about the encapsulated structure.

Constructor & Destructor Documentation

UaSimpleAttributeOperands::UaSimpleAttributeOperands ( const UaSimpleAttributeOperands other)

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

Parameters
otherthe other SimpleAttributeOperands used to initialize the object
UaSimpleAttributeOperands::UaSimpleAttributeOperands ( OpcUa_Int32  length,
OpcUa_SimpleAttributeOperand data 
)

Constructs an instance of the class UaSimpleAttributeOperand using a raw OpcUa_SimpleAttributeOperand array.

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

Member Function Documentation

void UaSimpleAttributeOperands::attach ( OpcUa_UInt32  length,
OpcUa_SimpleAttributeOperand data 
)

Attach to a raw OpcUa_SimpleAttributeOperand array.

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

Attach to a raw OpcUa_SimpleAttributeOperand array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_SimpleAttributeOperand * UaSimpleAttributeOperands::detach ( )

Detach from the internal OpcUa_SimpleAttributeOperand 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_SimpleAttributeOperand array
bool UaSimpleAttributeOperands::operator!= ( const UaSimpleAttributeOperands other) const

Compare two UaSimpleAttributeOperands.

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

Assignment operator.

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

Compare two UaSimpleAttributeOperands.

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

Index operator.

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

Index operator.

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