StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
RandomGeneration.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BAS_RANDOMGENERATION_HPP
2 #define __STDAIR_BAS_RANDOMGENERATION_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // StdAir
11 
12 namespace stdair {
13 
17  struct RandomGeneration : public StructAbstract {
18  public:
19  // //////////// Business Methods /////////////
25 
31  return generateUniform01();
32  }
33 
40 
46 
52 
57 
58 
59  public:
60  // ////////////// Display Support Methods //////////
64  const std::string describe() const;
65 
66 
67  public:
68  // ////////// Constructors and destructors /////////
77 
78  private:
86  RandomGeneration& operator= (const RandomGeneration& iRandomGeneration) {
87  _generator = iRandomGeneration._generator;
88  return *this;
89  }
90  public:
95 
103  void init (const RandomSeed_T&);
104 
105  // ////////// Attributes //////////
113  };
114 
115 }
116 #endif // __STDAIR_BAS_RANDOMGENERATION_HPP
RealNumber_T generateUniform01()
BaseGenerator_T & getBaseGenerator()
const std::string describe() const
Handle on the StdAir library context.
RealNumber_T generateNormal(const RealNumber_T &, const RealNumber_T &)
Base class for the light structures.
RealNumber_T generateExponential(const RealNumber_T &)
void init(const RandomSeed_T &)
double RealNumber_T
boost::minstd_rand BaseGenerator_T
unsigned long int RandomSeed_T
RealNumber_T generateUniform(const RealNumber_T &, const RealNumber_T &)
Class holding a random generator.