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

virtual void Impala::Core::Table::AnnotationTable::Dump ( int  from = 0,
int  to = -1 
) [inline, virtual]

Definition at line 316 of file AnnotationTable.h.

References Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Capacity(), 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(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::GetColName(), and Impala::Core::Table::Table::Size().

Referenced by Impala::Core::Table::AnnotationTableSet::Dump(), Dump(), Impala::Core::Table::Bayes::InitializeConceptAnnoTables(), and Impala::Core::Table::Bayes::InitializeGenreAnnoTables().

00317     {
00318         if (to == -1 || to > Size())
00319             to = Size();
00320         if (to < from)
00321             to = from;
00322         if (to <= from)
00323             return ;
00324 
00325         std::cout << "Dumping table from " << from << " to " << to
00326                   << " (table size=" << Size() << ", capacity=" << Capacity()
00327                   << ")" << std::endl;
00328         for (int i=0 ; i<2 ; i++)
00329             std::cout << i+1 << "=" << GetColName(i+1) << ", ";
00330         std::cout << std::endl;
00331         for (int i=from ; i<to ; i++)
00332         {
00333             std::cout << QuidObj(Get1(i)) << ", " << Get2(i) << std::endl;
00334         }
00335         std::cout << std::endl;
00336     }

Here is the call graph for this function:


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