9 #ifndef ADD_GYRATION_RADIUS_H 10 #define ADD_GYRATION_RADIUS_H 88 bool add_sqrted_ =
true);
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.
std::function< bool(const Json &)> JsonToBoolFunc
An alias for a function accepts a Json object and returns a bool.
ShPtr< AddGyrationRadius > with_sqrted(bool add_sqrted_=true)
Enable to compute gyration radius (by default, only square of gyration radius is computed).
nlohmann::json Json
Json is an alias for nlohmann::json.
AddGyrationRadius adds gyration radius to an Element object.
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.
std::shared_ptr< T > ShPtr
ShPtr is an alias for shared pointer.