Public Member Functions | List of all members
beluga::actions::detail::normalize_base_fn Struct Reference

Implementation detail for a normalize range adaptor object. More...

#include <normalize.hpp>

Inheritance diagram for beluga::actions::detail::normalize_base_fn:
Inheritance graph
[legend]

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...
 

Detailed Description

Implementation detail for a normalize range adaptor object.

Definition at line 38 of file normalize.hpp.

Member Function Documentation

◆ operator()() [1/6]

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 beluga::actions::detail::normalize_base_fn::operator() ( ExecutionPolicy &&  policy,
Range &  range 
) const -> Range&
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.

◆ operator()() [2/6]

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 beluga::actions::detail::normalize_base_fn::operator() ( ExecutionPolicy &&  policy,
Range &  range,
double  factor 
) const -> Range&
inlineconstexpr

Overload that implements the normalize algorithm.

Template Parameters
ExecutionPolicyAn execution policy.
RangeAn input range.
Parameters
policyThe execution policy to use.
rangeAn existing range to apply this action to.
factorThe normalization factor.

Definition at line 52 of file normalize.hpp.

◆ operator()() [3/6]

template<class ExecutionPolicy , std::enable_if_t< std::is_execution_policy_v< ExecutionPolicy >, int > = 0>
constexpr auto beluga::actions::detail::normalize_base_fn::operator() ( ExecutionPolicy  policy) const
inlineconstexpr

Overload that returns an action closure to compose with other actions.

Definition at line 124 of file normalize.hpp.

◆ operator()() [4/6]

template<class ExecutionPolicy , std::enable_if_t< std::is_execution_policy_v< ExecutionPolicy >, int > = 0>
constexpr auto beluga::actions::detail::normalize_base_fn::operator() ( ExecutionPolicy  policy,
double  factor 
) const
inlineconstexpr

Overload that returns an action closure to compose with other actions.

Definition at line 118 of file normalize.hpp.

◆ operator()() [5/6]

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 beluga::actions::detail::normalize_base_fn::operator() ( Range &&  range,
double  factor,
ExecutionPolicy  policy 
) const -> Range&
inlineconstexpr

Overload that re-orders arguments from an action closure.

Definition at line 102 of file normalize.hpp.

◆ operator()() [6/6]

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 beluga::actions::detail::normalize_base_fn::operator() ( Range &&  range,
ExecutionPolicy  policy 
) const -> Range&
inlineconstexpr

Overload that re-orders arguments from an action closure.

Definition at line 112 of file normalize.hpp.


The documentation for this struct was generated from the following file:


beluga
Author(s):
autogenerated on Tue Jul 16 2024 02:59:54