AutoPas  3.0.0
Loading...
Searching...
No Matches
EmptyPairwiseFunctor.h
Go to the documentation of this file.
1
7#pragma once
8
13
18template <class Particle_T>
19class EmptyPairwiseFunctor : public autopas::PairwiseFunctor<Particle_T, EmptyPairwiseFunctor<Particle_T>> {
20 private:
21 public:
25 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 const std::vector<size_t, autopas::AlignedAllocator<size_t>> &neighborList,
56 bool newton3) override{};
57
61 bool allowsNewton3() override { return true; }
62
66 bool allowsNonNewton3() override { return true; }
67
71 std::string getName() override { return "EmptyPairwiseFunctor"; }
72
76 bool isRelevantForTuning() override { return true; }
77};
Empty Functor, this functor is empty and can be used for testing purposes.
Definition: EmptyPairwiseFunctor.h:19
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:76
typename Particle_T::SoAArraysType SoAArraysType
Structure of the SoAs defined by the particle.
Definition: EmptyPairwiseFunctor.h:25
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:71
void SoAFunctorVerlet(autopas::SoAView< typename Particle_T::SoAArraysType > soa, size_t indexFirst, const std::vector< size_t, autopas::AlignedAllocator< size_t > > &neighborList, bool newton3) override
PairwiseFunctor for structure of arrays (SoA) for neighbor lists.
Definition: EmptyPairwiseFunctor.h:54
bool allowsNewton3() override
Specifies whether the functor is capable of Newton3-like functors.
Definition: EmptyPairwiseFunctor.h:61
bool allowsNonNewton3() override
Specifies whether the functor is capable of non-Newton3-like functors.
Definition: EmptyPairwiseFunctor.h:66
EmptyPairwiseFunctor()
Default constructor.
Definition: EmptyPairwiseFunctor.h:30
AlignedAllocator class.
Definition: AlignedAllocator.h:29
PairwiseFunctor class.
Definition: PairwiseFunctor.h:31
PairwiseFunctor(double cutoff)
Constructor.
Definition: PairwiseFunctor.h:42
View on a fixed part of a SoA between a start index and an end index.
Definition: SoAView.h:23
This is the main namespace of AutoPas.
Definition: AutoPasDecl.h:32