Molecular Dynamics Simulation  1.0
ParticleSpawner.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 
5 #include "particles/Particle.h"
6 
14  public:
21  virtual int spawnParticles(std::vector<Particle>& particles) const = 0;
22 
29  [[nodiscard]] virtual size_t getEstimatedNumberOfParticles() const = 0;
30 };
Interface for particle spawner classes.
virtual int spawnParticles(std::vector< Particle > &particles) const =0
Spawns particles in the given container.
virtual size_t getEstimatedNumberOfParticles() const =0
Estimate the number of particles to be spawned.