Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
PrimeSieve Class Reference
Collaboration diagram for PrimeSieve:
[legend]

Public Member Functions

 PrimeSieve (const Integer &first, const Integer &last, const Integer &step, signed int delta=0)
 
bool NextCandidate (Integer &c)
 
void DoSieve ()
 

Static Public Member Functions

static void SieveSingle (std::vector< bool > &sieve, word16 p, const Integer &first, const Integer &step, word16 stepInv)
 

Public Attributes

Integer m_first
 
Integer m_last
 
Integer m_step
 
signed int m_delta
 
word m_next
 
std::vector< bool > m_sieve
 

Detailed Description

Definition at line 288 of file nbtheory.cpp.

Constructor & Destructor Documentation

PrimeSieve::PrimeSieve ( const Integer first,
const Integer last,
const Integer step,
signed int  delta = 0 
)

Definition at line 304 of file nbtheory.cpp.

Here is the call graph for this function:

Member Function Documentation

void PrimeSieve::DoSieve ( )

Definition at line 348 of file nbtheory.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool PrimeSieve::NextCandidate ( Integer c)

Definition at line 310 of file nbtheory.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void PrimeSieve::SieveSingle ( std::vector< bool > &  sieve,
word16  p,
const Integer first,
const Integer step,
word16  stepInv 
)
static

Definition at line 334 of file nbtheory.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

signed int PrimeSieve::m_delta

Definition at line 299 of file nbtheory.cpp.

Integer PrimeSieve::m_first

Definition at line 298 of file nbtheory.cpp.

Integer PrimeSieve::m_last

Definition at line 298 of file nbtheory.cpp.

word PrimeSieve::m_next

Definition at line 300 of file nbtheory.cpp.

std::vector<bool> PrimeSieve::m_sieve

Definition at line 301 of file nbtheory.cpp.

Integer PrimeSieve::m_step

Definition at line 298 of file nbtheory.cpp.


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