valSPH
 All Classes Files Functions Variables
LinkedList Class Reference

#include <LinkedList.h>

Inheritance diagram for LinkedList:
Inheritance graph
Collaboration diagram for LinkedList:
Collaboration graph

Public Member Functions

 LinkedList ()
 It creates a new empty LinkedList.
 
 LinkedList (vector< double > qiMin, vector< double > qiMax, double smoothingLength, vector< Particle > particles)
 It creates a new LinkedList with the parameters supplied.
 
list< ParticlegetNNP (Particle particle, vector< Particle > particles)
 It performs the NNPS and returns the NNP of the particle.
 
void update (vector< Particle > particles)
 It updates the LinkedList.
 
 ~LinkedList ()
 It destroys the LinkedList.
 
- Public Member Functions inherited from SpatialIndex
 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.
 
 ~SpatialIndex ()
 It destroys the SpatialIndex.
 

Additional Inherited Members

- Protected Attributes inherited from SpatialIndex
vector< double > qiMin
 
vector< double > qiMax
 
double smoothingLength
 

Constructor & Destructor Documentation

LinkedList::LinkedList ( )

It creates a new empty LinkedList.

LinkedList::LinkedList ( vector< double >  qiMin,
vector< double >  qiMax,
double  smoothingLength,
vector< Particle particles 
)

It creates a new LinkedList with the parameters supplied.

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

It destroys the LinkedList.

Member Function Documentation

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

It performs the NNPS and returns the NNP of the particle.

Returns
vector that contains the NNP of the particle

Implements SpatialIndex.

Here is the call graph for this function:

void LinkedList::update ( vector< Particle particles)
virtual

It updates the LinkedList.

Parameters
particlesof the fluid

Implements SpatialIndex.


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