ppap4lmp  0.7.2
py_add_gyration_radius.cpp
Go to the documentation of this file.
1 
9 
10 void pybind::py_add_gyration_radius(py::module &m)
11 {
12  py::class_<AddGyrationRadius,PyUpdater<AddGyrationRadius>,Adder,Updater,ShPtr<AddGyrationRadius>>(m, "AddGyrationRadius")
13  .def(py::init<>())
14  .def(
15  "with_sqrted", &AddGyrationRadius::with_sqrted,
16  py::arg("add_sqrted_") = true);
17 }
Updater is an abstract class to update data held by an Element object.
Definition: updater.h:34
Adder adds new properties to a non-empty Element object.
Definition: adder.h:24
ShPtr< AddGyrationRadius > with_sqrted(bool add_sqrted_=true)
Enable to compute gyration radius (by default, only square of gyration radius is computed).
This file is for binding AddGyrationRadius class to Python.
void py_add_gyration_radius(py::module &m)
Bind AddGyrationRadius class to Python.
std::shared_ptr< T > ShPtr
ShPtr is an alias for shared pointer.
Definition: std.h:16