C++ class to access MATLAB struct arrays
Use StructArray
objects to work with MATLAB® struct arrays. To access a field for a single element in the
array, use the field name. To create a StructArray
object,
call createStructArray
in
the ArrayFactory
class.
Namespace: | matlab::data |
Base class: | TypedArray<Struct> |
Include: | StructArray.hpp |
StructArray(const StructArray& rhs)
StructArray(const Array& rhs)
Creates a shared data copy of a StructArray
object.
|
Value to copy. |
|
Value specified as
|
|
Type of input |
StructArray& operator=(const StructArray& rhs)
StructArray& operator=(const Array& rhs)
Assigns a shared data copy to a StructArray
object.
|
Value to copy. |
|
Value specified as
|
|
Updated instance. |
|
Type of input |
StructArray(StructArray&& rhs)
StructArray(Array&& rhs)
Moves contents of a StructArray
object to a new
instance.
|
Value to move. |
|
Value specified as
|
|
Type of input |
StructArray& operator=(StructArray&& rhs)
Assigns the input to this StructArray
object.
|
Value to move. |
|
Updated instance. |
None
~StructArray()
Free memory for StructArray
object.
getFieldNames
Range<ForwardIterator, MatlabFieldIdentifier const> getFieldNames() const
|
Contains |
None
getNumberOfFields
size_t getNumberOfFields() const
|
Number of fields. |
None