Home || Visual Search || Applications || Architecture || 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 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:


Generated on Thu Jan 13 09:20:50 2011 for ImpalaSrc by  doxygen 1.5.1