[18a63e]: src / modules / lecuyer / lecuyer.cc  Maximize  Restore  History

Download this file

35 lines (23 with data), 552 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <module/Module.h>
#include <RngStreamFactory.h>
using std::vector;
namespace jags {
namespace lecuyer {
class LecuyerModule : public Module {
public:
LecuyerModule();
~LecuyerModule();
};
LecuyerModule::LecuyerModule()
: Module("lecuyer")
{
insert(new RngStreamFactory);
}
LecuyerModule::~LecuyerModule() {
vector<RNGFactory*> const &rvec = rngFactories();
for (unsigned int i = 0; i < rvec.size(); ++i) {
delete rvec[i];
}
}
}}
jags::lecuyer::LecuyerModule _lecuyer_module;

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks