AutoPas  3.0.0
Loading...
Searching...
No Matches
VCLTraversalInterface.h
Go to the documentation of this file.
1
7#pragma once
8
10
11namespace autopas {
12
13template <class Particle_T>
14class VerletClusterLists;
15
19template <class Particle_T>
21 public:
25 virtual ~VCLTraversalInterface() = default;
26
31 virtual void setClusterLists(VerletClusterLists<Particle_T> &verletClusterLists) {
32 _verletClusterLists = &verletClusterLists;
33 }
34
39 virtual void setTowers(std::vector<internal::ClusterTower<Particle_T>> &towers) { _towers = &towers; }
44 virtual bool needsStaticClusterThreadPartition() { return false; };
45
46 protected:
54
59 std::vector<internal::ClusterTower<Particle_T>> *_towers;
60};
61} // namespace autopas
Interface for traversals of the VerletClusterLists container.
Definition: VCLTraversalInterface.h:20
virtual ~VCLTraversalInterface()=default
virtual default destructor.
virtual void setClusterLists(VerletClusterLists< Particle_T > &verletClusterLists)
Sets the cluster list for the traversal to iterate over.
Definition: VCLTraversalInterface.h:31
std::vector< internal::ClusterTower< Particle_T > > * _towers
The towers of the cluster list to iterate over.
Definition: VCLTraversalInterface.h:59
VerletClusterLists< Particle_T > * _verletClusterLists
The cluster list to iterate over.
Definition: VCLTraversalInterface.h:53
virtual void setTowers(std::vector< internal::ClusterTower< Particle_T > > &towers)
Sets the towers of the cluster list for the traversal to iterate over.
Definition: VCLTraversalInterface.h:39
virtual bool needsStaticClusterThreadPartition()
Returns whether this traversal needs the static cluster thread partiton of the cluster list.
Definition: VCLTraversalInterface.h:44
Particles are divided into clusters.
Definition: VerletClusterLists.h:56
This class represents one tower for clusters in the VerletClusterLists container.
Definition: ClusterTower.h:43
This is the main namespace of AutoPas.
Definition: AutoPasDecl.h:32