Contribution of an energy gradient term to the potential energy gradient function.
More...
template<class Visitor, class Term, typename... Terms>
class SBL::CSB::T_Molecular_potential_energy_gradient_contribution< Visitor, Term, Terms >
Contribution of an energy gradient term to the potential energy gradient function.
It uses the Visitor for iterating over all interesting tuples of particles for computing the term given by Term.
- Template Parameters
-
Visitor | : model of a class defining the Iterator type, the begin() and end() static methods for iterating over all interesting tuples of particles |
Term | model of functor taking a tuple of particles as input and returning their contribution to the energy function for the given term. |
Terms | With C++11, it is possible to add different terms using the same visitor through the variadic template feature. |