QuISP
Loading...
Searching...
No Matches
RNG.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
backends/Backends.h
>
4
#include <omnetpp.h>
5
6
namespace
quisp::modules::backend::rng
{
7
class
RNG
:
public
backends::abstract::IRandomNumberGenerator
{
8
public
:
9
RNG
(omnetpp::cModule*
module
) :
module
(
module
) {}
10
double
doubleRandom
()
override
{
return
module
->dblrand(); }
11
12
private
:
13
omnetpp::cModule*
module
;
14
};
15
}
// namespace quisp::modules::backend::rng
Backends.h
quisp::backends::abstract::IRandomNumberGenerator
Definition
IRandomNumberGenerator.h:4
quisp::modules::backend::rng::RNG
Definition
RNG.h:7
quisp::modules::backend::rng::RNG::module
omnetpp::cModule * module
Definition
RNG.h:13
quisp::modules::backend::rng::RNG::doubleRandom
double doubleRandom() override
Definition
RNG.h:10
quisp::modules::backend::rng::RNG::RNG
RNG(omnetpp::cModule *module)
Definition
RNG.h:9
quisp::modules::backend::rng
Definition
RNG.h:6
quisp
modules
Backend
RNG.h
Generated by
1.12.0