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

template<class C1, class C2>
bool Impala::Core::Column::Equals ( const C1 *  t1,
const C2 *  t2,
int  nrElem 
) [inline]

Definition at line 17 of file Equals.h.

References ILOG_ERROR, and ILOG_VAR.

Referenced by Impala::Core::Table::Equals().

00018 {
00019     ILOG_VAR(Impala.Core.Column.Equals);
00020     if (nrElem > t2->Capacity())
00021     {
00022         ILOG_ERROR("incompatible t2 range");
00023         return false;
00024     }
00025     if (nrElem > t1->Capacity())
00026     {
00027         ILOG_ERROR("incompatible t1 range");
00028         return false;
00029     }
00030 
00031     for (int i=0 ; i<nrElem ; i++)
00032         if(t1->Get(i) != t2->Get(i))
00033             return false;
00034 
00035     return true;
00036 }


Generated on Fri Mar 19 11:06:10 2010 for ImpalaSrc by  doxygen 1.5.1