Definition at line 182 of file AnnotationTableSet.h. References GetLabel(), GetTable(), ILOG_DEBUG, ILOG_ERROR, and Size(). Referenced by Impala::Samples::MonetTest::DoCheckAnnotations(). 00183 { 00184 if (Size() != arg->Size()) 00185 { 00186 ILOG_ERROR("Diff: Size differs: " << Size() << " vs " << 00187 arg->Size()); 00188 return 1; 00189 } 00190 int nDiff = 0; 00191 for (int i=0 ; i<Size() ; i++) 00192 { 00193 if (GetLabel(i) != arg->GetLabel(i)) 00194 { 00195 ILOG_DEBUG("Label " << i << " differs " << GetLabel(i) << 00196 " vs " << arg->GetLabel(i)); 00197 nDiff++; 00198 } 00199 else if (GetTable(i)->Diff(arg->GetTable(i)) > 0) 00200 { 00201 ILOG_DEBUG("Table " << i << " differs "); 00202 nDiff++; 00203 } 00204 } 00205 if (nDiff > 0) 00206 ILOG_ERROR("Found " << nDiff << " differences"); 00207 return nDiff; 00208 }
Here is the call graph for this function:
|