Changeset 6e250f for molecuilder
- Timestamp:
- Oct 18, 2009, 4:35:25 PM (16 years ago)
- Children:
- 312ba2
- Parents:
- f444ce
- Location:
- molecuilder/src
- Files:
-
- 3 edited
-
molecule.hpp (modified) (2 diffs)
-
molecule_graph.cpp (modified) (2 diffs)
-
molecule_template.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecule.hpp
rf444ce r6e250f 187 187 template <typename T> void SetAtomValueToIndexedArray ( T *array, int TesselPoint::*index, T atom::*value ); 188 188 template <typename T> void SetAtomValueToIndexedArray ( T *array, int element::*index, T atom::*value ); 189 template <typename T> void SetAtomValueToValue ( T value, T atom::*ptr ); 189 190 190 191 template <typename res> res SumPerAtom(res (atom::*f)() ); … … 269 270 void InitComponentNumbers(); 270 271 void ResetAllBondsToUnused(); 271 void ResetAllAtomNumbers();272 272 int CountCyclicBonds(ofstream *out); 273 273 bool CheckForConnectedSubgraph(ofstream *out, KeySet *Fragment); -
molecuilder/src/molecule_graph.cpp
rf444ce r6e250f 387 387 388 388 ResetAllBondsToUnused(); 389 ResetAllAtomNumbers();389 SetAtomValueToValue( -1, &atom::GraphNr ); 390 390 ActOnAllAtoms( &atom::InitComponentNr ); 391 391 BackEdgeStack->ClearStack(); … … 804 804 Binder = Binder->next; 805 805 Binder->ResetUsed(); 806 }807 };808 809 /** Resets atom::nr to -1 of all atoms in this molecule.810 */811 void molecule::ResetAllAtomNumbers()812 {813 atom *Walker = start;814 while (Walker->next != end) {815 Walker = Walker->next;816 Walker->GraphNr = -1;817 806 } 818 807 }; -
molecuilder/src/molecule_template.hpp
rf444ce r6e250f 612 612 } 613 613 }; 614 template <typename T> void molecule::SetAtomValueToValue ( T value, T atom::*ptr ) 615 { 616 atom *Walker = start; 617 while (Walker->next != end) { 618 Walker = Walker->next; 619 Walker->*ptr = value; 620 //cout << Verbose(2) << *Walker << " gets " << (Walker->*ptr) << endl; 621 } 622 }; 623 614 624 615 625 #endif /* MOLECULE_TEMPLATE_HPP_ */
Note:
See TracChangeset
for help on using the changeset viewer.
