|
ACTS
Experiment-independent tracking
|
Iterator implementation for the cartesian product view. More...
#include <detray/utils/ranges/cartesian_product.hpp>
Public Types | |
| using | difference_type = std::ptrdiff_t |
| Difference type used to report iterator distances. | |
| using | iterator_category = detray::ranges::bidirectional_iterator_tag |
| Iterator category supported by this product iterator. | |
| using | pointer = value_type * |
| Pointer type corresponding to the tuple value type. | |
| using | reference = value_type |
| Dereference result type. | |
| using | value_type = std::tuple<std::iter_reference_t<iterator_ts>...> |
| Tuple of references yielded by dereferencing the iterator. | |
Public Member Functions | |
| constexpr | cartesian_product_iterator ()=default |
| Default constructor required by LegacyIterator trait. | |
| constexpr | cartesian_product_iterator (dtuple< iterator_ts... > begins, dtuple< iterator_ts... > ends) |
Construct from a collection of begins and ends positions. | |
| constexpr decltype(auto) | operator* () const |
| constexpr bool | operator== (const cartesian_product_iterator &rhs) const |
| constexpr auto | operator++ () -> cartesian_product_iterator & |
| Increment iterators. | |
| constexpr auto | operator++ (int) -> cartesian_product_iterator |
| Advance to the next product element and return the previous iterator. | |
| constexpr auto | operator-- () -> cartesian_product_iterator & |
| Decrement iterators. | |
| constexpr auto | operator-- (int) -> cartesian_product_iterator |
| Move to the previous product element and return the previous iterator. | |
Iterator implementation for the cartesian product view.
|
constexpr |
Construct from a collection of begins and ends positions.
| begins | input range start iterators |
| ends | input range end iterators |
|
constexpr |
|
constexpr |
Increment iterators.
|
constexpr |
Advance to the next product element and return the previous iterator.
|
constexpr |
Decrement iterators.
|
constexpr |
Move to the previous product element and return the previous iterator.
|
constexpr |
| rhs | iterator to compare against |