|
| bool | isDirty () |
| | Returns the dirty flag, indicating whether Particles exist in the vector that are not stored in a cell yet.
|
| |
| void | markAsClean () |
| | Marks the ParticleVector as clean.
|
| |
|
void | clearAllParticles () |
| | Remove all particles from the container and mark it as dirty.
|
| |
|
void | clearHaloParticles () |
| | Remove all halo particles from the container and mark it as dirty.
|
| |
|
void | deleteDummyParticles () |
| | Remove all dummy particles from the container and mark it as dirty.
|
| |
| void | push_back (const Particle_T &particle) |
| | Add a Particle to the data structure.
|
| |
| int | totalSize () |
| | Get the number of Particles in the data structure.
|
| |
| int | dirtySize () |
| | Get the number of dirty Particles in the data structure.
|
| |
| bool | needsRebuild () |
| | Indicates, whether References already stored in cells need to be updated.
|
| |
| size_t | getDirtyIndex () |
| | Get the index of the first Particle that is not referenced by a cell yet.
|
| |
| std::vector< Particle_T > & | getParticleStorage () |
| | Get the vector that stores the Particles.
|
| |
| template<typename Lambda > |
| void | forEach (Lambda forEachLambda) |
| | Iterate over all particles and execute lambda function on them.
|
| |
| template<typename Lambda , typename A > |
| void | reduce (Lambda reduceLambda, A &result) |
| | Iterate over all particles and execute lambda function on them.
|
| |
template<class Particle_T>
class ParticleVector< Particle_T >
ParticleVector class.
This class uses a std::vector to store particles, which cells refer to by their index in this vector. It also keeps track of which particles are not referenced by a cell yet, and whether all references are no longer valid, which happens when particles are removed. Adding particles keeps all indices valid.
- Template Parameters
-
| Particle_T | of the Particle that is being stored |