Analysis Software
Documentation for sPHENIX simulation software
|
#include <JETSCAPE/blob/main/external_packages/googletest/googletest/samples/prime_tables.h>
Public Member Functions | |
PreCalculatedPrimeTable (int max) | |
virtual | ~PreCalculatedPrimeTable () |
virtual bool | IsPrime (int n) const |
virtual int | GetNextPrime (int p) const |
Public Member Functions inherited from PrimeTable | |
virtual | ~PrimeTable () |
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.
View newest version in sPHENIX GitHub at line 80 of file prime_tables.h
|
inlineexplicit |
Definition at line 83 of file prime_tables.h.
View newest version in sPHENIX GitHub at line 83 of file prime_tables.h
References CalculatePrimesUpTo().
|
inlinevirtual |
Definition at line 87 of file prime_tables.h.
View newest version in sPHENIX GitHub at line 87 of file prime_tables.h
References is_prime_.
|
inlineprivate |
Definition at line 102 of file prime_tables.h.
View newest version in sPHENIX GitHub at line 102 of file prime_tables.h
References i, is_prime_, is_prime_size_, and j.
Referenced by PreCalculatedPrimeTable().
|
inlinevirtual |
Implements PrimeTable.
Definition at line 93 of file prime_tables.h.
View newest version in sPHENIX GitHub at line 93 of file prime_tables.h
References is_prime_, is_prime_size_, and n.
|
inlinevirtual |
Implements PrimeTable.
Definition at line 89 of file prime_tables.h.
View newest version in sPHENIX GitHub at line 89 of file prime_tables.h
References is_prime_, is_prime_size_, and n.
|
private |
|
private |
Definition at line 117 of file prime_tables.h.
View newest version in sPHENIX GitHub at line 117 of file prime_tables.h
Referenced by CalculatePrimesUpTo(), GetNextPrime(), IsPrime(), and ~PreCalculatedPrimeTable().
|
private |
Definition at line 116 of file prime_tables.h.
View newest version in sPHENIX GitHub at line 116 of file prime_tables.h
Referenced by CalculatePrimesUpTo(), GetNextPrime(), and IsPrime().