Generated on Tue Dec 16 12:49:16 2008 for BIU-2.2.0 by doxygen 1.5.1

src/biu/RandomNumberFactory.hh

Go to the documentation of this file.
00001 #ifndef RANDOMNUMBERFACTORY_HH_
00002 #define RANDOMNUMBERFACTORY_HH_
00003 
00004 #include "biu/RandomNumberGenerator.hh"
00005 
00006 namespace biu
00007 {
00008 
00015     class RandomNumberFactory 
00016     {
00017     private:
00019         static RandomNumberGenerator * rng;
00020         
00021     public:
00022         RandomNumberFactory();
00023         virtual ~RandomNumberFactory();
00024         
00025         
00027         
00030         static RandomNumberGenerator& getRNG(void);
00031         
00034         static void setRNG(RandomNumberGenerator &rng);
00035         
00038         static void setRNG(RandomNumberGenerator *rng);
00039         
00040         
00041         
00042         
00044 
00050         static unsigned int getRN();
00051         
00057         static unsigned int getRN(unsigned int max);
00058         
00063         static unsigned int getMaxRN();
00064         
00067         static unsigned int (*pt_getRN)(unsigned int);
00068         
00069     }; // class RNF
00070     
00072     typedef RandomNumberFactory RNF;
00073     
00074     
00075     
00076 } // namespace biu
00077 
00078 
00079 
00080 #endif /*RANDOMNUMBERFACTORY_HH_*/