fpmas 1.6
generator.h
Go to the documentation of this file.
1#ifndef FPMAS_RANDOM_GENERATOR_API_H
2#define FPMAS_RANDOM_GENERATOR_API_H
3
8#include <cstdint>
9
10namespace fpmas { namespace api { namespace random {
19 template<typename T>
20 class Generator {
21 public:
25 typedef T result_type;
26
32 virtual T operator()() = 0;
33
39 virtual void seed(T seed) = 0;
40
47 virtual void discard(unsigned long long z) = 0;
48
49 virtual ~Generator() {}
50 };
51}}}
52#endif
Definition: generator.h:20
virtual void seed(T seed)=0
virtual void discard(unsigned long long z)=0
T result_type
Definition: generator.h:25
Definition: fpmas.cpp:3