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

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

Definition at line 367 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().

00368     {
00369         if (Size() != arg->Size())
00370         {
00371             ILOG_ERROR("Diff: Size differs: " << Size() << " vs " <<
00372                        arg->Size());
00373             return 1;
00374         }
00375         int nDiff = 0;
00376         for (int i=0 ; i<Size() ; i++)
00377         {
00378             if (Get1(i) != arg->Get1(i))
00379             {
00380                 ILOG_DEBUG("Quid " << i << " differs " << Get1(i) <<
00381                            " vs " << arg->Get1(i));
00382                 nDiff++;
00383             }
00384             else if (::fabs(Get2(i) -arg->Get2(i)) > 0.00001)
00385             {
00386                 ILOG_DEBUG("Anno " << i << " differs " << Get2(i) <<
00387                            " vs " << arg->Get2(i));
00388                 nDiff++;
00389             }
00390         }
00391         if (nDiff > 0)
00392             ILOG_ERROR("Found " << nDiff << " differences");
00393         return nDiff;
00394     }

Here is the call graph for this function:


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