StairCaseExecStreamGenerator Class Reference

A Staircase Generator. More...

#include <ExecStreamGenerator.h>

Inheritance diagram for StairCaseExecStreamGenerator:

MockProducerExecStreamGenerator List of all members.

Public Member Functions

 StairCaseExecStreamGenerator (int height, uint width, int start=0)
virtual int64_t generateValue (uint iRow, uint iCol)
 Generates one data value.

Private Attributes

int s
int h
int w

Detailed Description

A Staircase Generator.

Outputs numbers according to the formula: Height * (row / (int) Width)

Wael Chatila

Definition at line 103 of file ExecStreamGenerator.h.

Constructor & Destructor Documentation

StairCaseExecStreamGenerator::StairCaseExecStreamGenerator ( int  height,
uint  width,
int  start = 0 
) [inline]

Definition at line 109 of file ExecStreamGenerator.h.

00109                                                                         :
00110         s(start),
00111         h(height),
00112         w(width)
00113     {
00114         // empty
00115     }

Member Function Documentation

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

References h, s, and w.

00118     {
00119         return s + h * (iRow / w);
00120     }

Member Data Documentation

int StairCaseExecStreamGenerator::s [private]

Definition at line 105 of file ExecStreamGenerator.h.

Referenced by generateValue().

int StairCaseExecStreamGenerator::h [private]

Definition at line 106 of file ExecStreamGenerator.h.

Referenced by generateValue().

int StairCaseExecStreamGenerator::w [private]

Definition at line 107 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:47 2009 for Fennel by  doxygen 1.5.1