ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
Criterion which returns a true/false value for a pair of particles. More...
#include <PairCriterion.hpp>
Public Member Functions | |
virtual bool | decide (Particle const &p1, Particle const &p2) const =0 |
Make a decision based on two particles. | |
bool | decide (int id1, int id2) const |
Make a decision based on particle ids. | |
virtual | ~PairCriterion ()=default |
Criterion which returns a true/false value for a pair of particles.
Definition at line 29 of file core/pair_criteria/PairCriterion.hpp.
|
virtualdefault |
|
inline |
Make a decision based on particle ids.
This can only run on the head node outside of the integration loop.
Definition at line 37 of file core/pair_criteria/PairCriterion.hpp.
References decide(), and get_particle_data().
|
pure virtual |
Make a decision based on two particles.
Implemented in PairCriteria::DistanceCriterion, PairCriteria::BondCriterion, and PairCriteria::EnergyCriterion.
Referenced by decide().