template<class T>
Definition at line 311 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(). 00320 { 00321 if (e2 != mValue) 00322 return true; 00323 if (mMaxNumber < 1) 00324 return false; 00325 00326 int qObj = QuidObject(e1); 00327 for (int i=0 ; i<mObjs.size() ; i++) 00328 { 00329 if (qObj == mObjs[i]) 00330 { 00331 if (mNr[i] < mMaxNumber) 00332 { 00333 mNr[i]++; 00334 return true; 00335 } 00336 else 00337 { 00338 return false; 00339 } 00340 } 00341 } 00342 mObjs.push_back(qObj); 00343 mNr.push_back(1); 00344 return true; 00345 }
Here is the call graph for this function:
|