ESyS-Particle  4.0.1
Public Types | Public Member Functions | Protected Member Functions | List of all members
esys::lsm::NeighbourTable< TmplParticle > Class Template Reference
Inheritance diagram for esys::lsm::NeighbourTable< TmplParticle >:
Inheritance graph
[legend]

Public Types

typedef TmplParticle Particle
typedef std::vector< Particle * > ParticleVector
typedef ForwardIterator
< ParticleVector > 
ParticleIterator
typedef ForwardConstIterator
< ParticleVector > 
ParticleConstIterator

Public Member Functions

 NeighbourTable (const BoundingBox &bBox, double gridSpacing)
 NeighbourTable (const NeighbourTable &nTable)
void clear ()
double getGridSpacing () const
void resize (const BoundingBox &bBox, double gridSpacing)
const Vec3LgetDimensions () const
const BoundingBoxgetBBox () const
const Vec3getMinPt () const
size_t size () const
int getScalarIndex (int xIdx, int yIdx, int zIdx) const
int getScalarIndex (const Vec3L &index) const
int getScalarIndex (const Vec3 &pt) const
const Vec3LgetMinVecIndex () const
const Vec3LgetMaxVecIndex () const
Vec3L getVecIndex (const Vec3 &pt) const
ParticleVector getNeighbourVector (const Vec3 &pt, double radius) const
ParticleVector getUniqueNeighbourVector (const Vec3 &pt, double radius) const
ParticleVector getNeighbourVector (const Vec3 &pt) const
void insert (Particle *pParticle)
void insert (Particle &particle)
ParticleIterator getParticleIterator ()
ParticleConstIterator getParticleIterator () const

Protected Member Functions

void insertInTable (Particle *pParticle, const Vec3L &minIdx, const Vec3L &maxIdx)
void addInserted (Particle *pParticle)
int getNumCells () const
ParticleVector getInsertedParticles () const
void clearAndRecomputeGrid (const BoundingBox &bBox, double gridSpacing)

Member Function Documentation

template<class TmplParticle >
size_t esys::lsm::NeighbourTable< TmplParticle >::size ( ) const

Return the number of particles inserted into this table.


The documentation for this class was generated from the following files: