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
ArrayRef
is defined asReference<Array>
in theTypedArrayRef.hpp
header file.CellArrayRef
is defined asReference<TypedArray<Array>>
in theTypedArrayRef.hpp
header file.CharArrayRef
is defined asTypedArrayRef<CHAR16_T>
in theCharArray.hpp
header file.EnumArrayRef
is defined asTypedArrayRef<Enumeration>
in theEnumArray.hpp
header file.SparseArrayRef
is defined asReference<SparseArray<T>>
in theSparseArrayRef.hpp
header file.StructArrayRef
is defined asReference<TypedArray<Struct>>
in theTypedArrayRef.hpp
header file.TypedArrayRef
is defined asReference<TypedArray<T>>
in theTypedArrayRef.hpp
header file.