#include <ParticleLocalityGrid.h>
Definition at line 17 of file ParticleLocalityGrid.h.
Public Member Functions | |
| ParticleLocalityCell () | |
| void | clear () |
| void | particleAdded (unsigned int i) |
| Called when a particle is added to this cell. | |
| void | swapIndices (unsigned int i, unsigned int n) |
| Swaps index i for index n. | |
| void | removeIndex (unsigned int i) |
| Removes index i. | |
| unsigned int | size () |
| Get the number of particles in this cell. | |
| void | fillVector (std::vector< unsigned int > &vec) |
| Fills a vector with content from this cell. | |
Private Attributes | |
| std::vector< unsigned int > | content |
| A vector of the indices of particles in this cell. | |
|
|
Definition at line 26 of file ParticleLocalityGrid.h. |
|
|
Definition at line 28 of file ParticleLocalityGrid.h. References content. Referenced by ParticleLocalityGrid::clear(). |
|
|
Fills a vector with content from this cell.
Definition at line 44 of file ParticleLocalityGrid.h. References content, and size(). Referenced by ParticleLocalityGrid::getNeighbors(). |
|
|
Called when a particle is added to this cell.
Definition at line 32 of file ParticleLocalityGrid.h. References content. Referenced by ParticleLocalityGrid::particleAdded(), and ParticleLocalityGrid::update(). |
|
|
Removes index i.
Definition at line 198 of file ParticleLocalityGrid.cpp. References content. Referenced by ParticleLocalityGrid::update(). |
|
|
Get the number of particles in this cell.
Definition at line 41 of file ParticleLocalityGrid.h. References content. Referenced by fillVector(). |
|
||||||||||||
|
Swaps index i for index n.
Definition at line 183 of file ParticleLocalityGrid.cpp. References content. |
|
|
A vector of the indices of particles in this cell.
Definition at line 22 of file ParticleLocalityGrid.h. Referenced by clear(), fillVector(), particleAdded(), removeIndex(), size(), and swapIndices(). |
1.3.4