ppap4lmp  0.7.2
add_bond_angle.h
Go to the documentation of this file.
1 
9 #ifndef ADD_BOND_ANGLE_H
10 #define ADD_BOND_ANGLE_H
11 
12 #include <adders/adder.h>
13 
28 class AddBondAngle : public Adder {
29 
30  protected:
50  virtual void compute_impl(
51  Json &data,
52  JsonToVoidFunc check_required_keys,
53  JsonToBoolFunc check_optional_keys) override;
54  public:
76  const ElPtr &elem);
77  virtual ~AddBondAngle() = default;
78 };
79 
80 #endif
ShPtr< Element > ElPtr
An alias for a shared pointer of Element class.
Definition: element.h:378
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
nlohmann::json Json
Json is an alias for nlohmann::json.
Definition: json.h:22
AddBondAngle adds angle property to bond-angles, each of them is defined by three consecutive atoms...
virtual void compute_impl(Json &data, JsonToVoidFunc check_required_keys, JsonToBoolFunc check_optional_keys) override
This method overrides Updater::compute_impl.
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
AddBondAngle(const ElPtr &elem)
Constructor of AddBondAngle class.