algorithms  2.2.0
Framework-independent algorithms for the EIC
Loading...
Searching...
No Matches
algorithms::detail::CachedBitGenerator Class Reference

#include <algorithms/detail/random.h>

Public Types

using result_type = uint_fast64_t
using GenFunc = std::function<std::vector<result_type>(size_t )>

Public Member Functions

 CachedBitGenerator (const GenFunc &gen, const size_t cache_size)
result_type operator() ()

Static Public Member Functions

static constexpr result_type min ()
static constexpr result_type max ()

Detailed Description

Definition at line 18 of file random.h.

Member Typedef Documentation

◆ GenFunc

using algorithms::detail::CachedBitGenerator::GenFunc = std::function<std::vector<result_type>(size_t )>

Definition at line 21 of file random.h.

◆ result_type

Definition at line 20 of file random.h.

Constructor & Destructor Documentation

◆ CachedBitGenerator()

algorithms::detail::CachedBitGenerator::CachedBitGenerator ( const GenFunc & gen,
const size_t cache_size )
inline

Definition at line 22 of file random.h.

Member Function Documentation

◆ max()

constexpr result_type algorithms::detail::CachedBitGenerator::max ( )
inlinestaticconstexpr

Definition at line 35 of file random.h.

◆ min()

constexpr result_type algorithms::detail::CachedBitGenerator::min ( )
inlinestaticconstexpr

Definition at line 34 of file random.h.

◆ operator()()

result_type algorithms::detail::CachedBitGenerator::operator() ( )
inline

Definition at line 27 of file random.h.


The documentation for this class was generated from the following file:
  • core/include/algorithms/detail/random.h