|
mCRL2
|
Iterator for term_appl. More...
#include <aterm_appl_iterator.h>
Public Types | |
| using | value_type = Term |
| using | reference = const Term & |
| using | pointer = const Term * |
| using | difference_type = ptrdiff_t |
| using | iterator_category = std::random_access_iterator_tag |
Public Member Functions | |
| const Term & | operator* () const |
| The dereference operator. | |
| const Term * | operator-> () const |
| Dereference the current iterator. | |
| const Term & | operator[] (difference_type n) const |
| The dereference operator. | |
| term_appl_iterator & | operator++ () |
| Prefix increment. | |
| term_appl_iterator | operator++ (int) |
| Postfix increment. | |
| term_appl_iterator & | operator-- () |
| Prefix decrement. | |
| term_appl_iterator | operator-- (int) |
| Post decrement an iterator. | |
| term_appl_iterator & | operator+= (difference_type n) |
| Increase the iterator with n steps. | |
| term_appl_iterator & | operator-= (difference_type n) |
| Decrease the iterator with n steps. | |
| term_appl_iterator | operator+ (ptrdiff_t n) const |
| Increase by a constant value. | |
| term_appl_iterator | operator- (ptrdiff_t n) const |
| Decrease by a constant value. | |
| ptrdiff_t | operator- (const term_appl_iterator &other) const |
| The negative distance from this to the other iterator. | |
| ptrdiff_t | distance_to (const term_appl_iterator &other) const |
| Provide the distance to the other iterator. | |
| bool | operator== (const term_appl_iterator &other) const |
| Equality of iterators. | |
| std::strong_ordering | operator<=> (const term_appl_iterator &other) const |
| Inequality of iterators. | |
Protected Member Functions | |
| term_appl_iterator (const Term *t) | |
| Constructor. | |
Protected Attributes | |
| const Term * | m_term |
Friends | |
| class | aterm |
| template<IsATerm Derived, IsATerm Base> requires std::is_base_of_v<aterm, Base> && std::is_base_of_v<aterm, Derived> | |
| term_appl_iterator< Derived > | detail::aterm_appl_iterator_cast (term_appl_iterator< Base > a) |
Iterator for term_appl.
Definition at line 24 of file aterm_appl_iterator.h.
| using atermpp::term_appl_iterator< Term >::difference_type = ptrdiff_t |
Definition at line 46 of file aterm_appl_iterator.h.
| using atermpp::term_appl_iterator< Term >::iterator_category = std::random_access_iterator_tag |
Definition at line 47 of file aterm_appl_iterator.h.
| using atermpp::term_appl_iterator< Term >::pointer = const Term* |
Definition at line 45 of file aterm_appl_iterator.h.
| using atermpp::term_appl_iterator< Term >::reference = const Term& |
Definition at line 44 of file aterm_appl_iterator.h.
| using atermpp::term_appl_iterator< Term >::value_type = Term |
Definition at line 43 of file aterm_appl_iterator.h.
|
inlineprotected |
Constructor.
| t | A pointer of an array of terms over which the iterator will range. |
Definition at line 38 of file aterm_appl_iterator.h.
|
inline |
Provide the distance to the other iterator.
| other | the other iterator. |
Definition at line 150 of file aterm_appl_iterator.h.
|
inline |
The dereference operator.
Definition at line 51 of file aterm_appl_iterator.h.
|
inline |
Increase by a constant value.
Definition at line 125 of file aterm_appl_iterator.h.
|
inline |
Prefix increment.
Definition at line 73 of file aterm_appl_iterator.h.
|
inline |
Postfix increment.
Definition at line 81 of file aterm_appl_iterator.h.
|
inline |
Increase the iterator with n steps.
| n | The difference with which the iterator is increased. |
Definition at line 108 of file aterm_appl_iterator.h.
|
inline |
The negative distance from this to the other iterator.
| other | the other iterator. |
Definition at line 142 of file aterm_appl_iterator.h.
|
inline |
Decrease by a constant value.
Definition at line 133 of file aterm_appl_iterator.h.
|
inline |
Prefix decrement.
Definition at line 90 of file aterm_appl_iterator.h.
|
inline |
Post decrement an iterator.
Definition at line 98 of file aterm_appl_iterator.h.
|
inline |
Decrease the iterator with n steps.
| n | a difference with which the iterator is decreased. |
Definition at line 117 of file aterm_appl_iterator.h.
|
inline |
Dereference the current iterator.
Definition at line 58 of file aterm_appl_iterator.h.
|
inline |
Inequality of iterators.
| other | The iterator with which this iterator is compared. |
Definition at line 167 of file aterm_appl_iterator.h.
|
inline |
Equality of iterators.
| other | The iterator with which this iterator is compared. |
Definition at line 159 of file aterm_appl_iterator.h.
|
inline |
The dereference operator.
| n | The index of the element to be dereferenced. |
Definition at line 66 of file aterm_appl_iterator.h.
|
friend |
Definition at line 26 of file aterm_appl_iterator.h.
|
friend |
|
protected |
Definition at line 34 of file aterm_appl_iterator.h.