Qucs-core  0.0.19
Public Member Functions | Private Member Functions | Private Attributes
PreCalculatedPrimeTable Class Reference

#include <prime_tables.h>

Inheritance diagram for PreCalculatedPrimeTable:
Inheritance graph
Collaboration diagram for PreCalculatedPrimeTable:
Collaboration graph

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_

Detailed Description

Definition at line 80 of file prime_tables.h.

Constructor & Destructor Documentation

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]

Field Documentation

bool* const PreCalculatedPrimeTable::is_prime_ [private]

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: