matlab::data::Reference<Array>
C++ class to get reference to Array
Description
Use the Reference<Array> class to get a reference to an
Array element of a container object, such as a MATLAB® structure or cell array. The class is a base class for all reference types
that refer to arrays and provides basic array information. ArrayRef is
defined as:
using ArrayRef = Reference<Array>;
Class Details
|
Namespace: | matlab::data |
|
Include: | ArrayReferenceExt.hpp |
Member Functions
getType
ArrayType getType() const
|
|
Type of the array |
|
Not enough indices provided. |
|
Index provided is not valid for this |
|
|
getDimensions
ArrayDimensions getDimensions() const
|
|
|
|
Not enough indices provided. |
|
Index provided is not valid for this |
getNumberOfElements
size_t getNumberOfElements() const
|
|
Number of elements in array. |
|
Not enough indices provided. |
|
Index provided is not valid for this |
isEmpty
bool isEmpty() const
|
|
Returns true if array is empty, otherwise returns false. |
|
Not enough indices provided. |
|
Index provided is not valid for this |
Free Functions
getReadOnlyElements
template <typename T> Range<TypedIterator, T const> getReadOnlyElements(const Reference<Array>& ref)
Get a range containing the elements of the Array or
Reference<Array>. Iterators contained in the range are
const.
|
|
|
|
|
Range containing |
|
|
getWritableElements
template <typename T> Range<TypedIterator, T> getWritableElements(Reference<Array>& ref)
Get a range containing the elements of the Array or
Reference<Array>. Iterators contained in the range are
non-const.
|
|
|
|
|
Range containing |
|
|
Version History
Introduced in R2017b