QNANO
Neighborhood_Criterion_Lattice.h
1 #ifndef QNANO_NEW_NEIGHBORHOOD_CRITERION_LATTICE_DEFINED_H
2 #define QNANO_NEW_NEIGHBORHOOD_CRITERION_LATTICE_DEFINED_H
3 
4 #include "structure/Neighborhood_Criterion.h"
5 #include "structure/Lattice.h"
6 
8 public:
9  Lattice lat;
10  double tolerance;
11  double upper_bound;
12 
13 private:
14  void calculate_upper_bound();
15 
16 public:
17  Neighborhood_Criterion_Lattice(const Lattice &lat_, double tol_=0.20) : lat(lat_), tolerance(tol_){
18  calculate_upper_bound();
19  }
20 
21  virtual bool is_neighbor(const Atom &a1, const Atom &a2) const;
22 
23  virtual double upper_bound_radius() const{ return upper_bound;}
24 
25 };
26 
27 
28 #endif
Definition: Neighborhood_Criterion_Lattice.h:7
Definition: Atom.h:6
Definition: Neighborhood_Criterion.h:6
Definition: Lattice.h:36