1.00.0
C++ Standard Airline IT Object Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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
8
#include <
stdair/stdair_basic_types.hpp
>
9
#include <
stdair/stdair_maths_types.hpp
>
10
#include <
stdair/basic/StructAbstract.hpp
>
11
12
namespace
stdair {
13
17
struct
RandomGeneration
:
public
StructAbstract
{
18
public
:
19
// //////////// Business Methods /////////////
24
RealNumber_T
generateUniform01
();
25
30
RealNumber_T
operator()
() {
31
return
generateUniform01
();
32
}
33
39
RealNumber_T
generateUniform
(
const
RealNumber_T
&,
const
RealNumber_T
&);
40
45
RealNumber_T
generateNormal
(
const
RealNumber_T
&,
const
RealNumber_T
&);
46
51
RealNumber_T
generateExponential
(
const
RealNumber_T
&);
52
56
BaseGenerator_T
&
getBaseGenerator
() {
return
_generator
; }
57
58
59
public
:
60
// ////////////// Display Support Methods //////////
64
const
std::string
describe
()
const
;
65
66
67
public
:
68
// ////////// Constructors and destructors /////////
72
RandomGeneration
(
const
RandomSeed_T
&);
76
RandomGeneration
();
77
78
private
:
82
RandomGeneration
(
const
RandomGeneration
&);
86
RandomGeneration
& operator= (
const
RandomGeneration
& iRandomGeneration) {
87
_generator
= iRandomGeneration.
_generator
;
88
return
*
this
;
89
}
90
public
:
94
~RandomGeneration
();
95
103
void
init
(
const
RandomSeed_T
&);
104
105
// ////////// Attributes //////////
112
BaseGenerator_T
_generator
;
113
};
114
115
}
116
#endif // __STDAIR_BAS_RANDOMGENERATION_HPP
Generated on Sat Dec 22 2012 16:51:53 for StdAir by
1.8.1.1