Public Member Functions | Private Member Functions | Private Attributes
PreCalculatedPrimeTable Class Reference

#include <prime_tables.h>

Inheritance diagram for PreCalculatedPrimeTable:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual int GetNextPrime (int p) const
virtual bool IsPrime (int n) const
 PreCalculatedPrimeTable (int max)
virtual ~PreCalculatedPrimeTable ()

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) [inline, explicit]

Definition at line 83 of file prime_tables.h.

Definition at line 87 of file prime_tables.h.


Member Function Documentation

void PreCalculatedPrimeTable::CalculatePrimesUpTo ( int  max) [inline, private]

Definition at line 102 of file prime_tables.h.

virtual int PreCalculatedPrimeTable::GetNextPrime ( int  p) const [inline, virtual]

Implements PrimeTable.

Definition at line 93 of file prime_tables.h.

virtual bool PreCalculatedPrimeTable::IsPrime ( int  n) const [inline, virtual]

Implements PrimeTable.

Definition at line 89 of file prime_tables.h.

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

Member Data Documentation

Definition at line 117 of file prime_tables.h.

Definition at line 116 of file prime_tables.h.


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


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:10