AutoPas  3.0.0
Loading...
Searching...
No Matches
EmptyPairwiseFunctor.h
Go to the documentation of this file.
1
7#pragma once
8
12
17template <class Particle_T>
18class EmptyPairwiseFunctor : public autopas::PairwiseFunctor<Particle_T, EmptyPairwiseFunctor<Particle_T>> {
19 private:
20 public:
24 using SoAArraysType = typename Particle_T::SoAArraysType;
26
31
35 void AoSFunctor(Particle_T &i, Particle_T &j, bool newton3) override {}
36
41
49 autopas::SoAView<typename Particle_T::SoAArraysType> soa2, bool newton3) override {}
50
55 std::span<const size_t> neighborList, bool newton3) override{};
56
60 bool allowsNewton3() override { return true; }
61
65 bool allowsNonNewton3() override { return true; }
66
70 std::string getName() override { return "EmptyPairwiseFunctor"; }
71
75 bool isRelevantForTuning() override { return true; }
76};
Empty Functor, this functor is empty and can be used for testing purposes.
Definition: EmptyPairwiseFunctor.h:18
void AoSFunctor(Particle_T &i, Particle_T &j, bool newton3) override
PairwiseFunctor for arrays of structures (AoS).
Definition: EmptyPairwiseFunctor.h:35
bool isRelevantForTuning() override
Specifies whether the functor should be considered for the auto-tuning process.
Definition: EmptyPairwiseFunctor.h:75
typename Particle_T::SoAArraysType SoAArraysType
Structure of the SoAs defined by the particle.
Definition: EmptyPairwiseFunctor.h:24
void SoAFunctorSingle(autopas::SoAView< typename Particle_T::SoAArraysType > soa, bool newton3) override
PairwiseFunctor for structure of arrays (SoA)
Definition: EmptyPairwiseFunctor.h:40
void SoAFunctorPair(autopas::SoAView< typename Particle_T::SoAArraysType > soa1, autopas::SoAView< typename Particle_T::SoAArraysType > soa2, bool newton3) override
SoAFunctor for a pair of SoAs.
Definition: EmptyPairwiseFunctor.h:48
std::string getName() override
Returns name of functor.
Definition: EmptyPairwiseFunctor.h:70
bool allowsNewton3() override
Specifies whether the functor is capable of Newton3-like functors.
Definition: EmptyPairwiseFunctor.h:60
void SoAFunctorVerlet(autopas::SoAView< typename Particle_T::SoAArraysType > soa, size_t indexFirst, std::span< const size_t > neighborList, bool newton3) override
PairwiseFunctor for structure of arrays (SoA) for neighbor lists.
Definition: EmptyPairwiseFunctor.h:54
bool allowsNonNewton3() override
Specifies whether the functor is capable of non-Newton3-like functors.
Definition: EmptyPairwiseFunctor.h:65
EmptyPairwiseFunctor()
Default constructor.
Definition: EmptyPairwiseFunctor.h:30
PairwiseFunctor class.
Definition: PairwiseFunctor.h:66
PairwiseFunctor(double cutoff)
Constructor.
Definition: PairwiseFunctor.h:77
View on a fixed part of a SoA between a start index and an end index.
Definition: SoAView.h:25
This is the main namespace of AutoPas.
Definition: AutoPasDecl.h:34