StairCaseColumnGenerator Class Reference

Same as StairCaseExecStreamGenerator except for columns. More...

#include <ExecStreamGenerator.h>

Inheritance diagram for StairCaseColumnGenerator:

ColumnGenerator< T > List of all members.

Public Member Functions

 StairCaseColumnGenerator (int height, uint width, int start=0)
int64_t next ()

Private Attributes

int s
int h
int w
uint iRow

Detailed Description

Same as StairCaseExecStreamGenerator except for columns.

Definition at line 515 of file ExecStreamGenerator.h.


Constructor & Destructor Documentation

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

Definition at line 523 of file ExecStreamGenerator.h.

00523                                                                     :
00524         s(start),
00525         h(height),
00526         w(width),
00527         iRow(0)
00528     {
00529         // empty
00530     }


Member Function Documentation

int64_t StairCaseColumnGenerator::next (  )  [inline, virtual]

Implements ColumnGenerator< T >.

Definition at line 532 of file ExecStreamGenerator.h.

References h, iRow, s, and w.

00533     {
00534         return s + h * (iRow++ / w);
00535     }


Member Data Documentation

int StairCaseColumnGenerator::s [private]

Definition at line 517 of file ExecStreamGenerator.h.

Referenced by next().

int StairCaseColumnGenerator::h [private]

Definition at line 518 of file ExecStreamGenerator.h.

Referenced by next().

int StairCaseColumnGenerator::w [private]

Definition at line 519 of file ExecStreamGenerator.h.

Referenced by next().

uint StairCaseColumnGenerator::iRow [private]

Definition at line 520 of file ExecStreamGenerator.h.

Referenced by next().


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