40 :
m_system(reinterpret_cast<void const *>(system)), m_delta_N(
delta_N) {}
45 return reinterpret_cast<void const *
>(system) ==
m_system;
49 m_system =
reinterpret_cast<void const *
>(system);
52 virtual void update(boost::mpi::communicator
const &comm) = 0;
54 virtual std::vector<std::size_t>
shape()
const = 0;
void override_system_handle(::System::System const *system)
virtual void set_internal_state(std::string const &)=0
virtual ~AccumulatorBase()=default
bool has_same_system_handle(::System::System const *system) const
virtual std::vector< std::size_t > shape() const =0
Dimensions needed to reshape the flat array returned by the accumulator.
virtual void update(boost::mpi::communicator const &comm)=0
AccumulatorBase(::System::System const *system, int delta_N)
virtual std::string get_internal_state() const =0
Serialization of private members.
void const * m_system
for bookkeeping purposes
Communicator communicator