Geant4 11.1.1
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
 

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 167 of file G4INCLRandom.hh.

Member Typedef Documentation

◆ result_type

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

Definition at line 169 of file G4INCLRandom.hh.

Member Function Documentation

◆ max()

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

Definition at line 175 of file G4INCLRandom.hh.

175 {
176 return std::numeric_limits<Adapter::result_type>::max();
177 }

Referenced by operator()().

◆ min()

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

Definition at line 171 of file G4INCLRandom.hh.

171 {
172 return std::numeric_limits<Adapter::result_type>::min();
173 }

◆ operator()()

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

Definition at line 179 of file G4INCLRandom.hh.

179 {
180 #ifdef INCLXX_IN_GEANT4_MODE
181 return G4RandFlat::shootInt(INT_MAX);
182 #else
183 return shootInteger(max());
184 #endif
185 }
static constexpr result_type max()
T shootInteger(T n)
Definition: G4INCLRandom.hh:98
#define INT_MAX
Definition: templates.hh:90

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