Changeset a9b2a0a for molecuilder/src/linkedcell.cpp
- Timestamp:
- Oct 27, 2009, 4:11:22 PM (16 years ago)
- Children:
- 069034
- Parents:
- 55a71b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/linkedcell.cpp
r55a71b ra9b2a0a 33 33 * \param RADIUS edge length of cells 34 34 */ 35 LinkedCell::LinkedCell( PointCloud *set,double radius)35 LinkedCell::LinkedCell(const PointCloud * const set, const double radius) 36 36 { 37 37 TesselPoint *Walker = NULL; … … 109 109 * \param RADIUS edge length of cells 110 110 */ 111 LinkedCell::LinkedCell(LinkedNodes *set, double radius)111 LinkedCell::LinkedCell(LinkedNodes *set, const double radius) 112 112 { 113 113 class TesselPoint *Walker = NULL; … … 192 192 * \return if all in intervals - true, else -false 193 193 */ 194 bool LinkedCell::CheckBounds() 194 bool LinkedCell::CheckBounds() const 195 195 { 196 196 bool status = true; … … 207 207 * \return if all in intervals - true, else -false 208 208 */ 209 bool LinkedCell::CheckBounds( int relative[NDIM])209 bool LinkedCell::CheckBounds(const int relative[NDIM]) const 210 210 { 211 211 bool status = true; … … 219 219 * \return LinkedAtoms pointer to current cell, NULL if LinkedCell::n[] are out of bounds. 220 220 */ 221 LinkedNodes* LinkedCell::GetCurrentCell() 221 const LinkedNodes* LinkedCell::GetCurrentCell() const 222 222 { 223 223 if (CheckBounds()) { … … 233 233 * \return LinkedAtoms pointer to current cell, NULL if LinkedCell::n[]+relative[] are out of bounds. 234 234 */ 235 LinkedNodes* LinkedCell::GetRelativeToCurrentCell(int relative[NDIM]) 235 const LinkedNodes* LinkedCell::GetRelativeToCurrentCell(const int relative[NDIM]) const 236 236 { 237 237 if (CheckBounds(relative)) { … … 247 247 * \return if the atom is also found in this cell - true, else - false 248 248 */ 249 bool LinkedCell::SetIndexToNode(const TesselPoint * Walker)249 bool LinkedCell::SetIndexToNode(const TesselPoint * const Walker) const 250 250 { 251 251 bool status = false; … … 268 268 * \param *upper upper bounds 269 269 */ 270 void LinkedCell::GetNeighbourBounds(int lower[NDIM], int upper[NDIM]) 270 void LinkedCell::GetNeighbourBounds(int lower[NDIM], int upper[NDIM]) const 271 271 { 272 272 for (int i=0;i<NDIM;i++) { … … 288 288 * \return Vector is inside bounding box - true, else - false 289 289 */ 290 bool LinkedCell::SetIndexToVector(const Vector * x)290 bool LinkedCell::SetIndexToVector(const Vector * const x) const 291 291 { 292 292 bool status = true;
Note:
See TracChangeset
for help on using the changeset viewer.