ppap4lmp  0.7.2
sta_molecules.h
Go to the documentation of this file.
1 
9 #ifndef STA_MOLECULES_H
10 #define STA_MOLECULES_H
11 
12 #include <starters/starter.h>
13 
27 class StaMolecules : public Starter {
28  protected:
40  virtual void compute_impl(
41  Json &data,
42  JsonToVoidFunc check_required_keys,
43  JsonToBoolFunc check_optional_keys) override;
44  public:
64  const ElPtr &el_atoms);
65  virtual ~StaMolecules() = default;
66 };
67 
68 #endif
ShPtr< Element > ElPtr
An alias for a shared pointer of Element class.
Definition: element.h:378
This file has a definition of Starter class, which is a subclass of Updater class.
std::function< bool(const Json &)> JsonToBoolFunc
An alias for a function accepts a Json object and returns a bool.
Definition: updater.h:20
virtual void compute_impl(Json &data, JsonToVoidFunc check_required_keys, JsonToBoolFunc check_optional_keys) override
This method overrides Updater::compute_impl.
nlohmann::json Json
Json is an alias for nlohmann::json.
Definition: json.h:22
StaMolecules sets properties for molecules using atoms forming the molecules.
Definition: sta_molecules.h:27
Starter sets some properties to an empty Element object.
Definition: starter.h:24
StaMolecules(const ElPtr &el_atoms)
Constructor of StaMolecules class.
std::function< void(const Json &)> JsonToVoidFunc
An alias for a function accepts a Json object.
Definition: updater.h:18