Array class for the UA stack structure OpcUa_ComplexNumberType.
More...
#include <uacomplexnumbertype.h>
Array class for the UA stack structure OpcUa_ComplexNumberType.
This class encapsulates an array of the native OpcUa_ComplexNumberType structure and handles memory allocation and cleanup for you.
- See also
- UaComplexNumberType for information about the encapsulated structure.
UaComplexNumberTypes::UaComplexNumberTypes |
( |
OpcUa_Int32 |
length, |
|
|
OpcUa_ComplexNumberType * |
data |
|
) |
| |
Constructs an instance of the class UaComplexNumberTypes using a raw OpcUa_ComplexNumberType array.
- Parameters
-
length | the length of the raw OpcUa_ComplexNumberType array |
data | the raw OpcUa_ComplexNumberType array |
void UaComplexNumberTypes::attach |
( |
OpcUa_UInt32 |
length, |
|
|
OpcUa_ComplexNumberType * |
data |
|
) |
| |
Attach to a raw OpcUa_ComplexNumberType array.
- Note
- Don't manually free the attached data afterwards, because UaComplexNumberTypes is responsible for it now.
- Parameters
-
length | the length of the raw OpcUa_ComplexNumberType array |
data | the raw OpcUa_ComplexNumberType array |
void UaComplexNumberTypes::attach |
( |
OpcUa_Int32 |
length, |
|
|
OpcUa_ComplexNumberType * |
data |
|
) |
| |
Attach to a raw OpcUa_ComplexNumberType array.
- Note
- Don't manually free the attached data afterwards, because UaComplexNumberTypes is responsible for it now.
- Parameters
-
length | the length of the raw OpcUa_ComplexNumberType array |
data | the raw OpcUa_ComplexNumberType array |
void UaComplexNumberTypes::create |
( |
OpcUa_UInt32 |
length | ) |
|
Clears the array and resizes to the given length.
- Parameters
-
length | the new length of the array |
OpcUa_ComplexNumberType * UaComplexNumberTypes::detach |
( |
| ) |
|
Detach from the internal OpcUa_ComplexNumberType 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_ComplexNumberType array
Compare two UaComplexNumberTypes.
- See also
- operator==
- Parameters
-
- Returns
- true if not equal, false otherwise.
Assignment operator.
- Parameters
-
const OpcUa_ComplexNumberType & UaComplexNumberTypes::operator[] |
( |
OpcUa_UInt32 |
index | ) |
const |
Index operator.
- Parameters
-
index | the index of the structure to return. |
OpcUa_ComplexNumberType & UaComplexNumberTypes::operator[] |
( |
OpcUa_UInt32 |
index | ) |
|
Index operator.
- Parameters
-
index | the index of the structure to return. |
void UaComplexNumberTypes::resize |
( |
OpcUa_UInt32 |
length | ) |
|
Resizes the array to a given length.
- Parameters
-
length | the new length of the array |
The documentation for this class was generated from the following files:
- D:/work/uasdkcpp/src/uabase/uabasecpp/uacomplexnumbertype.h
- D:/work/uasdkcpp/src/uabase/uabasecpp/uacomplexnumbertype.cpp