matlab::data::Reference
C++ class to get reference toArray
Description
Use theReference
class to get a reference to anArray
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;
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
templateRange getReadOnlyElements(const Reference & ref)
得到一个包含o元素的范围f theArray
orReference
. Iterators contained in the range areconst
.
|
|
|
Range containing |
|
|
getWritableElements
templateRange getWritableElements(Reference & ref)
得到一个包含o元素的范围f theArray
orReference
. Iterators contained in the range are non-const
.
|
|
|
Range containing |
|
|