template<class T>
Definition at line 338 of file Criterion.h. References Impala::Core::Table::CriterionQuidObjectMaxNumberElement2< T >::mMaxNumber, Impala::Core::Table::CriterionQuidObjectMaxNumberElement2< T >::mNr, Impala::Core::Table::CriterionQuidObjectMaxNumberElement2< T >::mObjs, Impala::Core::Table::CriterionQuidObjectMaxNumberElement2< T >::mValue, and Impala::QuidObject(). 00347 { 00348 if (e2 != mValue) 00349 return true; 00350 if (mMaxNumber < 1) 00351 return false; 00352 00353 int qObj = QuidObject(e1); 00354 for (int i=0 ; i<mObjs.size() ; i++) 00355 { 00356 if (qObj == mObjs[i]) 00357 { 00358 if (mNr[i] < mMaxNumber) 00359 { 00360 mNr[i]++; 00361 return true; 00362 } 00363 else 00364 { 00365 return false; 00366 } 00367 } 00368 } 00369 mObjs.push_back(qObj); 00370 mNr.push_back(1); 00371 return true; 00372 }
Here is the call graph for this function:
|