C++ Based OPC UA Client/Server SDK  1.5.5.355

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

#include <uaarraytemplates.h>

Public Member Functions

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

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

Constructor & Destructor Documentation

UaInt64Array::UaInt64Array ( const UaInt64Array other)

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

Parameters
otherthe other Int64Array used to initialize the object
UaInt64Array::UaInt64Array ( OpcUa_Int32  length,
OpcUa_Int64 *  data 
)

Constructs an instance of the class UaInt64 using a raw OpcUa_Int64 array.

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

Member Function Documentation

void UaInt64Array::attach ( OpcUa_UInt32  length,
OpcUa_Int64 *  data 
)

Attach to a raw OpcUa_Int64 array.

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

Attach to a raw OpcUa_Int64 array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_Int64 * UaInt64Array::detach ( )

Detach from the internal OpcUa_Int64 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_Int64 array
bool UaInt64Array::operator!= ( const UaInt64Array other) const

Compare two UaInt64Array.

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

Assignment operator.

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

Compare two UaInt64Array.

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

Index operator.

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

Index operator.

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