OpenKalman
|
Namespace for generalized views. More...
Typedefs | |
template<typename R , std::enable_if_t< viewable_collection< R >, int > = 0> | |
using | all_t = decltype(all(std::declval< R >())) |
Calculates the suitable collection_view type of a viewable_collection type. More... | |
Variables | |
constexpr detail::all_closure | all |
a std::ranges::range_adaptor_closure which returns a view to all members of its collection argument. More... | |
constexpr detail::concat_adaptor | concat |
a std::ranges::range_adaptor_closure for a set of concatenated collection objects. | |
constexpr detail::generate_adaptor | generate |
a collection_view generator associated with generate_view. More... | |
constexpr detail::iota_adapter | iota |
a RangeAdapterObject associated with iota_view. More... | |
constexpr detail::repeat_adaptor | repeat |
a std::ranges::range_adaptor_closure for a set of repeatenated collection objects. | |
constexpr detail::replicate_adaptor | replicate |
a std::ranges::range_adaptor_closure associated with replicate_view. More... | |
constexpr detail::slice_adapter | slice |
a RangeAdapterObject associated with slice_view. More... | |
constexpr detail::update_adaptor | update |
a std::ranges::range_adaptor_closure associated with update_view. More... | |
Namespace for generalized views.
using OpenKalman::collections::views::all_t = typedef decltype(all(std::declval<R>())) |
Calculates the suitable collection_view type of a viewable_collection type.
This is rougly equivalent to std::ranges::views::all, except in the context of a collection
|
inline |
a std::ranges::range_adaptor_closure which returns a view to all members of its collection argument.
Examples:
|
inline |
a collection_view generator associated with generate_view.
The expression views::generate(f, s)
is expression-equivalent to generate_view(f, s)
.
|
inline |
a RangeAdapterObject associated with iota_view.
The expression views::iota(arg)
is expression-equivalent to iota_view(arg)
for any suitable collection arg.
|
inline |
a std::ranges::range_adaptor_closure associated with replicate_view.
The expression views::replicate{f}(arg)
is expression-equivalent to replicate_view(arg, f)
for any suitable viewable_collection arg.
|
inline |
a RangeAdapterObject associated with slice_view.
The expression views::slice(arg)
is expression-equivalent to slice_view(arg)
for any suitable collection arg.
|
inline |
a std::ranges::range_adaptor_closure associated with update_view.
The expression views::update(arg, f)
is expression-equivalent to update_view(views::all(arg), f)
for any suitable viewable_collection arg.