Public Member Functions | Private Member Functions | Private Attributes | List of all members
PreCalculatedPrimeTable Class Reference

#include <prime_tables.h>

Inheritance diagram for PreCalculatedPrimeTable:
Inheritance graph
[legend]

Public Member Functions

virtual int GetNextPrime (int p) const
 
virtual bool IsPrime (int n) const
 
 PreCalculatedPrimeTable (int max)
 
virtual ~PreCalculatedPrimeTable ()
 
- Public Member Functions inherited from PrimeTable
virtual ~PrimeTable ()
 

Private Member Functions

void CalculatePrimesUpTo (int max)
 
void operator= (const PreCalculatedPrimeTable &rhs)
 

Private Attributes

bool *const is_prime_
 
const int is_prime_size_
 

Detailed Description

Definition at line 80 of file prime_tables.h.

Constructor & Destructor Documentation

PreCalculatedPrimeTable::PreCalculatedPrimeTable ( int  max)
inlineexplicit

Definition at line 83 of file prime_tables.h.

virtual PreCalculatedPrimeTable::~PreCalculatedPrimeTable ( )
inlinevirtual

Definition at line 87 of file prime_tables.h.

Member Function Documentation

void PreCalculatedPrimeTable::CalculatePrimesUpTo ( int  max)
inlineprivate

Definition at line 102 of file prime_tables.h.

virtual int PreCalculatedPrimeTable::GetNextPrime ( int  p) const
inlinevirtual

Implements PrimeTable.

Definition at line 93 of file prime_tables.h.

virtual bool PreCalculatedPrimeTable::IsPrime ( int  n) const
inlinevirtual

Implements PrimeTable.

Definition at line 89 of file prime_tables.h.

void PreCalculatedPrimeTable::operator= ( const PreCalculatedPrimeTable rhs)
private

Member Data Documentation

bool* const PreCalculatedPrimeTable::is_prime_
private

Definition at line 117 of file prime_tables.h.

const int PreCalculatedPrimeTable::is_prime_size_
private

Definition at line 116 of file prime_tables.h.


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


rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sat Feb 13 2021 03:42:18