Main Content

matlab::data::Reference<StructArray>

C++ class to get reference to StructArray

Description

The StructArrayExt class extends the APIs available to a reference to a StructArray.

Class Details

Namespace:

matlab::data

Base class:

Reference<Array>

Include:

TypedArrayRef.hpp

Member Functions

getFieldNames

Range<ForwardIterator, MATLABFieldIdentifier const> getFieldNames() const
Returns

Range<ForwardIterator, MatlabFieldIdentifier const>

Contains begin and end methods that enable access to all fields in StructArray object.

Throws

None

getNumberOfFields

size_t getNumberOfFields() const
Returns

size_t

Number of fields.

Throws

None

Introduced in R2017b