#include <src/HiveNumbers.h>
Definition at line 29 of file HiveNumbers.h.
HiveRndm::HiveNumbers::HiveNumbers |
( |
| ) |
|
Standard constructor.
Definition at line 16 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 22 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 32 of file HiveNumbers.cpp.
38 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 43 of file HiveNumbers.cpp.
virtual StatusCode finalize()
Finalization.
const StatusCode & ignore() const
Ignore/check StatusCode.
Initializing constructor.
Definition at line 69 of file HiveNumbers.cpp.
74 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 57 of file HiveNumbers.cpp.
virtual StatusCode finalize()=0
Finalize the generator.
IRndmGen * m_generator
Pointer to random number generator.
constexpr static const auto SUCCESS
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 46 of file HiveNumbers.cpp.
constexpr static const auto FAILURE
TYPE * get() const
Get interface pointer.
IRndmGen * m_generator
Pointer to random number generator.
Random Generator service interface definition Definition of a interface for a service to access rando...
bool isValid() const
Allow for check if smart pointer is valid.
Initialization.
Definition at line 79 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 61 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 63 of file HiveNumbers.h.
63 {
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 65 of file HiveNumbers.h.
65 {
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 67 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 81 of file HiveNumbers.h.
constexpr static const auto FAILURE
IRndmGen * m_generator
Pointer to random number generator.
This class is used for returning status codes from appropriate routines.
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 39 of file HiveNumbers.h.
The documentation for this class was generated from the following files: