Templated C++ class to provide random access iterator
TypedIterator
is the return type of all begin
and
end
functions that support random access.
Namespace: | matlab::data |
Include: |
|
|
Type of element referred to. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
matlab::data::Array |
matlab::data::Struct |
matlab::data::Enumeration |
TypedIterator(const TypedIterator<T>& rhs)
Creates a shared data copy of a TypedIterator
object.
|
Value to copy. |
None
TypedIterator<T>& operator=(const TypedIterator<T>&
rhs)
Assigns a shared data copy to a TypedIterator
object.
|
Value to copy. |
|
Updated instance. |
None
TypedIterator(TypedIterator<T> &&rhs)
Moves contents of a TypedIterator
object to a new
instance.
|
Value to move. |
None
TypedIterator<T>& operator=(TypedIterator<T>&& rhs)
Assigns the input to this TypedIterator
object.
|
Value to move. |
|
Updated instance. |
None
operator++
TypedIterator<T>& operator++()
Pre-increment operator.
|
Original iterator. |
None
operator--
TypedIterator<T>& operator--()
Pre-decrement operator.
|
Original iterator. |
None
operator++
TypedIterator<T> operator++(int)
Post-increment operator.
|
Copy of original iterator. |
None
operator--
TypedIterator<T> operator--(int)
Post-decrement operator.
|
Copy of original iterator. |
None
operator+=
TypedIterator<T>& operator+=(difference_type
d)
Addition assignment operator.
|
Amount to add, specified as
|
|
Updated instance. |
None
operator-=
TypedIterator<T>& operator-=(difference_type
d)
Subtraction assignment operator.
|
Amount to subtract, specified as
|
|
Updated instance. |
None
operator!=
bool operator!=(const TypedIterator<T>&
rhs) const
|
Iterator to compare. |
|
Returns |
None
operator<
bool operator<(const TypedIterator<T>& rhs)
const
|
Iterator to compare. |
|
Returns |
operator>
bool operator>(const TypedIterator<T>&
rhs) const
|
Iterator to compare. |
|
Returns |
operator<=
bool operator<=(const TypedIterator<T>& rhs)
const
|
Iterator to compare. |
|
Returns |
None
operator>=
bool operator>=(const TypedIterator<T>& rhs)
const
|
Iterator to compare. |
|
Returns |
None
operator+
TypedIterator<T> operator+(difference_type d)
const
Creates an iterator that is added to this one by the amount passed in.
|
Amount to add, specified as
|
|
Updated instance. |
None
operator-
TypedIterator<T> operator-(difference_type d)
const
Creates an iterator that is decremented from this one by the amount passed in.
|
Amount to subtract, specified as
|
|
Updated instance. |
None
operator-
difference_type operator-(const TypedIterator<T>&
rhs) const
|
Iterator to compare. |
|
Difference between iterators, specified as
|
None
operator*
reference operator*() const
|
Element pointed to by this iterator, 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
operator==
bool operator==(const TypedIterator<T>&
rhs) const
|
Iterator to compare. |
|
Returns |
None