Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4INCL::Random::Adapter Class Reference

#include <G4INCLRandom.hh>

Public Types

using result_type = unsigned long long
 

Public Member Functions

result_type operator() () const
 

Static Public Member Functions

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

Detailed Description

Definition at line 169 of file G4INCLRandom.hh.

Member Typedef Documentation

◆ result_type

using G4INCL::Random::Adapter::result_type = unsigned long long

Definition at line 171 of file G4INCLRandom.hh.

Member Function Documentation

◆ max()

static constexpr result_type G4INCL::Random::Adapter::max ( )
inlinestaticconstexpr

Definition at line 177 of file G4INCLRandom.hh.

177 {
178 return std::numeric_limits<Adapter::result_type>::max();
179 }

Referenced by operator()().

◆ min()

static constexpr result_type G4INCL::Random::Adapter::min ( )
inlinestaticconstexpr

Definition at line 173 of file G4INCLRandom.hh.

173 {
174 return std::numeric_limits<Adapter::result_type>::min();
175 }

◆ operator()()

result_type G4INCL::Random::Adapter::operator() ( ) const
inline

Definition at line 181 of file G4INCLRandom.hh.

181 {
182
183 #ifdef INCLXX_IN_GEANT4_MODE
184 return G4RandFlat::shootInt(INT_MAX);
185 #else
186 return shootInteger(max());
187 #endif
188
189 }
static constexpr result_type max()
#define INT_MAX
Definition templates.hh:90

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