Molecular Dynamics Simulation
1.0
|
Class representing a cell in the linked cells algorithm. More...
#include <Cell.h>
Public Types | |
enum class | CellType { INNER , BOUNDARY , HALO } |
Enum representing the type of a cell. More... | |
Public Member Functions | |
Cell (CellType cell_type) | |
Construct a new Cell object. More... | |
CellType | getCellType () const |
Get the type of the cell. More... | |
std::vector< Particle * > & | getParticleReferences () |
Get the reference vector for the particles the cell contains. More... | |
std::vector< Cell * > & | getNeighbourReferences () |
Get the reference vector for the neighbouring cells. More... | |
void | addParticleReference (Particle *p) |
Adds a particle reference to the cell. More... | |
void | clearParticleReferences () |
Removes all particle references from the cell. More... | |
void | addNeighbourReference (Cell *c) |
Adds a neighbour reference to the cell. More... | |
Private Attributes | |
CellType | cell_type |
Type of the cell. More... | |
std::vector< Particle * > | particle_references |
References to the particles the cell contains. More... | |
std::vector< Cell * > | neighbour_references |
References to the neighbouring cells. More... | |
|
strong |
|
explicit |
void Cell::addNeighbourReference | ( | Cell * | c | ) |
void Cell::addParticleReference | ( | Particle * | p | ) |
void Cell::clearParticleReferences | ( | ) |
Cell::CellType Cell::getCellType | ( | ) | const |
std::vector< Cell * > & Cell::getNeighbourReferences | ( | ) |
std::vector< Particle * > & Cell::getParticleReferences | ( | ) |
|
private |
|
private |