Changes in molecuilder/src/stackclass.hpp [543ce4:418117a]
- File:
-
- 1 edited
-
molecuilder/src/stackclass.hpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/stackclass.hpp
r543ce4 r418117a 72 72 return true; 73 73 } else { 74 eLog() << Verbose( 0) << "ERROR:Stack is full, " << "Stack: CurrentLastEntry " << CurrentLastEntry<< "\tCurrentFirstEntry " << CurrentFirstEntry << "\tNextFreeField " << NextFreeField << "\tEntryCount " << EntryCount << "!" << endl;74 eLog() << Verbose(1) << "Stack is full, " << "Stack: CurrentLastEntry " << CurrentLastEntry<< "\tCurrentFirstEntry " << CurrentFirstEntry << "\tNextFreeField " << NextFreeField << "\tEntryCount " << EntryCount << "!" << endl; 75 75 return false; 76 76 } … … 87 87 Walker = StackList[CurrentFirstEntry]; 88 88 if (Walker == NULL) 89 eLog() << Verbose( 0) << "ERROR:Stack's field is empty!" << endl;89 eLog() << Verbose(1) << "Stack's field is empty!" << endl; 90 90 StackList[CurrentFirstEntry] = NULL; 91 91 if (CurrentFirstEntry != CurrentLastEntry) { // hasn't last item been popped as well? … … 96 96 } 97 97 } else 98 eLog() << Verbose( 0) << "ERROR:Stack is empty!" << endl;98 eLog() << Verbose(1) << "Stack is empty!" << endl; 99 99 return Walker; 100 100 }; … … 111 111 StackList[CurrentLastEntry] = NULL; 112 112 if (Walker == NULL) 113 eLog() << Verbose( 0) << "ERROR:Stack's field is empty!" << endl;113 eLog() << Verbose(1) << "Stack's field is empty!" << endl; 114 114 NextFreeField = CurrentLastEntry; 115 115 if (CurrentLastEntry != CurrentFirstEntry) // has there been more than one item on stack 116 116 CurrentLastEntry = (CurrentLastEntry + (EntryCount-1)) % EntryCount; // step back from current free field to last (modulo does not work in -1, thus go EntryCount-1 instead) 117 117 } else { 118 eLog() << Verbose( 0) << "ERROR:Stack is empty!" << endl;118 eLog() << Verbose(1) << "Stack is empty!" << endl; 119 119 } 120 120 return Walker; … … 151 151 } while (i!=NextFreeField); 152 152 else 153 eLog() << Verbose( 0) << "ERROR:Stack is already empty!" << endl;153 eLog() << Verbose(1) << "Stack is already empty!" << endl; 154 154 if (found) { 155 155 NextFreeField = CurrentLastEntry;
Note:
See TracChangeset
for help on using the changeset viewer.
