Fennel: CompositeExecStreamGenerator 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 269 of file ExecStreamGenerator.h.

References columnCount(), currentCol, currentRow, and generators.

00270 { 00271 // Check that access is sequential. 00272 if (iCol == 0) { 00273 assert(iRow == currentRow + 1); 00274 assert(currentCol == columnCount() - 1); 00275 } else { 00276 assert(iRow == currentRow); 00277 assert(iCol == currentCol + 1); 00278 } 00279 currentRow = iRow; 00280 currentCol = iCol; 00281 00282 return generators[iCol]->next(); 00283 }