SPH
Public Member Functions | List of all members
BenzAsphaugRng Class Reference

Random number generator used in code SPH5 of Benz & Asphaug (1994). More...

#include <Rng.h>

Inheritance diagram for BenzAsphaugRng:
Noncopyable

Public Member Functions

 BenzAsphaugRng (const int seed)
 
 BenzAsphaugRng (BenzAsphaugRng &&other)
 
Float operator() (const int s=0)
 
- Public Member Functions inherited from Noncopyable
 Noncopyable ()=default
 
 Noncopyable (const Noncopyable &)=delete
 
 Noncopyable (Noncopyable &&)=default
 
Noncopyableoperator= (const Noncopyable &)=delete
 
Noncopyableoperator= (Noncopyable &&)=default
 

Detailed Description

Random number generator used in code SPH5 of Benz & Asphaug (1994).

Reimplemented for reproducibility of results.

Definition at line 43 of file Rng.h.

Constructor & Destructor Documentation

◆ BenzAsphaugRng() [1/2]

NAMESPACE_SPH_BEGIN BenzAsphaugRng::BenzAsphaugRng ( const int  seed)
explicit

Definition at line 5 of file Rng.cpp.

◆ BenzAsphaugRng() [2/2]

BenzAsphaugRng::BenzAsphaugRng ( BenzAsphaugRng &&  other)

Definition at line 11 of file Rng.cpp.

Member Function Documentation

◆ operator()()

Float BenzAsphaugRng::operator() ( const int  s = 0)

Definition at line 18 of file Rng.cpp.


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