Changeset 1439 in Sophya for trunk/ArchTOIPipe/Kernel/toiprocessor.cc
- Timestamp:
- Mar 13, 2001, 7:23:14 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/toiprocessor.cc
r1437 r1439 47 47 inTOIs = new (TOI*[inIx.size()]); 48 48 for(i=0; i<inIx.size(); i++) 49 inTOIs[i] = NULL; 49 inTOIs[i] = NULL; // Protection-Initialisation - Reza 11/3/2001 50 50 outTOIs = new (TOI*[outIx.size()]); 51 51 for(i=0; i<outIx.size(); i++) 52 outTOIs[i] = NULL; 52 outTOIs[i] = NULL; // Protection-Initialisation - Reza 11/3/2001 53 53 } 54 54 … … 80 80 for (int i=0; i<nIn; i++) { 81 81 TOI* toi = inTOIs[i]; 82 if (toi == NULL) continue; // Protection - Reza 13/3/2001 82 83 int x = toi->getMinSn(); 83 84 if (x > minIn) minIn = x; … … 91 92 for (int i=0; i<nIn; i++) { 92 93 TOI* toi = inTOIs[i]; 94 if (toi == NULL) continue; // Protection - Reza 13/3/2001 93 95 int x = toi->getMaxSn(); 94 96 if (x < maxIn) maxIn = x; … … 163 165 void TOIProcessor::PrintStatus(ostream & os) 164 166 { 167 chkinit(); 165 168 os << " TOIProcessor::PrintStatus() - Name= " << name 166 169 << " MinIn=" << getMinIn() << " MaxIn=" << getMaxIn() << endl; … … 191 194 if (i == inIx.end()) throw NotFoundExc("TOIProcessor::addInput "+ 192 195 name+" not declared"); 193 inTOIs[(*i).second] = toi; 196 inTOIs[(*i).second] = toi; 197 toi->addConsumer(this); // $CHECK$ Reza 13/3/2001 194 198 } 195 199
Note:
See TracChangeset
for help on using the changeset viewer.