Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

PrimeStream Class Template Reference

#include <prime-stream.h>

List of all members.


Detailed Description

template<class Element>
class LinBox::PrimeStream< Element >

Prime number stream

Provides a source of prime numbers of given characteristics to use in parts of the library that need to reduce modulo one or more primes.


Public Methods

 PrimeStream (Integer &start, bool move_up=true)
 ~PrimeStream ()
Elementnext (Element &a)
PrimeStream< Element > & operator>> (Element &a)


Constructor & Destructor Documentation

PrimeStream Integer   start,
bool    move_up = true
[inline]
 

Constructor

Construct a PrimeStream object.

Parameters:
start  Starting point; need not be prime itself
move_up  true if we should move up from the starting point, false otherwise

~PrimeStream   [inline]
 


Member Function Documentation

Element& next Element   a [inline]
 

Get the next prime element

Parameters:
a  Place to store the next prime element
Returns:
Reference to next prime element

PrimeStream<Element>& operator>> Element   a [inline]
 

Operator form for getting the next prime element


Generated on Mon Jun 20 09:16:52 2005 for linbox by doxygen1.2.18