matlab::data::StructArray
C++ class to access MATLAB struct arrays
Description
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.
Class Details
Namespace: | matlab::data |
Base class: | TypedArray<Struct> |
Include: | StructArray.hpp |
Constructors
Copy Constructors
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 |
Copy Assignment Operators
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 |
Move Constructors
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 |
Move Assignment Operators
StructArray& operator=(StructArray&& rhs)
Assigns the input to this StructArray
object.
|
Value to move. |
|
Updated instance. |
None
Destructor
~StructArray()
Description
Free memory for StructArray
object.
Member Functions
getFieldNames
Range<ForwardIterator, MatlabFieldIdentifier const> getFieldNames() const
|
Contains |
None
getNumberOfFields
size_t getNumberOfFields() const
|
Number of fields. |
None
Examples
Version History
Introduced in R2017b