chkpt_surf_mol.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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_SURF_MOL_H
  12. #define API_CHKPT_SURF_MOL_H
  13. #include "generated/gen_chkpt_surf_mol.h"
  14. #include "api/api_common.h"
  15. #include "api/base_chkpt_mol.h"
  16. namespace MCell {
  17. class Partition;
  18. class Molecule;
  19. namespace API {
  20. class ChkptSurfMol: public GenChkptSurfMol {
  21. public:
  22. CHKPT_SURF_MOL_CTOR()
  23. ChkptSurfMol(
  24. const MCell::Molecule& sm,
  25. const IdSpeciesMap& id_species_map, const double time_unit,
  26. const double length_unit,
  27. const MCell::Partition& p,
  28. const IdGeometryObjectMap& id_geometry_object_map);
  29. void postprocess_in_ctor() override {
  30. set_all_custom_attributes_to_default();
  31. }
  32. void set_all_custom_attributes_to_default() override {
  33. type = MoleculeType::SURFACE;
  34. }
  35. virtual ~ChkptSurfMol() {
  36. }
  37. };
  38. } // namespace API
  39. } // namespace MCell
  40. #endif // API_CHKPT_SURF_MOL_H