| 1 | /* | 
|---|
| 2 | * Project: MoleCuilder | 
|---|
| 3 | * Description: creates and alters molecular systems | 
|---|
| 4 | * Copyright (C)  2010 University of Bonn. All rights reserved. | 
|---|
| 5 | * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. | 
|---|
| 6 | */ | 
|---|
| 7 |  | 
|---|
| 8 | /* | 
|---|
| 9 | * RandomNumberDistributionFactory.cpp | 
|---|
| 10 | * | 
|---|
| 11 | *  Created on: Jan 03, 2011 | 
|---|
| 12 | Author: heber | 
|---|
| 13 | */ | 
|---|
| 14 |  | 
|---|
| 15 | // include config.h | 
|---|
| 16 | #ifdef HAVE_CONFIG_H | 
|---|
| 17 | #include <config.h> | 
|---|
| 18 | #endif | 
|---|
| 19 |  | 
|---|
| 20 | #include "CodePatterns/MemDebug.hpp" | 
|---|
| 21 |  | 
|---|
| 22 | #include <utility> | 
|---|
| 23 | #include "CodePatterns/Singleton_impl.hpp" | 
|---|
| 24 | #include "CodePatterns/Assert.hpp" | 
|---|
| 25 |  | 
|---|
| 26 | #include <boost/random/bernoulli_distribution.hpp> | 
|---|
| 27 | #include <boost/random/binomial_distribution.hpp> | 
|---|
| 28 | #include <boost/random/cauchy_distribution.hpp> | 
|---|
| 29 | #include <boost/random/exponential_distribution.hpp> | 
|---|
| 30 | #include <boost/random/gamma_distribution.hpp> | 
|---|
| 31 | #include <boost/random/geometric_distribution.hpp> | 
|---|
| 32 | #include <boost/random/linear_congruential.hpp> | 
|---|
| 33 | #include <boost/random/lognormal_distribution.hpp> | 
|---|
| 34 | #include <boost/random/normal_distribution.hpp> | 
|---|
| 35 | #include <boost/random/poisson_distribution.hpp> | 
|---|
| 36 | #include <boost/random/triangle_distribution.hpp> | 
|---|
| 37 | #include <boost/random/uniform_01.hpp> | 
|---|
| 38 | #include <boost/random/uniform_int.hpp> | 
|---|
| 39 | #include <boost/random/uniform_on_sphere.hpp> | 
|---|
| 40 | #include <boost/random/uniform_real.hpp> | 
|---|
| 41 | #include <boost/random/uniform_smallint.hpp> | 
|---|
| 42 |  | 
|---|
| 43 | #include "RandomNumberDistribution_Encapsulation.hpp" | 
|---|
| 44 | #include "RandomNumberDistribution_Parameters.hpp" | 
|---|
| 45 |  | 
|---|
| 46 | #include "RandomNumberDistributionFactory.hpp" | 
|---|
| 47 |  | 
|---|
| 48 | // has to be included BEFORE PrototypeFactory_impl.hpp! | 
|---|
| 49 | #include "RandomNumberDistributionFactory.def" | 
|---|
| 50 | #include "CodePatterns/ManipulablePrototypeFactory_impl.hpp" | 
|---|
| 51 |  | 
|---|
| 52 | RandomNumberDistributionFactory::RandomNumberDistributionFactory() | 
|---|
| 53 | { | 
|---|
| 54 | FillPrototypeTable(); | 
|---|
| 55 | } | 
|---|
| 56 |  | 
|---|
| 57 | RandomNumberDistributionFactory::~RandomNumberDistributionFactory() | 
|---|
| 58 | { | 
|---|
| 59 | EmptyPrototypeTable(); | 
|---|
| 60 | } | 
|---|
| 61 |  | 
|---|
| 62 | CONSTRUCT_SINGLETON(RandomNumberDistributionFactory) | 
|---|
| 63 | CONSTRUCT_MANIPULABLEPROTOTYPEFACTORY(RandomNumberDistribution, RandomNumberDistribution_Parameters) | 
|---|
| 64 |  | 
|---|
| 65 | #include "RandomNumberDistributionFactory.undef" | 
|---|
| 66 |  | 
|---|