Fennel: SystemSamplingExecStreamGenerator Class Reference (original) (raw)

Generates one data value.

Parameters:

iRow 0-based row number to generate
iCol 0-based col number to generate

Implements MockProducerExecStreamGenerator.

Definition at line 120 of file SamplingExecStreamGenerator.h.

References clumpDistance, clumpPos, clumpSize, generator, iChildRow, iLastRow, and nColumns.

00121 { 00122 if (iRow != iLastRow) { 00123 assert(iCol == 0); 00124 00125 iChildRow++; 00126 clumpPos++; 00127 00128 if (clumpPos >= clumpSize) { 00129 // Skip clumpDistance rows 00130 for (uint i = 0; i < clumpDistance; i++) { 00131 // std::cout << "skip " << iChildRow << std::endl; 00132 for (int j = 0; j < nColumns; j++) { 00133 generator->generateValue(iChildRow, j); 00134 } 00135 iChildRow++; 00136 } 00137 clumpPos = 0; 00138 } 00139 iLastRow = iRow; 00140 00141 // std::cout << "gen " << iChildRow << std::endl; 00142 } 00143 00144 return generator->generateValue(iChildRow, iCol); 00145 }