ppap4lmp  0.7.2
add_dihedral_angle.h
Go to the documentation of this file.
1 
9 #ifndef ADD_DIHEDRAL_ANGLE_H
10 #define ADD_DIHEDRAL_ANGLE_H
11 
12 #include <adders/adder.h>
13 
29 class AddDihedralAngle : public Adder {
30 
31  protected:
52  virtual void compute_impl(
53  Json &data,
54  JsonToVoidFunc check_required_keys,
55  JsonToBoolFunc check_optional_keys) override;
56  public:
78  const ElPtr &elem);
79  virtual ~AddDihedralAngle() = default;
80 };
81 
82 #endif
ShPtr< Element > ElPtr
An alias for a shared pointer of Element class.
Definition: element.h:378
virtual void compute_impl(Json &data, JsonToVoidFunc check_required_keys, JsonToBoolFunc check_optional_keys) override
This method overrides Updater::compute_impl.
Adder adds new properties to a non-empty Element object.
Definition: adder.h:24
std::function< bool(const Json &)> JsonToBoolFunc
An alias for a function accepts a Json object and returns a bool.
Definition: updater.h:20
AddDihedralAngle adds dihedral-angle property to dehedrals, each of them is defined by four consecuti...
nlohmann::json Json
Json is an alias for nlohmann::json.
Definition: json.h:22
This file has a definition of Adder class, which is a subclass of Updater class.
std::function< void(const Json &)> JsonToVoidFunc
An alias for a function accepts a Json object.
Definition: updater.h:18
AddDihedralAngle(const ElPtr &elem)
Constructor of AddDihedralAngle class.