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

virtual double TableDataSourceTest::GetNormalizedDataByID ( String  column,
int  row 
) [inline, virtual]

Reimplemented from Impala::Application::MediaTable::TableDataSource.

Definition at line 41 of file testTableDataSource.h.

References mTotalRows.

00042     {
00043         double v = row / (double)mTotalRows;
00044         if (column == "red")
00045             return v;
00046         if (column == "green")
00047             return 1.0 - v;
00048         if (column == "blue") {
00049             return (row % 10) / 10.0;
00050         }
00051         return 0.0;
00052     }


Generated on Fri Mar 19 10:32:50 2010 for ImpalaSrc by  doxygen 1.5.1