CLASS  1.1
 Tout Classes Fichiers Fonctions Variables Définitions de type
Référence du fichier CLASS.cxx
#include "CLASS.hxx"
#include "Storage.hxx"
#include "Reactor.hxx"
#include "Pool.hxx"
#include "FabricationPlant.hxx"
#include "LogFile.hxx"
#include <ctime>
#include "time.h"
#include <cmath>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <omp.h>
+ Graphe des dépendances par inclusion de CLASS.cxx:

Aller au code source de ce fichier.

Fonctions

float random (float a, float b)
 
string dtoa (double num)
 

Documentation des fonctions

string dtoa ( double  num)

Définition à la ligne 37 du fichier CLASS.cxx.

38 {
39  ostringstream os(ostringstream::out);
40  os<<setprecision(3)<<num;
41  return os.str();
42 }
float random ( float  a,
float  b 
)

Définition à la ligne 30 du fichier CLASS.cxx.

31 {
32  float range = pow(2., 31);
33  srand(time(NULL)); //initialize the srand
34  return (float)a + (float)(b-a)*rand()/range;
35 }