Celeritas 0.6.0-2+develop.96611fab
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
celeritas::CachedRngEngine< Engine, N > Class Template Reference

Store several PRNG engine results and return them. More...

#include <CachedRngEngine.hh>

Public Types

Type aliases
using result_type = typename Engine::result_type
 

Public Member Functions

CELER_FUNCTION CachedRngEngine (Engine &e)
 Save values on construction.
 
CELER_FUNCTION result_type operator() ()
 Return the next pseudorandom number in the sequence.
 
CELER_CONSTEXPR_FUNCTION size_type remaining () const
 Get the number of remaining samples.
 

Static Public Member Functions

static CELER_CONSTEXPR_FUNCTION result_type min ()
 Lowest value potentially generated.
 
static CELER_CONSTEXPR_FUNCTION result_type max ()
 Highest value potentially generated.
 
static CELER_CONSTEXPR_FUNCTION size_type size ()
 Get the total number of stored samples.
 

Detailed Description

template<class Engine, size_type N>
class celeritas::CachedRngEngine< Engine, N >

Store several PRNG engine results and return them.


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