valSPH
 All Classes Files Functions Variables
SpatialIndex Class Referenceabstract

#include <SpatialIndex.h>

Inheritance diagram for SpatialIndex:
Inheritance graph
Collaboration diagram for SpatialIndex:
Collaboration graph

Public Member Functions

 SpatialIndex ()
 It creates a new empty. It only will be called from constructors of its inherited classes.
 
 SpatialIndex (vector< double > qiMin, vector< double > qiMax, double smoothingLength)
 It creates a new SpatialDecomposition with the parameters supplied. It only will be called from constructors of its inherited classes.
 
virtual list< ParticlegetNNP (Particle particle, vector< Particle > particles)=0
 It will perform the NNPS in its inherited classes.
 
virtual void update (vector< Particle > particles)=0
 It will update the SpatialIndex in its inherited classes.
 
 ~SpatialIndex ()
 It destroys the SpatialIndex.
 

Protected Attributes

vector< double > qiMin
 
vector< double > qiMax
 
double smoothingLength
 

Constructor & Destructor Documentation

SpatialIndex::SpatialIndex ( )

It creates a new empty. It only will be called from constructors of its inherited classes.

SpatialIndex::SpatialIndex ( vector< double >  qiMin,
vector< double >  qiMax,
double  smoothingLength 
)

It creates a new SpatialDecomposition with the parameters supplied. It only will be called from constructors of its inherited classes.

Parameters
qiMinminimum qi values of the simulation's stage
qiMaxmaximum qi values of the simulation's stage
smoothingLengththe new value of the smoothingLength
SpatialIndex::~SpatialIndex ( )

It destroys the SpatialIndex.

Member Function Documentation

virtual list<Particle> SpatialIndex::getNNP ( Particle  particle,
vector< Particle particles 
)
pure virtual

It will perform the NNPS in its inherited classes.

Returns
vector that contains the NNP of the particle

Implemented in LinkedList, AllPair, SpatialHashing, and SpatialTree.

Here is the caller graph for this function:

virtual void SpatialIndex::update ( vector< Particle particles)
pure virtual

It will update the SpatialIndex in its inherited classes.

Parameters
particlesof the fluid

Implemented in LinkedList, AllPair, SpatialHashing, and SpatialTree.

Member Data Documentation

vector<double> SpatialIndex::qiMax
protected
vector<double> SpatialIndex::qiMin
protected
double SpatialIndex::smoothingLength
protected

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