Simpatico
v1.10
|
Pair interaction classes are used in pair potential class templates to implement pair potential classes both the McMd and DdMd namespaces, in the templates McMd::MdPairPotentialImpl, McMd::McPairPotentialImpl, and DdMd::PairPotentialImpl. These templates call specific functions by name, and thus define an implicit interface that must be implemented by all pair interaction classes.
Here is a prototype class definition that shows the signatures for all of the required functions, for a hypothetical interaction class called Pair: