RandomColumnGenerator Class Reference

Column generator which produces values which are uniformly distributed between 0 and N - 1. More...

#include <ExecStreamGenerator.h>

Inheritance diagram for RandomColumnGenerator:

ColumnGenerator< T > List of all members.

Public Member Functions

 RandomColumnGenerator (int max)
int64_t next ()

Private Attributes

std::subtractive_rng rng
int max

Detailed Description

Column generator which produces values which are uniformly distributed between 0 and N - 1.

Definition at line 155 of file ExecStreamGenerator.h.


Constructor & Destructor Documentation

RandomColumnGenerator::RandomColumnGenerator ( int  max  )  [inline]

Definition at line 161 of file ExecStreamGenerator.h.

00161                                    : rng(42), max(max)
00162         {}


Member Function Documentation

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

Implements ColumnGenerator< T >.

Definition at line 164 of file ExecStreamGenerator.h.

References max, and rng.

00165     {
00166         return rng(max);
00167     }


Member Data Documentation

std::subtractive_rng RandomColumnGenerator::rng [private]

Definition at line 157 of file ExecStreamGenerator.h.

Referenced by next().

int RandomColumnGenerator::max [private]

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