#include <src/HiveNumbers.h>
Definition at line 28 of file HiveNumbers.h.
HiveRndm::HiveNumbers::HiveNumbers |
( |
| ) |
|
Standard constructor.
Definition at line 15 of file HiveNumbers.cpp.
const unsigned int m_buffer_size
std::vector< double > m_buffer
IRndmGen * m_generator
Pointer to random number generator.
unsigned int m_buffer_index
HiveRndm::HiveNumbers::HiveNumbers |
( |
const HiveNumbers & |
copy | ) |
|
Copy constructor.
Definition at line 20 of file HiveNumbers.cpp.
const unsigned int m_buffer_size
std::vector< double > m_buffer
IRndmGen * m_generator
Pointer to random number generator.
virtual unsigned long addRef()=0
Increment the reference count of Interface instance.
unsigned int m_buffer_index
Initializing constructor.
Definition at line 27 of file HiveNumbers.cpp.
31 if ( !status.
isSuccess() ) {
throw GaudiException(
"Initialization failed !",
"HiveRndm::HiveNumbers", status ); }
const unsigned int m_buffer_size
Define general base for Gaudi exception.
std::vector< double > m_buffer
IRndmGen * m_generator
Pointer to random number generator.
This class is used for returning status codes from appropriate routines.
virtual StatusCode initialize(const SmartIF< IRndmGenSvc > &svc, const IRndmGen::Param &par)
Initialization.
unsigned int m_buffer_index
HiveRndm::HiveNumbers::~HiveNumbers |
( |
| ) |
|
|
virtual |
Standard destructor.
Definition at line 35 of file HiveNumbers.cpp.
virtual StatusCode finalize()
Finalization.
const StatusCode & ignore() const
Ignore/check StatusCode.
Initializing constructor.
Definition at line 59 of file HiveNumbers.cpp.
62 if ( !status.
isSuccess() ) {
throw GaudiException(
"Initialization failed !",
"HiveRndm::HiveNumbers", status ); }
const unsigned int m_buffer_size
Define general base for Gaudi exception.
IRndmGen * m_generator
Pointer to random number generator.
This class is used for returning status codes from appropriate routines.
virtual StatusCode initialize(const SmartIF< IRndmGenSvc > &svc, const IRndmGen::Param &par)
Initialization.
unsigned int m_buffer_index
Finalization.
Definition at line 48 of file HiveNumbers.cpp.
virtual StatusCode finalize()=0
Finalize the generator.
constexpr static const auto SUCCESS
IRndmGen * m_generator
Pointer to random number generator.
virtual unsigned long release()=0
Release Interface instance.
const StatusCode & ignore() const
Ignore/check StatusCode.
Initialization.
- Fix-Me:
- : this is a hack, but I do not have the time to review the correct constantness of all the methods
Definition at line 38 of file HiveNumbers.cpp.
virtual StatusCode generator(const IRndmGen::Param &par, IRndmGen *&refpGen)=0
Add a Generator factory.
IRndmGen * m_generator
Pointer to random number generator.
bool isValid() const
Allow for check if smart pointer is valid.
constexpr static const auto FAILURE
Initialization.
Definition at line 66 of file HiveNumbers.cpp.
virtual StatusCode initialize(const SmartIF< IRndmGenSvc > &svc, const IRndmGen::Param &par)
Initialization.
HiveRndm::HiveNumbers::operator bool |
( |
| ) |
const |
|
inline |
Check if the number supply is possible.
Definition at line 59 of file HiveNumbers.h.
IRndmGen * m_generator
Pointer to random number generator.
double HiveRndm::HiveNumbers::operator() |
( |
| ) |
|
|
inline |
Operator () for the use within STL.
Definition at line 61 of file HiveNumbers.h.
61 {
return this->
shoot(); }
double shoot()
Pop a new number from the buffer.
double HiveRndm::HiveNumbers::pop |
( |
| ) |
|
|
inline |
Pop a new number from the buffer.
Definition at line 63 of file HiveNumbers.h.
63 {
return this->
shoot(); }
double shoot()
Pop a new number from the buffer.
double HiveRndm::HiveNumbers::shoot |
( |
| ) |
|
|
inline |
Pop a new number from the buffer.
Definition at line 65 of file HiveNumbers.h.
const unsigned int m_buffer_size
std::vector< double > m_buffer
IRndmGen * m_generator
Pointer to random number generator.
StatusCode shootArray(std::vector< double > &array, long num, long start=0)
Pop a new number from the buffer.
unsigned int m_buffer_index
Pop a new number from the buffer.
Definition at line 78 of file HiveNumbers.h.
IRndmGen * m_generator
Pointer to random number generator.
This class is used for returning status codes from appropriate routines.
constexpr static const auto FAILURE
virtual StatusCode shootArray(std::vector< double > &array, long howmany, long start=0) const =0
Multiple shots returning vector with random number according to specified distribution.
static HiveNumbersMutex m_genMutex
unsigned int HiveRndm::HiveNumbers::m_buffer_index |
|
private |
const unsigned int HiveRndm::HiveNumbers::m_buffer_size |
|
private |
IRndmGen* HiveRndm::HiveNumbers::m_generator |
|
protected |
Pointer to random number generator.
Definition at line 37 of file HiveNumbers.h.
The documentation for this class was generated from the following files: