Version: SMASH-1.5
actionfinderfactory.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2014-2018
4  * SMASH Team
5  *
6  * GNU General Public License (GPLv3 or later)
7  *
8  */
9 
10 #ifndef SRC_INCLUDE_ACTIONFINDERFACTORY_H_
11 #define SRC_INCLUDE_ACTIONFINDERFACTORY_H_
12 
13 #include <vector>
14 
15 #include "clock.h"
16 #include "forwarddeclarations.h"
17 #include "lattice.h"
18 #include "potentials.h"
19 
20 namespace smash {
21 
28  public:
29  virtual ~ActionFinderInterface() = default;
30 
40  virtual ActionList find_actions_in_cell(const ParticleList &search_list,
41  double dt) const = 0;
54  virtual ActionList find_actions_with_neighbors(
55  const ParticleList &search_list, const ParticleList &neighbors_list,
56  double dt) const = 0;
57 
73  virtual ActionList find_actions_with_surrounding_particles(
74  const ParticleList &search_list, const Particles &surrounding_list,
75  double dt) const = 0;
76 
88  virtual ActionList find_final_actions(const Particles &search_list,
89  bool only_res = false) const = 0;
90 };
91 
92 } // namespace smash
93 
94 #endif // SRC_INCLUDE_ACTIONFINDERFACTORY_H_
virtual ActionList find_actions_with_surrounding_particles(const ParticleList &search_list, const Particles &surrounding_list, double dt) const =0
Abstract function for finding actions between a list of particles and the surrounding particles...
virtual ActionList find_final_actions(const Particles &search_list, bool only_res=false) const =0
This abstract function finds &#39;final&#39; actions (for cleaning up at the end of the simulation, e.g.
virtual ActionList find_actions_in_cell(const ParticleList &search_list, double dt) const =0
Abstract function for finding actions, given a list of particles.
virtual ~ActionFinderInterface()=default
virtual ActionList find_actions_with_neighbors(const ParticleList &search_list, const ParticleList &neighbors_list, double dt) const =0
Abstract function for finding actions, given two lists of particles, a search list and a neighbors li...
ActionFinderInterface is the abstract base class for all action finders, i.e.
The Particles class abstracts the storage and manipulation of particles.
Definition: particles.h:33
Definition: action.h:24