Vcsn
2.0
Be Rational
|
Composite iterator. More...
#include <zip.hh>
Public Types | |
using | iterators_type = IteratorsType |
Underlying iterators. More... | |
Public Member Functions | |
zip_iterator (const iterators_type &is, const iterators_type &ends) | |
template<typename OtherValue , typename OtherIterators > | |
zip_iterator (zip_iterator< OtherValue, OtherIterators > const &that) | |
zip_iterator & | operator++ () |
Advance to next position. More... | |
value_type | operator* () const |
Public Attributes | |
iterators_type | is_ |
The current position. 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... | |
bool | next_ () |
Move to the next position. More... | |
template<std::size_t... I> | |
bool | next_ (seq< I...>) |
template<typename OtherValue , typename OtherIterators > | |
bool | equal (const zip_iterator< OtherValue, OtherIterators > &that) const |
template<typename OtherValue , typename OtherIterators , std::size_t... I> | |
bool | equal_ (const zip_iterator< OtherValue, OtherIterators > &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::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::iterators_type = IteratorsType |
|
inline |
|
inline |
Definition at line 71 of file zip.hh.
References vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::is_.
|
inlineprivate |
Tuple of values.
Definition at line 145 of file zip.hh.
References vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::is_.
Referenced by vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::operator*().
|
inlineprivate |
We have reached the end, move all the cursors to this end.
Definition at line 98 of file zip.hh.
References vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::ends_, and vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::is_.
Referenced by vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::operator++().
|
inlineprivate |
Definition at line 127 of file zip.hh.
References vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::equal_().
|
inlineprivate |
Definition at line 134 of file zip.hh.
References vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::is_.
Referenced by vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::equal().
|
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 105 of file zip.hh.
Referenced by vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::operator++().
|
inlineprivate |
Definition at line 111 of file zip.hh.
References vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::ends_, and vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::is_.
|
inline |
Definition at line 89 of file zip.hh.
References vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::dereference_().
|
inline |
Advance to next position.
Definition at line 82 of file zip.hh.
References vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::done_(), and vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::next_().
|
friend |
iterators_type vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::ends_ |
The ends.
Definition at line 79 of file zip.hh.
Referenced by vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::done_(), and vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::next_().
iterators_type vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::is_ |
The current position.
Definition at line 77 of file zip.hh.
Referenced by vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::dereference_(), vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::done_(), vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::equal_(), vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::next_(), and vcsn::zip_sequences< Sequences >::zip_iterator< ValueType, IteratorsType >::zip_iterator().