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

#include <algorithms/random.h>

Inheritance diagram for algorithms::RandomSvc:
[legend]

Public Types

using value_type = detail::CachedBitGenerator::result_type
Public Types inherited from algorithms::Configurable
using PropertyMap = std::map<std::string_view, PropertyBase&>

Public Member Functions

Generator generator ()
void init ()
void init (const RandomEngineCB &gen)
RandomEngineCB createEngine (const size_t seed=1)
Public Member Functions inherited from algorithms::Service< RandomSvc >
 Service (std::string_view name)
Public Member Functions inherited from algorithms::ServiceBase
bool ready () const
void ready (bool state)
Public Member Functions inherited from algorithms::Configurable
template<typename T>
void setProperty (std::string_view name, T &&value)
template<typename T>
T getProperty (std::string_view name) const
const PropertyMap & getProperties () const
bool hasProperty (std::string_view name) const
auto missingProperties () const
void validate () const
Public Member Functions inherited from algorithms::NameMixin
 NameMixin (std::string_view name, std::string_view description)
std::string_view name () const
std::string_view description () const
Public Member Functions inherited from algorithms::LoggerMixin
 LoggerMixin (std::string_view caller, const LogLevel threshold=LogSvc::instance().defaultLevel())
 LoggerMixin (const LoggerMixin &)=delete
LoggerMixin & operator= (const LoggerMixin &)=delete
void level (const LogLevel threshold)
LogLevel level () const

Additional Inherited Members

Static Public Member Functions inherited from algorithms::Service< RandomSvc >
static RandomSvc & instance ()
Protected Member Functions inherited from algorithms::LoggedService< RandomSvc >
 LoggedService (std::string_view name)
Protected Member Functions inherited from algorithms::LoggerMixin
detail::LoggerStream critical () const
detail::LoggerStream error () const
detail::LoggerStream warning () const
detail::LoggerStream info () const
detail::LoggerStream debug () const
detail::LoggerStream trace () const
void critical (std::string_view msg) const
void error (std::string_view msg) const
void warning (std::string_view msg) const
void info (std::string_view msg) const
void debug (std::string_view msg) const
void trace (std::string_view msg) const
template<typename ... T>
constexpr void critical (fmt::format_string< T... > fmt, T &&... args) const
template<typename ... T>
constexpr void error (fmt::format_string< T... > fmt, T &&... args) const
template<typename ... T>
constexpr void warning (fmt::format_string< T... > fmt, T &&... args) const
template<typename ... T>
constexpr void info (fmt::format_string< T... > fmt, T &&... args) const
template<typename ... T>
constexpr void debug (fmt::format_string< T... > fmt, T &&... args) const
template<typename ... T>
constexpr void trace (fmt::format_string< T... > fmt, T &&... args) const
bool aboveCriticalThreshold () const
bool aboveErrorThreshold () const
bool aboveWarningThreshold () const
bool aboveInfoThreshold () const
bool aboveDebugThreshold () const
bool aboveTraceThreshold () const
template<class ErrorType = Error>
void raise (std::string_view msg) const
template<LogLevel l, typename ... T>
constexpr void report_fmt (fmt::format_string< T... > fmt, T &&... args) const
Static Protected Member Functions inherited from algorithms::LoggerMixin
static std::ostream & endmsg (std::ostream &os)

Detailed Description

Definition at line 67 of file random.h.

Member Typedef Documentation

◆ value_type

Member Function Documentation

◆ createEngine()

RandomEngineCB algorithms::RandomSvc::createEngine ( const size_t seed = 1)
inline

Definition at line 96 of file random.h.

◆ generator()

Generator algorithms::RandomSvc::generator ( )
inline

Definition at line 71 of file random.h.

◆ init() [1/2]

void algorithms::RandomSvc::init ( )
inline

Definition at line 77 of file random.h.

◆ init() [2/2]

void algorithms::RandomSvc::init ( const RandomEngineCB & gen)
inline

Definition at line 83 of file random.h.


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