- 3.0.1 core module.
PrimeTable Class Referenceabstract

#include <prime_tables.h>

Inheritance diagram for PrimeTable:
OnTheFlyPrimeTable PreCalculatedPrimeTable

Public Member Functions

virtual ~PrimeTable ()
 
virtual bool IsPrime (int n) const =0
 
virtual int GetNextPrime (int p) const =0
 

Constructor & Destructor Documentation

virtual PrimeTable::~PrimeTable ( )
inlinevirtual

References GetNextPrime(), IsPrime(), n, and p.

Member Function Documentation

virtual bool PrimeTable::IsPrime ( int  n) const
pure virtual
virtual int PrimeTable::GetNextPrime ( int  p) const
pure virtual

Implemented in PreCalculatedPrimeTable, and OnTheFlyPrimeTable.

Referenced by ~PrimeTable().


The documentation for this class was generated from the following file: