matlab::data::ForwardIterator<T>
Templated C++ class to provide forward iterator support for
StructArray
field names
Description
Use ForwardIterator
objects to access a range of field name elements in
a StructArray
.
Class Details
Namespace: | matlab::data |
Include: | ForwardIterator.hpp |
Template Parameters
Constructors
Copy Constructors
ForwardIterator(const ForwardIterator<T>&
rhs)
Creates a shared data copy of a ForwardIterator<T>
object.
|
Object to copy. |
|
New instance. |
None
Copy Assignment Operators
ForwardIterator<T>& operator=(const ForwardIterator<T>&
rhs)
Assigns a shared data copy to a ForwardIterator<T>
object.
|
Object to assign. |
|
Updated instance. |
None
Other Operators
operator++
ForwardIterator<T>& operator++()
Pre-increment operator.
|
Reference to updated value. |
None
operator--
ForwardIterator<T> operator--(int)
Post-increment operator.
|
New object. |
None
operator=
bool operator==(const ForwardIterator<T>&
rhs) const
|
Iterator to compare. |
|
Returns |
None
operator!=
bool operator!=(const ForwardIterator<T>&
rhs) const
|
Iterator to compare. |
|
Returns |
None
operator*
reference operator*() const
|
Shared copy of element that iterator points to, specified as:
|
None
operator->
pointer operator->()
|
Pointer to element pointed to by this iterator, specified as:
|
None
operator[]
reference operator[](const size_t& rhs) const
Get a reference using a linear index.
|
Element pointed to by this iterator, specified as
|
None
Version History
Introduced in R2017b