#include <prime_tables.h>
Public Member Functions | |
virtual int | GetNextPrime (int p) const |
virtual int | GetNextPrime (int p) const |
virtual bool | IsPrime (int n) const |
virtual bool | IsPrime (int n) const |
PreCalculatedPrimeTable (int max) | |
PreCalculatedPrimeTable (int max) | |
virtual | ~PreCalculatedPrimeTable () |
virtual | ~PreCalculatedPrimeTable () |
Private Member Functions | |
void | CalculatePrimesUpTo (int max) |
void | CalculatePrimesUpTo (int max) |
void | operator= (const PreCalculatedPrimeTable &rhs) |
void | operator= (const PreCalculatedPrimeTable &rhs) |
Private Attributes | |
bool *const | is_prime_ |
const int | is_prime_size_ |
Definition at line 80 of file gmock/gtest/samples/prime_tables.h.
PreCalculatedPrimeTable::PreCalculatedPrimeTable | ( | int | max | ) | [inline, explicit] |
Definition at line 83 of file gmock/gtest/samples/prime_tables.h.
virtual PreCalculatedPrimeTable::~PreCalculatedPrimeTable | ( | ) | [inline, virtual] |
Definition at line 87 of file gmock/gtest/samples/prime_tables.h.
PreCalculatedPrimeTable::PreCalculatedPrimeTable | ( | int | max | ) | [inline, explicit] |
Definition at line 83 of file gtest/samples/prime_tables.h.
virtual PreCalculatedPrimeTable::~PreCalculatedPrimeTable | ( | ) | [inline, virtual] |
Definition at line 87 of file gtest/samples/prime_tables.h.
void PreCalculatedPrimeTable::CalculatePrimesUpTo | ( | int | max | ) | [inline, private] |
Definition at line 102 of file gmock/gtest/samples/prime_tables.h.
void PreCalculatedPrimeTable::CalculatePrimesUpTo | ( | int | max | ) | [inline, private] |
Definition at line 102 of file gtest/samples/prime_tables.h.
virtual int PreCalculatedPrimeTable::GetNextPrime | ( | int | p | ) | const [inline, virtual] |
Implements PrimeTable.
Definition at line 93 of file gmock/gtest/samples/prime_tables.h.
virtual int PreCalculatedPrimeTable::GetNextPrime | ( | int | p | ) | const [inline, virtual] |
Implements PrimeTable.
Definition at line 93 of file gtest/samples/prime_tables.h.
virtual bool PreCalculatedPrimeTable::IsPrime | ( | int | n | ) | const [inline, virtual] |
Implements PrimeTable.
Definition at line 89 of file gtest/samples/prime_tables.h.
virtual bool PreCalculatedPrimeTable::IsPrime | ( | int | n | ) | const [inline, virtual] |
Implements PrimeTable.
Definition at line 89 of file gmock/gtest/samples/prime_tables.h.
void PreCalculatedPrimeTable::operator= | ( | const PreCalculatedPrimeTable & | rhs | ) | [private] |
void PreCalculatedPrimeTable::operator= | ( | const PreCalculatedPrimeTable & | rhs | ) | [private] |
bool *const PreCalculatedPrimeTable::is_prime_ [private] |
Definition at line 117 of file gmock/gtest/samples/prime_tables.h.
const int PreCalculatedPrimeTable::is_prime_size_ [private] |
Definition at line 116 of file gmock/gtest/samples/prime_tables.h.