Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

ParticleLocalityCell Class Reference

#include <ParticleLocalityGrid.h>

List of all members.


Detailed Description

A ParticleLocalityCell contains the indices of particles which lie within it's bounds.

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.


Constructor & Destructor Documentation

ParticleLocalityCell::ParticleLocalityCell  )  [inline]
 

Definition at line 26 of file ParticleLocalityGrid.h.


Member Function Documentation

void ParticleLocalityCell::clear  )  [inline]
 

Definition at line 28 of file ParticleLocalityGrid.h.

References content.

Referenced by ParticleLocalityGrid::clear().

void ParticleLocalityCell::fillVector std::vector< unsigned int > &  vec  )  [inline]
 

Fills a vector with content from this cell.

Definition at line 44 of file ParticleLocalityGrid.h.

References content, and size().

Referenced by ParticleLocalityGrid::getNeighbors().

void ParticleLocalityCell::particleAdded unsigned int  i  )  [inline]
 

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().

void ParticleLocalityCell::removeIndex unsigned int  i  ) 
 

Removes index i.

Definition at line 198 of file ParticleLocalityGrid.cpp.

References content.

Referenced by ParticleLocalityGrid::update().

unsigned int ParticleLocalityCell::size  )  [inline]
 

Get the number of particles in this cell.

Definition at line 41 of file ParticleLocalityGrid.h.

References content.

Referenced by fillVector().

void ParticleLocalityCell::swapIndices unsigned int  i,
unsigned int  n
 

Swaps index i for index n.

Definition at line 183 of file ParticleLocalityGrid.cpp.

References content.


Member Data Documentation

std::vector<unsigned int> ParticleLocalityCell::content [private]
 

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().


The documentation for this class was generated from the following files:
Generated on Mon Jun 28 15:02:42 2004 for Advanced Surface Library by doxygen 1.3.4