g4tools  5.4.0
Public Member Functions | Static Protected Member Functions | List of all members
tools::rtausmef Class Reference
Inheritance diagram for tools::rtausmef:
Inheritance graph
[legend]
Collaboration diagram for tools::rtausmef:
Collaboration graph
[legend]

Public Member Functions

 rtausmef (unsigned int a_seed=4357)
 
virtual ~rtausmef ()
 
 rtausmef (const rtausmef &a_from)
 
rtausmefoperator= (const rtausmef &a_from)
 
float shoot ()
 
- Public Member Functions inherited from tools::rtausmeui
 rtausmeui (unsigned int a_seed=1)
 
virtual ~rtausmeui ()
 
 rtausmeui (const rtausmeui &a_from)
 
rtausmeuioperator= (const rtausmeui &a_from)
 
void set_seed (unsigned int a_seed)
 
unsigned int seed () const
 
unsigned int shoot ()
 

Static Protected Member Functions

static float two_to_minus_32 ()
 
- Static Protected Member Functions inherited from tools::rtausmeui
static unsigned int LCG (unsigned int a_n)
 
static unsigned int TAUSWORTHE (unsigned int a_s, unsigned int a_a, unsigned int a_b, unsigned int a_c, unsigned int a_d)
 

Additional Inherited Members

- Protected Attributes inherited from tools::rtausmeui
unsigned int m_seed
 
unsigned int m_seed1
 
unsigned int m_seed2
 

Detailed Description

Definition at line 14 of file rtausmef.

Constructor & Destructor Documentation

◆ rtausmef() [1/2]

tools::rtausmef::rtausmef ( unsigned int  a_seed = 4357)
inline

Definition at line 19 of file rtausmef.

19 :parent(a_seed){}

◆ ~rtausmef()

virtual tools::rtausmef::~rtausmef ( )
inlinevirtual

Definition at line 20 of file rtausmef.

20 {}

◆ rtausmef() [2/2]

tools::rtausmef::rtausmef ( const rtausmef a_from)
inline

Definition at line 22 of file rtausmef.

22 :parent(a_from){}

Member Function Documentation

◆ operator=()

rtausmef& tools::rtausmef::operator= ( const rtausmef a_from)
inline

Definition at line 23 of file rtausmef.

23 {parent::operator=(a_from);return *this;}

◆ shoot()

float tools::rtausmef::shoot ( )
inline

Definition at line 30 of file rtausmef.

30 {return float(parent::shoot()) * two_to_minus_32();}

◆ two_to_minus_32()

static float tools::rtausmef::two_to_minus_32 ( )
inlinestaticprotected

Definition at line 25 of file rtausmef.

25  {
26  static const float s_v = ::ldexpf(1,-32);
27  return s_v;
28  }

The documentation for this class was generated from the following file:
tools::rtausmef::two_to_minus_32
static float two_to_minus_32()
Definition: rtausmef:25
tools::rtausmeui::shoot
unsigned int shoot()
Definition: rtausmeui:85
tools::rtausmeui::operator=
rtausmeui & operator=(const rtausmeui &a_from)
Definition: rtausmeui:58