Changes in src/linkedcell.hpp [776b64:ffe885]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/linkedcell.hpp
r776b64 rffe885 33 33 /********************************************** definitions *********************************/ 34 34 35 #define LinkedNodes list<TesselPoint *>36 35 37 36 /********************************************** declarations *******************************/ … … 40 39 */ 41 40 class LinkedCell { 42 public: 41 private: 42 43 public: 44 typedef list<TesselPoint *> LinkedNodes; 45 46 43 47 Vector max; // upper boundary 44 48 Vector min; // lower boundary … … 53 57 LinkedCell(LinkedNodes *set, const double radius); 54 58 ~LinkedCell(); 55 const Linked Nodes* GetCurrentCell()const ;56 const Linked Nodes* GetRelativeToCurrentCell(const int relative[NDIM])const ;59 const LinkedCell::LinkedNodes* GetCurrentCell()const ; 60 const LinkedCell::LinkedNodes* GetRelativeToCurrentCell(const int relative[NDIM])const ; 57 61 bool SetIndexToNode(const TesselPoint * const Walker)const ; 58 62 bool SetIndexToVector(const Vector * const x)const ; 63 double SetClosestIndexToOutsideVector(const Vector * const x) const; 59 64 bool CheckBounds()const ; 60 65 bool CheckBounds(const int relative[NDIM])const ; 61 void GetNeighbourBounds(int lower[NDIM], int upper[NDIM] )const ;66 void GetNeighbourBounds(int lower[NDIM], int upper[NDIM], int step = 1)const ; 62 67 68 LinkedCell::LinkedNodes* GetallNeighbours(const double distance = 0) const; 69 LinkedCell::LinkedNodes* GetPointsInsideSphere(const double radius, const Vector * const center) const; 63 70 // not implemented yet 64 71 bool AddNode(Vector *Walker);
Note:
See TracChangeset
for help on using the changeset viewer.