chkpt_vol_mol.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /******************************************************************************
  2. *
  3. * Copyright (C) 2020 by
  4. * The Salk Institute for Biological Studies
  5. *
  6. * Use of this source code is governed by an MIT-style
  7. * license that can be found in the LICENSE file or at
  8. * https://opensource.org/licenses/MIT.
  9. *
  10. ******************************************************************************/
  11. #ifndef API_CHKPT_VOL_MOL_H
  12. #define API_CHKPT_VOL_MOL_H
  13. #include "generated/gen_chkpt_vol_mol.h"
  14. #include "api/api_common.h"
  15. #include "api/base_chkpt_mol.h"
  16. namespace MCell {
  17. class Molecule;
  18. namespace API {
  19. class ChkptVolMol: public GenChkptVolMol {
  20. public:
  21. CHKPT_VOL_MOL_CTOR()
  22. ChkptVolMol(
  23. const MCell::Molecule& vm,
  24. const IdSpeciesMap& id_species_map, const double time_unit,
  25. const double length_unit);
  26. void postprocess_in_ctor() override {
  27. set_all_custom_attributes_to_default();
  28. }
  29. void set_all_custom_attributes_to_default() override {
  30. type = MoleculeType::VOLUME;
  31. }
  32. virtual ~ChkptVolMol() {
  33. };
  34. };
  35. } // namespace API
  36. } // namespace MCell
  37. #endif // API_CHKPT_VOL_MOL_H