Vcsn
2.0
Be Rational
|
Composite iterator. More...
#include <cross.hh>
Public Types | |
using | iterators_type = IteratorsType |
Underlying iterators. More... | |
Public Member Functions | |
cross_iterator (const iterators_type &is, const iterators_type &ends) | |
template<typename OtherValue , typename OtherIterators > | |
cross_iterator (cross_iterator< OtherValue, OtherIterators > const &that) | |
cross_iterator & | operator++ () |
Advance to next position. More... | |
bool | operator!= (const cross_iterator &that) const |
value_type | operator* () const |
Public Attributes | |
iterators_type | is_ |
The current position. More... | |
iterators_type | begins_ |
The begins. More... | |
iterators_type | ends_ |
The ends. More... | |
Private Member Functions | |
void | done_ () |
We have reached the end, move all the cursors to this end. More... | |
int | next_ () |
Move to the next position. More... | |
template<std::size_t... I> | |
int | next_ (seq< I...>) |
void | reset_up_to_ (int n) |
Move beginning of ranges to their end, and align. More... | |
template<std::size_t... I> | |
void | reset_up_to_ (size_t n, seq< I...>) |
template<std::size_t... I> | |
bool | not_equal_ (const cross_iterator &that, seq< I...>) const |
template<std::size_t... I> | |
value_type | dereference_ (seq< I...>) const |
Tuple of values. More... | |
Friends | |
class | boost::iterator_core_access |
Composite iterator.
using vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::iterators_type = IteratorsType |
|
inline |
|
inline |
Definition at line 72 of file cross.hh.
References vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::is_.
|
inlineprivate |
Tuple of values.
Definition at line 169 of file cross.hh.
References vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::is_.
Referenced by vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::operator*().
|
inlineprivate |
We have reached the end, move all the cursors to this end.
Definition at line 107 of file cross.hh.
References vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::ends_, and vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::is_.
Referenced by vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::operator++().
|
inlineprivate |
Move to the next position.
Return the index of the lastest iterator that could move, -1 if we reached the end.
Definition at line 114 of file cross.hh.
References vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::reset_up_to_().
Referenced by vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::operator++().
|
inlineprivate |
|
inlineprivate |
Definition at line 159 of file cross.hh.
References vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::is_.
Referenced by vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::operator!=().
|
inline |
Definition at line 93 of file cross.hh.
References vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::not_equal_().
|
inline |
Definition at line 98 of file cross.hh.
References vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::dereference_().
|
inline |
Advance to next position.
Definition at line 86 of file cross.hh.
References vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::done_(), and vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::next_().
|
inlineprivate |
Move beginning of ranges to their end, and align.
Definition at line 142 of file cross.hh.
Referenced by vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::next_().
|
inlineprivate |
Definition at line 148 of file cross.hh.
References vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::begins_, and vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::is_.
|
friend |
iterators_type vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::begins_ |
The begins.
Definition at line 81 of file cross.hh.
Referenced by vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::reset_up_to_().
iterators_type vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::ends_ |
The ends.
Definition at line 83 of file cross.hh.
Referenced by vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::done_(), and vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::next_().
iterators_type vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::is_ |
The current position.
Definition at line 79 of file cross.hh.
Referenced by vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::cross_iterator(), vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::dereference_(), vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::done_(), vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::next_(), vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::not_equal_(), and vcsn::cross_sequences< Sequences >::cross_iterator< ValueType, IteratorsType >::reset_up_to_().