Qucs-core
0.0.19
|
#include <prime_tables.h>
Public Member Functions | |
PreCalculatedPrimeTable (int max) | |
virtual | ~PreCalculatedPrimeTable () |
virtual bool | IsPrime (int n) const |
virtual int | GetNextPrime (int p) const |
Private Member Functions | |
void | CalculatePrimesUpTo (int max) |
void | operator= (const PreCalculatedPrimeTable &rhs) |
Private Attributes | |
const int | is_prime_size_ |
bool *const | is_prime_ |
Definition at line 80 of file prime_tables.h.
PreCalculatedPrimeTable::PreCalculatedPrimeTable | ( | int | max | ) | [inline, explicit] |
Definition at line 83 of file prime_tables.h.
virtual PreCalculatedPrimeTable::~PreCalculatedPrimeTable | ( | ) | [inline, virtual] |
Definition at line 87 of file prime_tables.h.
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] |
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.