HG-MD  1
HGRID_2D.h
Go to the documentation of this file.
00001 #ifndef HGRID_2D_H
00002 #define HGrid_2D_H
00003 
00004 #include "HGRID_base.h"
00005 #include <iostream>
00006 
00008 class HGRID_2D : public HGRID_base
00009         {
00010 public:
00011 
00013         HGRID_2D()
00014         {
00015                 constructor();
00016                 #ifdef CONSTUCTOR_OUTPUT
00017                         cerr << "HGRID_2D() finished"<<endl;
00018                 #endif
00019         }
00020         
00022         //The copy-constructor of MD has to be called because the link from MD to HGRID_base is virtual
00023         HGRID_2D(MD& other) : MD(other), HGRID_base(other)
00024         {
00025                 constructor();
00026                 #ifdef CONSTUCTOR_OUTPUT
00027                         cerr << "HGRID_2D(MD& other) finished" << endl;
00028                 #endif
00029         }
00030         HGRID_2D(HGRID_base& other) : MD(other), HGRID_base(other)
00031         {
00032                 constructor();
00033                 #ifdef CONSTUCTOR_OUTPUT
00034                         cerr << "HGRID_2D(HGRID_base& other) finished" << endl;
00035                 #endif
00036         }
00037         
00039         void constructor() {}
00040 
00041 protected:
00042 
00044         void HGRID_UpdateParticleInHgrid  (Particle *obj);
00045         void HGRID_RemoveParticleFromHgrid(Particle *obj);
00046 
00048         void CheckCell(Cell cell, Particle *obj, HGrid *grid);
00049 
00051         void CheckCell_current(Cell cell, HGrid *grid);
00052 
00054         void CheckObjAgainstGrid(HGrid *grid, Particle *obj);
00055                 
00057         void CheckObjAgainstWholeGrid(HGrid *grid, Particle *obj);
00058 
00061         bool TestCell(Cell cell, Particle *obj, HGrid *grid);
00062 
00065         bool TestObjAgainstGrid(HGrid *grid, Particle *obj);
00066         };
00067 //end class defintion
00068 
00069 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines