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