1 #ifndef QNANO_NEW_NEIGHBORHOOD_CRITERION_DEFINED_H 2 #define QNANO_NEW_NEIGHBORHOOD_CRITERION_DEFINED_H 4 #include "structure/Atom.h" 9 virtual bool is_neighbor(
const Atom &a1,
const Atom &a2)
const =0;
10 bool operator() (
const Atom &a1,
const Atom &a2)
const {
return is_neighbor(a1,a2);}
12 virtual double upper_bound_radius()
const=0;
22 virtual bool is_neighbor(
const Atom &a1,
const Atom &a2)
const{
23 if(dist(a1,a2)<distance)
return true;
26 virtual double upper_bound_radius()
const{
return distance;}
Definition: Neighborhood_Criterion.h:15
Definition: Neighborhood_Criterion.h:6