Public Member Functions | List of all members
beluga::views::detail::sample_fn Struct Reference

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

#include <sample.hpp>

Inheritance diagram for beluga::views::detail::sample_fn:
Inheritance graph
[legend]

Public Member Functions

template<class Range , class URNG >
constexpr auto operator() (Range &&range, std::reference_wrapper< URNG > engine) const
 Overload that unwraps the engine reference from a view closure. More...
 
template<class T >
constexpr auto operator() (T &&t) const
 Overload that takes one argument. More...
 
template<class T , class U >
constexpr auto operator() (T &&t, U &&u) const
 Overload that takes two arguments. More...
 
template<class T , class U , class V >
constexpr auto operator() (T &&t, U &&u, V &v) const
 Overload that takes three arguments. More...
 

Additional Inherited Members

- Protected Member Functions inherited from beluga::views::detail::sample_base_fn
template<class Distribution , class URNG >
constexpr auto sample_from_distribution (Distribution distribution, URNG &engine) const
 Sample from random distributions. More...
 
template<class Range , class URNG >
constexpr auto sample_from_range (Range &&range, URNG &engine) const
 Sample from any range. More...
 
template<class Range , class Weights , class URNG >
constexpr auto sample_from_range (Range &&range, Weights &&weights, URNG &engine) const
 Sample from weighted ranges. More...
 

Detailed Description

Implementation detail for a sample range adaptor object.

Definition at line 170 of file sample.hpp.

Member Function Documentation

◆ operator()() [1/4]

template<class Range , class URNG >
constexpr auto beluga::views::detail::sample_fn::operator() ( Range &&  range,
std::reference_wrapper< URNG >  engine 
) const
inlineconstexpr

Overload that unwraps the engine reference from a view closure.

Definition at line 212 of file sample.hpp.

◆ operator()() [2/4]

template<class T >
constexpr auto beluga::views::detail::sample_fn::operator() ( T &&  t) const
inlineconstexpr

Overload that takes one argument.

Definition at line 197 of file sample.hpp.

◆ operator()() [3/4]

template<class T , class U >
constexpr auto beluga::views::detail::sample_fn::operator() ( T &&  t,
U &&  u 
) const
inlineconstexpr

Overload that takes two arguments.

Definition at line 181 of file sample.hpp.

◆ operator()() [4/4]

template<class T , class U , class V >
constexpr auto beluga::views::detail::sample_fn::operator() ( T &&  t,
U &&  u,
V &  v 
) const
inlineconstexpr

Overload that takes three arguments.

Definition at line 173 of file sample.hpp.


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


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