SeqColumnGenerator Class Reference

Column generator which produces values in sequence, starting at start, optionally with a fixed offset between each value. More...

#include <ExecStreamGenerator.h>

Inheritance diagram for SeqColumnGenerator:

ColumnGenerator< T > List of all members.

Public Member Functions

 SeqColumnGenerator ()
 SeqColumnGenerator (int startInit)
 SeqColumnGenerator (int startInit, int offsetInit)
int64_t next ()

Private Attributes

int offset
int curr

Detailed Description

Column generator which produces values in sequence, starting at start, optionally with a fixed offset between each value.

Definition at line 331 of file ExecStreamGenerator.h.


Constructor & Destructor Documentation

SeqColumnGenerator::SeqColumnGenerator (  )  [inline, explicit]

Definition at line 337 of file ExecStreamGenerator.h.

References curr, and offset.

00338     {
00339         offset = 1;
00340         curr = -1;
00341     }

SeqColumnGenerator::SeqColumnGenerator ( int  startInit  )  [inline, explicit]

Definition at line 342 of file ExecStreamGenerator.h.

References curr, and offset.

00343     {
00344         offset = 1;
00345         curr = startInit - 1;
00346     }

SeqColumnGenerator::SeqColumnGenerator ( int  startInit,
int  offsetInit 
) [inline, explicit]

Definition at line 348 of file ExecStreamGenerator.h.

References curr, and offset.

00349     {
00350         offset = offsetInit;
00351         curr = startInit - offset;
00352     }


Member Function Documentation

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

Implements ColumnGenerator< T >.

Definition at line 354 of file ExecStreamGenerator.h.

References curr, and offset.

00355     {
00356         curr += offset;
00357         return curr;
00358     }


Member Data Documentation

int SeqColumnGenerator::offset [private]

Definition at line 333 of file ExecStreamGenerator.h.

Referenced by next(), and SeqColumnGenerator().

int SeqColumnGenerator::curr [private]

Definition at line 334 of file ExecStreamGenerator.h.

Referenced by next(), and SeqColumnGenerator().


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