NumberStreamExecStreamGenerator Class Reference

#include <LbmExecStreamTestBase.h>

Inheritance diagram for NumberStreamExecStreamGenerator:

MockProducerExecStreamGenerator List of all members.

Public Member Functions

 NumberStreamExecStreamGenerator (SharedNumberStream pNumberStream)
virtual int64_t generateValue (uint iRow, uint iCol)
 Generates one data value.

Protected Attributes

SharedNumberStream pStream

Detailed Description

Definition at line 244 of file LbmExecStreamTestBase.h.

Constructor & Destructor Documentation

NumberStreamExecStreamGenerator::NumberStreamExecStreamGenerator ( SharedNumberStream  pNumberStream  )  [inline]

Definition at line 249 of file LbmExecStreamTestBase.h.

References pStream.

00250     {
00251         pStream = SharedNumberStream(pNumberStream->clone());
00252     }

Member Function Documentation

virtual int64_t NumberStreamExecStreamGenerator::generateValue ( uint  iRow,
uint  iCol 
) [inline, virtual]

Generates one data value.

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

Implements MockProducerExecStreamGenerator.

Definition at line 254 of file LbmExecStreamTestBase.h.

References pStream.

00255     {
00256         if (pStream->hasNext()) {
00257             return pStream->getNext();
00258         }
00259         return 0;
00260     }

Member Data Documentation

SharedNumberStream NumberStreamExecStreamGenerator::pStream [protected]

Definition at line 247 of file LbmExecStreamTestBase.h.

Referenced by generateValue(), and NumberStreamExecStreamGenerator().

The documentation for this class was generated from the following file:
Generated on Mon Jun 22 04:00:40 2009 for Fennel by  doxygen 1.5.1