Definition at line 136 of file AnnotationTableSet.h. References GetLabel(), GetTable(), ILOG_DEBUG, ILOG_ERROR, and Size(). Referenced by Impala::Samples::MonetTest::DoCheckAnnotations(). 00137 { 00138 if (Size() != arg->Size()) 00139 { 00140 ILOG_ERROR("Diff: Size differs: " << Size() << " vs " << 00141 arg->Size()); 00142 return 1; 00143 } 00144 int nDiff = 0; 00145 for (int i=0 ; i<Size() ; i++) 00146 { 00147 if (GetLabel(i) != arg->GetLabel(i)) 00148 { 00149 ILOG_DEBUG("Label " << i << " differs " << GetLabel(i) << 00150 " vs " << arg->GetLabel(i)); 00151 nDiff++; 00152 } 00153 else if (GetTable(i)->Diff(arg->GetTable(i)) > 0) 00154 { 00155 ILOG_DEBUG("Table " << i << " differs "); 00156 nDiff++; 00157 } 00158 } 00159 if (nDiff > 0) 00160 ILOG_ERROR("Found " << nDiff << " differences"); 00161 return nDiff; 00162 }
Here is the call graph for this function:
|