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