entropy_src: add ctor,dtor, rm scheduler fun
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
55659bd243
commit
96d8265c22
|
@ -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
|
||||
|
|
Reference in New Issue