Implementation detail for a normalize range adaptor object. More...
#include <normalize.hpp>
Public Member Functions | |
template<class ExecutionPolicy , class Range , std::enable_if_t< std::is_execution_policy_v< std::decay_t< ExecutionPolicy >>, int > = 0, std::enable_if_t< ranges::range< Range >, int > = 0> | |
constexpr auto | operator() (ExecutionPolicy &&policy, Range &range) const -> Range & |
Overload that uses a default normalization factor. More... | |
template<class ExecutionPolicy , class Range , std::enable_if_t< std::is_execution_policy_v< std::decay_t< ExecutionPolicy >>, int > = 0, std::enable_if_t< ranges::range< Range >, int > = 0> | |
constexpr auto | operator() (ExecutionPolicy &&policy, Range &range, double factor) const -> Range & |
Overload that implements the normalize algorithm. More... | |
template<class ExecutionPolicy , std::enable_if_t< std::is_execution_policy_v< ExecutionPolicy >, int > = 0> | |
constexpr auto | operator() (ExecutionPolicy policy) const |
Overload that returns an action closure to compose with other actions. More... | |
template<class ExecutionPolicy , std::enable_if_t< std::is_execution_policy_v< ExecutionPolicy >, int > = 0> | |
constexpr auto | operator() (ExecutionPolicy policy, double factor) const |
Overload that returns an action closure to compose with other actions. More... | |
template<class Range , class ExecutionPolicy , std::enable_if_t< ranges::range< Range >, int > = 0, std::enable_if_t< std::is_execution_policy_v< ExecutionPolicy >, int > = 0> | |
constexpr auto | operator() (Range &&range, double factor, ExecutionPolicy policy) const -> Range & |
Overload that re-orders arguments from an action closure. More... | |
template<class Range , class ExecutionPolicy , std::enable_if_t< ranges::range< Range >, int > = 0, std::enable_if_t< std::is_execution_policy_v< ExecutionPolicy >, int > = 0> | |
constexpr auto | operator() (Range &&range, ExecutionPolicy policy) const -> Range & |
Overload that re-orders arguments from an action closure. More... | |
Implementation detail for a normalize range adaptor object.
Definition at line 38 of file normalize.hpp.
|
inlineconstexpr |
Overload that uses a default normalization factor.
The default normalization factor is the total sum of weights.
Definition at line 83 of file normalize.hpp.
|
inlineconstexpr |
Overload that implements the normalize algorithm.
ExecutionPolicy | An execution policy. |
Range | An input range. |
policy | The execution policy to use. |
range | An existing range to apply this action to. |
factor | The normalization factor. |
Definition at line 52 of file normalize.hpp.
|
inlineconstexpr |
Overload that returns an action closure to compose with other actions.
Definition at line 124 of file normalize.hpp.
|
inlineconstexpr |
Overload that returns an action closure to compose with other actions.
Definition at line 118 of file normalize.hpp.
|
inlineconstexpr |
Overload that re-orders arguments from an action closure.
Definition at line 102 of file normalize.hpp.
|
inlineconstexpr |
Overload that re-orders arguments from an action closure.
Definition at line 112 of file normalize.hpp.