Changeset ef5521 for molecuilder
- Timestamp:
- Aug 7, 2009, 12:46:27 PM (16 years ago)
- Children:
- 609e48
- Parents:
- 0fc0b5
- Location:
- molecuilder/src
- Files:
-
- 5 edited
-
linkedcell.cpp (modified) (2 diffs)
-
molecules.cpp (modified) (2 diffs)
-
molecules.hpp (modified) (1 diff)
-
tesselation.cpp (modified) (2 diffs)
-
tesselation.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/linkedcell.cpp
r0fc0b5 ref5521 54 54 } 55 55 set->GoToFirst(); 56 while (!set->Is Last()) {56 while (!set->IsEnd()) { 57 57 Walker = set->GetPoint(); 58 58 for (int i=0;i<NDIM;i++) { … … 87 87 cout << Verbose(2) << "Filling cells ... "; 88 88 set->GoToFirst(); 89 while (!set->Is Last()) {89 while (!set->IsEnd()) { 90 90 Walker = set->GetPoint(); 91 91 for (int i=0;i<NDIM;i++) { -
molecuilder/src/molecules.cpp
r0fc0b5 ref5521 124 124 void molecule::GoToNext() 125 125 { 126 if (InternalPointer ->next!= end)126 if (InternalPointer != end) 127 127 InternalPointer = InternalPointer->next; 128 128 }; … … 162 162 * \return true - current atom is last one, false - is not last one 163 163 */ 164 bool molecule::Is Last()165 { 166 return (InternalPointer ->next== end);164 bool molecule::IsEnd() 165 { 166 return (InternalPointer == end); 167 167 }; 168 168 -
molecuilder/src/molecules.hpp
r0fc0b5 ref5521 150 150 void GoToLast(); 151 151 bool IsEmpty(); 152 bool Is Last();152 bool IsEnd(); 153 153 154 154 /// remove atoms from molecule. -
molecuilder/src/tesselation.cpp
r0fc0b5 ref5521 912 912 913 913 cloud->GoToFirst(); 914 while (!cloud->Is Last()) { // we only have to go once through all points, as boundary can become only bigger914 while (!cloud->IsEnd()) { // we only have to go once through all points, as boundary can become only bigger 915 915 Walker = cloud->GetPoint(); 916 916 *out << Verbose(2) << "Current point is " << *Walker << "." << endl; … … 1325 1325 cout << Verbose(0) << "Begin of Find_next_suitable_triangle\n"; 1326 1326 bool result = true; 1327 bool degenerateTriangle = false;1328 1327 CandidateList *Opt_Candidates = new CandidateList(); 1329 1328 -
molecuilder/src/tesselation.hpp
r0fc0b5 ref5521 163 163 virtual void GoToLast() {}; 164 164 virtual bool IsEmpty() { return false; }; 165 virtual bool Is Last() { return false; };165 virtual bool IsEnd() { return false; }; 166 166 }; 167 167
Note:
See TracChangeset
for help on using the changeset viewer.
