Ignore:
Timestamp:
Mar 13, 2001, 7:23:14 PM (25 years ago)
Author:
ansari
Message:

Correction bugs, protections, ameliorations - Reza 13/3/2001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/toiprocessor.cc

    r1437 r1439  
    4747  inTOIs = new (TOI*[inIx.size()]);
    4848  for(i=0; i<inIx.size(); i++)
    49     inTOIs[i] = NULL;
     49    inTOIs[i] = NULL;     // Protection-Initialisation - Reza  11/3/2001
    5050  outTOIs = new (TOI*[outIx.size()]);
    5151  for(i=0; i<outIx.size(); i++)
    52     outTOIs[i] = NULL;
     52    outTOIs[i] = NULL;    // Protection-Initialisation - Reza  11/3/2001
    5353}
    5454
     
    8080  for (int i=0; i<nIn; i++) {
    8181    TOI* toi = inTOIs[i];
     82    if (toi == NULL) continue;  // Protection - Reza  13/3/2001
    8283    int x = toi->getMinSn();
    8384    if (x > minIn) minIn = x;
     
    9192  for (int i=0; i<nIn; i++) {
    9293    TOI* toi = inTOIs[i];
     94    if (toi == NULL) continue;  // Protection - Reza  13/3/2001
    9395    int x = toi->getMaxSn();
    9496    if (x < maxIn) maxIn = x;
     
    163165void TOIProcessor::PrintStatus(ostream & os)
    164166{
     167  chkinit();
    165168  os << " TOIProcessor::PrintStatus() - Name= " << name
    166169     << " MinIn=" << getMinIn() << " MaxIn=" << getMaxIn() << endl;
     
    191194  if (i == inIx.end()) throw NotFoundExc("TOIProcessor::addInput "+
    192195                                         name+" not declared");
    193   inTOIs[(*i).second] = toi;
     196  inTOIs[(*i).second] = toi;
     197  toi->addConsumer(this);   // $CHECK$  Reza 13/3/2001
    194198}
    195199
Note: See TracChangeset for help on using the changeset viewer.