Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

template<class T>
bool Impala::Core::Table::CriterionQuidObjectMaxNumberElement2< T >::Check ( const typename T::Col1ElemType &  e1,
const typename T::Col2ElemType &  e2,
const typename T::Col3ElemType &  e3,
const typename T::Col4ElemType &  e4,
const typename T::Col5ElemType &  e5,
const typename T::Col6ElemType &  e6,
const typename T::Col7ElemType &  e7,
const typename T::Col8ElemType &  e8,
const typename T::Col9ElemType &  e9 
) [inline]

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:


Generated on Fri Mar 19 11:20:37 2010 for ImpalaSrc by  doxygen 1.5.1