|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Lazy view over multiple zipped containers (STL or Aleph). More...
#include <ah-zip-utils.H>
Public Types | |
| using | iterator = UniZipIterator< std::decay_t< Containers >... > |
| using | sentinel = UniZipSentinel |
| using | value_type = typename iterator::value_type |
Public Member Functions | |
| UniZipView (const Containers &... cs) | |
| iterator | begin () const |
| sentinel | end () const noexcept |
| O(1) end() using sentinel. | |
| bool | empty () const |
| size_t | size () const |
| Note: O(n) - iterates through all elements to count. | |
Private Attributes | |
| std::tuple< const std::decay_t< Containers > &... > | containers_ |
Lazy view over multiple zipped containers (STL or Aleph).
| Containers | Types of containers being zipped. |
Definition at line 370 of file ah-zip-utils.H.
| using Aleph::UniZipView< Containers >::iterator = UniZipIterator<std::decay_t<Containers>...> |
Definition at line 375 of file ah-zip-utils.H.
| using Aleph::UniZipView< Containers >::sentinel = UniZipSentinel |
Definition at line 376 of file ah-zip-utils.H.
| using Aleph::UniZipView< Containers >::value_type = typename iterator::value_type |
Definition at line 377 of file ah-zip-utils.H.
|
inlineexplicit |
Definition at line 379 of file ah-zip-utils.H.
|
inline |
Definition at line 382 of file ah-zip-utils.H.
References Aleph::UniZipView< Containers >::containers_, and Aleph::maps().
Referenced by Aleph::UniZipView< Containers >::empty(), and Aleph::UniZipView< Containers >::size().
|
inline |
Definition at line 395 of file ah-zip-utils.H.
References Aleph::UniZipView< Containers >::begin(), and Aleph::UniZipIterator< Containers >::has_curr().
|
inlinenoexcept |
O(1) end() using sentinel.
Definition at line 390 of file ah-zip-utils.H.
Referenced by Aleph::UniZipView< Containers >::size().
|
inline |
Note: O(n) - iterates through all elements to count.
Definition at line 401 of file ah-zip-utils.H.
References Aleph::UniZipView< Containers >::begin(), Aleph::count(), and Aleph::UniZipView< Containers >::end().
|
private |
Definition at line 372 of file ah-zip-utils.H.
Referenced by Aleph::UniZipView< Containers >::begin().