MATLAB Data API Types
matlab::data::ArrayDimensions
ArrayDimensions is defined as
std::vector<size_t> in the
ArrayDimensions.hpp header file.
matlab::data::Enumeration
Enumeration is defined in the
Enumeration.hpp header file.
matlab::data::MATLABString
MATLABString is defined as optional<String>
in the String.hpp header file.
matlab::data::ObjectArray
ObjectArray is defined as TypedArray<Object> in the
ObjectArray.hpp header file.
matlab::data::String
String
is defined as std::basic_string<uchar> in the
String.hpp header file.
matlab::data::Struct
Struct is defined in the
Struct.hpp header file.
buffer_ptr_t and buffer_deleter_t
buffer_ptr_t is defined as std::unique_ptr<T[],
buffer_deleter_t<T>>, where buffer_deleter_t is
defined as void (*)(T*).
Use get() to access the data. Do not call
release(). For examples, see Pass Sparse Arrays to MATLAB from C++ and Create MATLAB Data Array and Manage Memory from User-Managed Buffer.
iterator
iterator is defined as TypedIterator<T>
in the TypedArray.hpp header file.
const_iterator
const_iterator is defined as TypedIterator<typename
std::add_const<T>::type> in the TypedArray.hpp
header file.
InputLayout
InputLayout is defined in the
InputLayout.hpp header file. The values for
InputLayout are COLUMN_MAJOR or
ROW_MAJOR.
reference
reference is defined in the TypedArray.hpp
header file as typename iterator::reference, where
iterator::reference is T& for
arithmetic types and Reference<T> for non-arithmetic
types.
const_reference
const_reference is defined in the
TypedArray.hpp header file as typename
const_iterator::reference, where
const_iterator::reference is T& for
arithmetic types and Reference<T> for non-arithmetic
types.
Reference Types
ArrayRefis defined asReference<Array>in theTypedArrayRef.hppheader file.CellArrayRefis defined asReference<TypedArray<Array>>in theTypedArrayRef.hppheader file.CharArrayRefis defined asTypedArrayRef<CHAR16_T>in theCharArray.hppheader file.EnumArrayRefis defined asTypedArrayRef<Enumeration>in theEnumArray.hppheader file.SparseArrayRefis defined asReference<SparseArray<T>>in theSparseArrayRef.hppheader file.StructArrayRefis defined asReference<TypedArray<Struct>>in theTypedArrayRef.hppheader file.TypedArrayRefis defined asReference<TypedArray<T>>in theTypedArrayRef.hppheader file.