interface type to construct a join_view with CTAD
More...
#include <detray/utils/ranges/join.hpp>
|
|
using | base_type = detray::ranges::join_view<range_t> |
| | Base joined-range implementation.
|
|
using | inner_iterator_t = detray::ranges::iterator_t<outer_value_t> |
| | Iterator over a single range.
|
|
using | iterator_t = detray::ranges::detail::join_iterator<range_t> |
| | Iterator that walks across all nested ranges.
|
|
using | outer_iterator_t = detray::ranges::iterator_t<range_t> |
| | Iterator over the range of ranges.
|
| using | outer_value_t |
| | Type of a single range.
|
|
using | value_t = std::iter_value_t<iterator_t> |
| | Element value type yielded by the joined view.
|
|
template<detray::ranges::range deduced_range_t>
requires (!std::same_as<deduced_range_t, join>) |
| constexpr | join (deduced_range_t &&ranges) |
| | Construct the adaptor from the outer range of nested ranges.
|
| template<detray::ranges::range deduced_range_t> |
| constexpr auto | operator() (deduced_range_t &&ranges) |
| | Call operator for range composition.
|
| join & | operator= (const join &other) |
| | Copy assignment operator.
|
|
constexpr | join_view ()=default |
| | Default constructor.
|
template<detray::ranges::range R>
requires (!std::same_as<R, join_view>) |
| constexpr | join_view (R &&ranges) |
| | Construct from a range of ranges.
|
| constexpr auto | begin () const -> iterator_t |
| constexpr auto | data () -> value_t * |
| constexpr auto | data () const -> const value_t * |
| constexpr auto | end () const -> iterator_t |
| constexpr auto | size () const noexcept -> std::size_t |
| constexpr decltype(auto) | back () const |
| | Return a reference to the last element.
|
| constexpr auto | data () const |
| | Return a pointer to the first element, or null for an empty view.
|
| constexpr auto | empty () const -> bool |
| | Check whether the view contains no elements.
|
| constexpr decltype(auto) | front () const |
| | Return a reference to the first element.
|
| constexpr | operator bool () const |
| | Test whether the view contains at least one element.
|
| constexpr decltype(auto) | operator[] (const dindex i) const |
| | Subscript operator that takes detray dindex.
|
| constexpr auto | size () const |
| | Return the number of elements in the view.
|
interface type to construct a join_view with CTAD
◆ join()
Construct the adaptor from the outer range of nested ranges.
- Parameters
-
| ranges | range whose nested ranges will be joined |
◆ operator()()
Call operator for range composition.
- Parameters
-
| ranges | outer range whose nested ranges will be joined |
- Returns
- view that iterates over the nested ranges in sequence
◆ operator=()
Copy assignment operator.
- Parameters
-
- Returns
- reference to this adaptor