#include <RndmEngine.h>
Inheritance diagram for RndmEngine:

Public Methods | |
| StatusCode | queryInterface (const IID& riid, void** ppvInterface) |
| Query interface. More... | |
| virtual StatusCode | initialize () |
| Service override: initialisation. More... | |
| virtual StatusCode | finalize () |
| Service override: finalisation. More... | |
| virtual double | rndm () const |
| Single shot returning single random number. More... | |
| virtual StatusCode | rndmArray ( std::vector<double>& array, long howmany, long start = 0) const |
| Multiple shots returning vector with flat random numbers. More... | |
| virtual StreamBuffer& | serialize (StreamBuffer& str) |
| Input serialisation from stream buffer. More... | |
| virtual StreamBuffer& | serialize (StreamBuffer& str) const |
| Output serialisation to stream buffer. More... | |
| virtual void | handle (const Incident& inc) |
| Inform that a new incident has occured. More... | |
Protected Methods | |
| RndmEngine (const std::string& name, ISvcLocator* loc) | |
| Standard Constructor. More... | |
| virtual | ~RndmEngine () |
| Standard Destructor. More... | |
Protected Attributes | |
| IIncidentSvc* | m_pIncidentSvc |
| Reference to the incident service. More... | |
Description: Definition of a interface for a generic random number generator giving randomly distributed numbers in the range [0...1] number generators.
Dependencies:
History :
+---------+----------------------------------------------+--------+
| Date | Comment | Who |
+---------+----------------------------------------------+--------+
| 21/04/99| Initial version. | MF |
+---------+----------------------------------------------+--------+
Author: M.Frank Version: 1.0
Definition at line 46 of file RndmEngine.h.
|
|
Standard Constructor.
Definition at line 32 of file RndmEngine.cpp. |
|
|
Standard Destructor.
Definition at line 38 of file RndmEngine.cpp. |
|
|
Service override: finalisation.
Reimplemented in HepRndm::Engine. Definition at line 75 of file RndmEngine.cpp. Referenced by HepRndm::Engine::finalize(). |
|
|
Inform that a new incident has occured.
Definition at line 101 of file RndmEngine.cpp. |
|
|
Service override: initialisation.
Reimplemented in HepRndm::Engine. Definition at line 60 of file RndmEngine.cpp. Referenced by HepRndm::Engine::initialize(). |
|
|
Query interface.
Definition at line 42 of file RndmEngine.cpp. |
|
|
Single shot returning single random number.
Reimplemented in HepRndm::Engine. Definition at line 96 of file RndmEngine.cpp. Referenced by rndmArray(). |
|
|
Multiple shots returning vector with flat random numbers.
Definition at line 110 of file RndmEngine.cpp. |
|
|
Output serialisation to stream buffer. Saves the status of the object.
Definition at line 91 of file RndmEngine.cpp. |
|
|
Input serialisation from stream buffer. Restores the status of the object.
Definition at line 86 of file RndmEngine.cpp. |
|
|
Reference to the incident service.
Definition at line 53 of file RndmEngine.h. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000