Page MenuHomec4science

system.cc
No OneTemporary

File Metadata

Created
Tue, Nov 5, 10:53

system.cc

#include "system.hh"
Particle& System::getParticle(UInt i) {
return *list_particles[i];
}
/* -------------------------------------------------------------------------- */
void System::addParticle(const std::shared_ptr<Particle>& new_particle) {
list_particles.push_back(new_particle);
}
/* -------------------------------------------------------------------------- */
UInt System::getNbParticles() {
return list_particles.size();
}
/* -------------------------------------------------------------------------- */

Event Timeline