|
Celeritas 0.7.0-dev.169+develop.bdc0041f6
|
Diagnostic wrapper that counts the number of calls to operator(). More...
#include <DiagnosticRngEngine.hh>
Public Types | |
Type aliases | |
| using | result_type = typename Engine::result_type |
| using | size_type = std::size_t |
Public Member Functions | |
| template<class... Args> | |
| DiagnosticRngEngine (Args &&... args) | |
| Forward construction arguments to the original engine. | |
| result_type | operator() () |
| Get a random number and increment the sample counter. | |
| size_type | count () const |
| Get the number of samples (DEPRECATED: use exchange_count) | |
| void | reset_count () |
| Reset the sample counter (DEPRECATED: use exchange_count) | |
| size_type | exchange_count () |
| Get and reset the counter. | |
Static Public Member Functions | |
| static constexpr result_type | min () |
| static constexpr result_type | max () |
Diagnostic wrapper that counts the number of calls to operator().
This wraps a low-level pseudorandom generator's call function. It can be used to determine the efficiency of rejection algorithms without changing any implementations.
|
inlinestaticconstexpr |
Forwarded functions
|
inlinestaticconstexpr |
Forwarded functions