Changeset 1b2aa1 for molecuilder/src/moleculelist.cpp
- Timestamp:
- Jul 23, 2009, 12:14:13 PM (16 years ago)
- Children:
- f39735
- Parents:
- a41b50
- File:
-
- 1 edited
-
molecuilder/src/moleculelist.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/moleculelist.cpp
ra41b50 r1b2aa1 527 527 528 528 // open file for the force factors 529 *out << Verbose(1) << "Saving force factors ... ";529 *out << Verbose(1) << "Saving force factors ... "; 530 530 line << path << "/" << FRAGMENTPREFIX << FORCESFILE; 531 531 ForcesFile.open(line.str().c_str(), ios::out); … … 695 695 MoleculeLeafClass::MoleculeLeafClass(MoleculeLeafClass *PreviousLeaf = NULL) 696 696 { 697 // if (Up != NULL)698 // if (Up->DownLeaf == NULL) // are we the first down leaf for the upper leaf?699 // Up->DownLeaf = this;700 // UpLeaf = Up;701 // DownLeaf = NULL;697 // if (Up != NULL) 698 // if (Up->DownLeaf == NULL) // are we the first down leaf for the upper leaf? 699 // Up->DownLeaf = this; 700 // UpLeaf = Up; 701 // DownLeaf = NULL; 702 702 Leaf = NULL; 703 703 previous = PreviousLeaf; … … 715 715 MoleculeLeafClass::~MoleculeLeafClass() 716 716 { 717 // if (DownLeaf != NULL) {// drop leaves further down718 // MoleculeLeafClass *Walker = DownLeaf;719 // MoleculeLeafClass *Next;720 // do {721 // Next = Walker->NextLeaf;722 // delete(Walker);723 // Walker = Next;724 // } while (Walker != NULL);725 // // Last Walker sets DownLeaf automatically to NULL726 // }717 // if (DownLeaf != NULL) {// drop leaves further down 718 // MoleculeLeafClass *Walker = DownLeaf; 719 // MoleculeLeafClass *Next; 720 // do { 721 // Next = Walker->NextLeaf; 722 // delete(Walker); 723 // Walker = Next; 724 // } while (Walker != NULL); 725 // // Last Walker sets DownLeaf automatically to NULL 726 // } 727 727 // remove the leaf itself 728 728 if (Leaf != NULL) { … … 733 733 if (previous != NULL) 734 734 previous->next = next; 735 // } else { // we are first in list (connects to UpLeaf->DownLeaf)736 // if ((NextLeaf != NULL) && (NextLeaf->UpLeaf == NULL))737 // NextLeaf->UpLeaf = UpLeaf;// either null as we are top level or the upleaf of the first node738 // if (UpLeaf != NULL)739 // UpLeaf->DownLeaf = NextLeaf;// either null as we are only leaf or NextLeaf if we are just the first740 // }741 // UpLeaf = NULL;735 // } else { // we are first in list (connects to UpLeaf->DownLeaf) 736 // if ((NextLeaf != NULL) && (NextLeaf->UpLeaf == NULL)) 737 // NextLeaf->UpLeaf = UpLeaf; // either null as we are top level or the upleaf of the first node 738 // if (UpLeaf != NULL) 739 // UpLeaf->DownLeaf = NextLeaf; // either null as we are only leaf or NextLeaf if we are just the first 740 // } 741 // UpLeaf = NULL; 742 742 if (next != NULL) // are we last in list 743 743 next->previous = previous;
Note:
See TracChangeset
for help on using the changeset viewer.
