Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

PrimeNumbers Class Reference

#include <PrimeNumbers.h>

List of all members.

Public Methods

 PrimeNumbers ()
const Integer& current () const
const Integer& nextNumber ()
void setCurrent (const Integer &num)
bool isPrime (Integer num) const
DArray<Integer> getPrimeDecom (const Integer &num)
void printPrimeDecom (ostream &ostr, const Integer &num)

Private Attributes

Integer currentNumber


Constructor & Destructor Documentation

PrimeNumbers::PrimeNumbers ( ) [inline]
 

Definition at line 45 of file PrimeNumbers.h.


Member Function Documentation

const Integer & PrimeNumbers::current ( ) const [inline]
 

Definition at line 46 of file PrimeNumbers.h.

const Integer & PrimeNumbers::nextNumber ( ) [inline]
 

Definition at line 51 of file PrimeNumbers.h.

void PrimeNumbers::setCurrent ( const Integer & num ) [inline]
 

Definition at line 60 of file PrimeNumbers.h.

bool PrimeNumbers::isPrime ( Integer num ) const [inline]
 

Definition at line 65 of file PrimeNumbers.h.

Referenced by nextNumber().

DArray<Integer> PrimeNumbers::getPrimeDecom ( const Integer & num )
 

void PrimeNumbers::printPrimeDecom ( ostream & ostr,
const Integer & num )
 


Member Data Documentation

Integer PrimeNumbers::currentNumber [private]
 

Definition at line 80 of file PrimeNumbers.h.


The documentation for this class was generated from the following file:
Generated at Tue Jun 19 09:50:02 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001