DynamicParamExecStreamGenerator Class Reference

Outputs the value of a specified dynamic param, reinterpreted as int64_t. More...

#include <ExecStreamGenerator.h>

Inheritance diagram for DynamicParamExecStreamGenerator:

MockProducerExecStreamGenerator List of all members.

Public Member Functions

 DynamicParamExecStreamGenerator (DynamicParamId dynamicParamId_, SharedDynamicParamManager paramManager_)
virtual int64_t generateValue (uint iRow, uint iCol)
 Generates one data value.

Private Attributes

DynamicParamId dynamicParamId
SharedDynamicParamManager paramManager

Detailed Description

Outputs the value of a specified dynamic param, reinterpreted as int64_t.

Wael Chatila

Definition at line 128 of file ExecStreamGenerator.h.

Constructor & Destructor Documentation

DynamicParamExecStreamGenerator::DynamicParamExecStreamGenerator ( DynamicParamId  dynamicParamId_,
SharedDynamicParamManager  paramManager_ 
) [inline]

Definition at line 134 of file ExecStreamGenerator.h.

00137         : dynamicParamId(dynamicParamId_),
00138           paramManager(paramManager_)
00139     {
00140         // empty
00141     }

Member Function Documentation

virtual int64_t DynamicParamExecStreamGenerator::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 143 of file ExecStreamGenerator.h.

References dynamicParamId, and paramManager.

00144     {
00145         int64_t value = *reinterpret_cast<int64_t const *>(
00146             paramManager->getParam(dynamicParamId).getDatum().pData);
00147         return value;
00148     }

Member Data Documentation

DynamicParamId DynamicParamExecStreamGenerator::dynamicParamId [private]

Definition at line 130 of file ExecStreamGenerator.h.

Referenced by generateValue().

SharedDynamicParamManager DynamicParamExecStreamGenerator::paramManager [private]

Definition at line 131 of file ExecStreamGenerator.h.

Referenced by generateValue().

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