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

int Impala::Core::Table::AnnotationTable::Diff ( AnnotationTable arg  )  const [inline]

Definition at line 286 of file AnnotationTable.h.

References Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get1(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get2(), ILOG_DEBUG, ILOG_ERROR, and Impala::Core::Table::Table::Size().

00287     {
00288         if (Size() != arg->Size())
00289         {
00290             ILOG_ERROR("Diff: Size differs: " << Size() << " vs " <<
00291                        arg->Size());
00292             return 1;
00293         }
00294         int nDiff = 0;
00295         for (int i=0 ; i<Size() ; i++)
00296         {
00297             if (Get1(i) != arg->Get1(i))
00298             {
00299                 ILOG_DEBUG("Quid " << i << " differs " << Get1(i) <<
00300                            " vs " << arg->Get1(i));
00301                 nDiff++;
00302             }
00303             else if (::fabs(Get2(i) -arg->Get2(i)) > 0.00001)
00304             {
00305                 ILOG_DEBUG("Anno " << i << " differs " << Get2(i) <<
00306                            " vs " << arg->Get2(i));
00307                 nDiff++;
00308             }
00309         }
00310         if (nDiff > 0)
00311             ILOG_ERROR("Found " << nDiff << " differences");
00312         return nDiff;
00313     }

Here is the call graph for this function:


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