Security Scol plugin
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
PrimeSieve Class Reference

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 286 of file nbtheory.cpp.

Constructor & Destructor Documentation

◆ PrimeSieve()

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

Definition at line 302 of file nbtheory.cpp.

Member Function Documentation

◆ DoSieve()

void PrimeSieve::DoSieve ( )

Definition at line 346 of file nbtheory.cpp.

◆ NextCandidate()

bool PrimeSieve::NextCandidate ( Integer c)

Definition at line 308 of file nbtheory.cpp.

◆ SieveSingle()

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

Definition at line 332 of file nbtheory.cpp.

Member Data Documentation

◆ m_delta

signed int PrimeSieve::m_delta

Definition at line 297 of file nbtheory.cpp.

◆ m_first

Integer PrimeSieve::m_first

Definition at line 296 of file nbtheory.cpp.

◆ m_last

Integer PrimeSieve::m_last

Definition at line 296 of file nbtheory.cpp.

◆ m_next

word PrimeSieve::m_next

Definition at line 298 of file nbtheory.cpp.

◆ m_sieve

std::vector<bool> PrimeSieve::m_sieve

Definition at line 299 of file nbtheory.cpp.

◆ m_step

Integer PrimeSieve::m_step

Definition at line 296 of file nbtheory.cpp.


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