Line data Source code
1 0 : // Distributed under the MIT License. 2 : // See LICENSE.txt for details. 3 : 4 : #pragma once 5 : 6 : #include <memory> 7 : #include <pup.h> 8 : 9 : #include "Utilities/Serialization/CharmPupable.hpp" 10 : #include "Utilities/TMPL.hpp" 11 : 12 : namespace Ccz4::fd { 13 : /// \cond 14 : class DummyReconstructor; 15 : /// \endcond 16 : 17 : /*! 18 : * \brief The base class from which all reconstruction schemes must inherit 19 : */ 20 1 : class Reconstructor : public PUP::able { 21 : public: 22 0 : Reconstructor() = default; 23 0 : Reconstructor(const Reconstructor&) = default; 24 0 : Reconstructor& operator=(const Reconstructor&) = default; 25 0 : Reconstructor(Reconstructor&&) = default; 26 0 : Reconstructor& operator=(Reconstructor&&) = default; 27 0 : ~Reconstructor() override = default; 28 : 29 : /// \cond 30 : explicit Reconstructor(CkMigrateMessage* msg); 31 : WRAPPED_PUPable_abstract(Reconstructor); // NOLINT 32 : /// \endcond 33 : 34 0 : using creatable_classes = tmpl::list<DummyReconstructor>; 35 : 36 0 : virtual std::unique_ptr<Reconstructor> get_clone() const = 0; 37 : 38 0 : virtual size_t ghost_zone_size() const = 0; 39 : 40 0 : void pup(PUP::er& p) override; 41 : }; 42 : } // namespace Ccz4::fd