forked from ak-fortuna/fortuna
entropy_src: add ctor,dtor, rm scheduler fun
This commit is contained in:
parent
55659bd243
commit
96d8265c22
|
@ -2,7 +2,6 @@
|
||||||
#define FORTUNA_ENTROPY_SRC_H
|
#define FORTUNA_ENTROPY_SRC_H
|
||||||
|
|
||||||
#include "event_adder_impl.h"
|
#include "event_adder_impl.h"
|
||||||
#include "event_scheduler_impl.h"
|
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
|
@ -12,17 +11,16 @@ namespace accumulator {
|
||||||
class EntropySrc {
|
class EntropySrc {
|
||||||
private:
|
private:
|
||||||
std::unique_ptr<EventAdderImpl> ea_impl;
|
std::unique_ptr<EventAdderImpl> ea_impl;
|
||||||
std::unique_ptr<EventSchedulerImpl> es_impl;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void schedule(accumulator::EventSchedulerImpl scheduler) = 0;
|
virtual void event(accumulator::EventAdderImpl& adder) = 0;
|
||||||
virtual void event(accumulator::EventAdderImpl adder) = 0;
|
|
||||||
|
|
||||||
static constexpr const std::size_t max_event_length{32};
|
static constexpr const std::size_t max_event_length{32};
|
||||||
|
|
||||||
|
EntropySrc() = default;
|
||||||
EntropySrc(const EntropySrc&) = delete;
|
EntropySrc(const EntropySrc&) = delete;
|
||||||
EntropySrc& operator=(const EntropySrc&) = delete;
|
EntropySrc& operator=(const EntropySrc&) = delete;
|
||||||
~EntropySrc() noexcept;
|
~EntropySrc() noexcept = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace accumulator
|
} // namespace accumulator
|
||||||
|
|
Loading…
Reference in New Issue