mCRL2
|
Iterator for term_appl. More...
#include <aterm_appl_iterator.h>
Public Types | |
typedef Term | value_type |
typedef const Term & | reference |
typedef const Term * | pointer |
typedef ptrdiff_t | difference_type |
typedef std::random_access_iterator_tag | iterator_category |
Public Member Functions | |
term_appl_iterator (const term_appl_iterator &other) | |
The copy constructor. | |
term_appl_iterator & | operator= (const term_appl_iterator &other) |
The assignment operator. | |
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. | |
bool | operator!= (const term_appl_iterator &other) const |
Inequality of iterators. | |
bool | operator< (const term_appl_iterator &other) const |
Comparison of iterators. | |
bool | operator<= (const term_appl_iterator &other) const |
Comparison of iterators. | |
bool | operator> (const term_appl_iterator &other) const |
Comparison of iterators. | |
bool | operator>= (const term_appl_iterator &other) const |
Comparison of iterators. | |
Protected Member Functions | |
term_appl_iterator (const Term *t) | |
Constructor. | |
Protected Attributes | |
const Term * | m_term |
Friends | |
class | aterm |
template<class Derived , class Base > | |
term_appl_iterator< Derived > | detail::aterm_appl_iterator_cast (term_appl_iterator< Base > a, typename std::enable_if< std::is_base_of< aterm, Base >::value &&std::is_base_of< aterm, Derived >::value >::type *) |
Iterator for term_appl.
Definition at line 22 of file aterm_appl_iterator.h.
typedef ptrdiff_t atermpp::term_appl_iterator< Term >::difference_type |
Definition at line 47 of file aterm_appl_iterator.h.
typedef std::random_access_iterator_tag atermpp::term_appl_iterator< Term >::iterator_category |
Definition at line 48 of file aterm_appl_iterator.h.
typedef const Term* atermpp::term_appl_iterator< Term >::pointer |
Definition at line 46 of file aterm_appl_iterator.h.
typedef const Term& atermpp::term_appl_iterator< Term >::reference |
Definition at line 45 of file aterm_appl_iterator.h.
typedef Term atermpp::term_appl_iterator< Term >::value_type |
Definition at line 44 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 39 of file aterm_appl_iterator.h.
|
inline |
The copy constructor.
other | The iterator that is copy constructed. |
Definition at line 52 of file aterm_appl_iterator.h.
|
inline |
Provide the distance to the other iterator.
other | the other iterator. |
Definition at line 166 of file aterm_appl_iterator.h.
|
inline |
Inequality of iterators.
other | The iterator with which this iterator is compared. |
Definition at line 183 of file aterm_appl_iterator.h.
|
inline |
The dereference operator.
Definition at line 67 of file aterm_appl_iterator.h.
|
inline |
Increase by a constant value.
Definition at line 141 of file aterm_appl_iterator.h.
|
inline |
Prefix increment.
Definition at line 89 of file aterm_appl_iterator.h.
|
inline |
Postfix increment.
Definition at line 97 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 124 of file aterm_appl_iterator.h.
|
inline |
The negative distance from this to the other iterator.
other | the other iterator. |
Definition at line 158 of file aterm_appl_iterator.h.
|
inline |
Decrease by a constant value.
Definition at line 149 of file aterm_appl_iterator.h.
|
inline |
Prefix decrement.
Definition at line 106 of file aterm_appl_iterator.h.
|
inline |
Post decrement an iterator.
Definition at line 114 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 133 of file aterm_appl_iterator.h.
|
inline |
Dereference the current iterator.
Definition at line 74 of file aterm_appl_iterator.h.
|
inline |
Comparison of iterators.
other | The iterator with which this iterator is compared. |
Definition at line 191 of file aterm_appl_iterator.h.
|
inline |
Comparison of iterators.
other | The iterator with which this iterator is compared. |
Definition at line 199 of file aterm_appl_iterator.h.
|
inline |
The assignment operator.
other | The term to be assigned. |
Definition at line 59 of file aterm_appl_iterator.h.
|
inline |
Equality of iterators.
other | The iterator with which this iterator is compared. |
Definition at line 175 of file aterm_appl_iterator.h.
|
inline |
Comparison of iterators.
other | The iterator with which this iterator is compared. |
Definition at line 207 of file aterm_appl_iterator.h.
|
inline |
Comparison of iterators.
other | The iterator with which this iterator is compared. |
Definition at line 215 of file aterm_appl_iterator.h.
|
inline |
The dereference operator.
n | The index of the element to be dereferenced. |
Definition at line 82 of file aterm_appl_iterator.h.
|
friend |
Definition at line 24 of file aterm_appl_iterator.h.
|
friend |
|
protected |
Definition at line 35 of file aterm_appl_iterator.h.