entropy_src: add ctor,dtor, rm scheduler fun
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-01-17 07:28:32 +01:00
parent 55659bd243
commit 96d8265c22
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -2,7 +2,6 @@
#define FORTUNA_ENTROPY_SRC_H
#include "event_adder_impl.h"
#include "event_scheduler_impl.h"
#include <memory>
@ -12,17 +11,16 @@ namespace accumulator {
class EntropySrc {
private:
std::unique_ptr<EventAdderImpl> ea_impl;
std::unique_ptr<EventSchedulerImpl> es_impl;
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};
EntropySrc() = default;
EntropySrc(const EntropySrc&) = delete;
EntropySrc& operator=(const EntropySrc&) = delete;
~EntropySrc() noexcept;
~EntropySrc() noexcept = default;
};
} // namespace accumulator