.. index:: pair: struct; rgpot::QuinticSwitch .. _doxid-structrgpot_1_1_quintic_switch: struct rgpot::QuinticSwitch =========================== .. toctree:: :hidden: struct_rgpot_QuinticSwitch_Value.rst Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block struct QuinticSwitch { // structs struct :ref:`Value`; // fields double :ref:`r_on` {0.0}; double :ref:`inv_width` {0.0}; // methods static QuinticSwitch :ref:`endingAt`(double cutoff, double width); :ref:`Value` :target:`operator()`(double r) const; }; .. _details-structrgpot_1_1_quintic_switch: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Fields ------ .. index:: pair: variable; r_on .. _doxid-structrgpot_1_1_quintic_switch_1a2a70048e08b741573781f81e5dc27985: .. ref-code-block:: cpp :class: doxyrest-title-code-block double r_on {0.0} Where the switch starts (Angstrom). .. index:: pair: variable; inv_width .. _doxid-structrgpot_1_1_quintic_switch_1a1898bce40bc2e94685a580018845964c: .. ref-code-block:: cpp :class: doxyrest-title-code-block double inv_width {0.0} 1 / (cutoff - r_on). Methods ------- .. index:: pair: function; endingAt .. _doxid-structrgpot_1_1_quintic_switch_1af9e4bbe5884ccb80b19f5282642e08b5: .. ref-code-block:: cpp :class: doxyrest-title-code-block static QuinticSwitch endingAt(double cutoff, double width) Switch over the last ``width`` Angstrom below ``cutoff``. Throws std::invalid_argument unless 0 < width <= cutoff.