|
linbox
|
Masked Prime Iterator. More...
#include <random-prime.h>
Inheritance diagram for MaskedPrimeIterator< Trait >:Public Types | |
| typedef MaskedPrimeIterator< Trait > | Self_t |
| typedef PrimeIterator< Trait > | Father_t |
| typedef integer | Prime_Type |
| typedef UniqueSamplingTrait< IteratorCategories::HeuristicTag > | UniqueSamplingTag |
| whether a prime can be picked more than once | |
| typedef IteratorCategories::HeuristicTag | IteratorTag |
Public Member Functions | |
| void | generatePrime () |
| Self_t & | operator++ () |
| MaskedPrimeIterator (uint32_t mask, uint32_t max, uint64_t bits=23, uint64_t seed=0) | |
| const uint32_t | getMask () const |
| const uint32_t | getShift () const |
| void | generatePrime () |
| void | generatePrime () |
| void | generatePrime () |
| const Prime_Type & | operator* () const |
| get the random prime. | |
| const Prime_Type & | operator* () const |
| get the random prime. | |
| void | setBits (uint64_t bits) |
| Sets the bit size. | |
| void | setBits (uint64_t bits) |
| Sets the bit size. | |
| uint64_t | getBits () const |
| uint64_t | getBits () const |
Static Public Member Functions | |
| static void | setSeed (uint64_t ul) |
| Sets the seed. | |
| static void | setSeed (uint64_t ul) |
| Sets the seed. | |
Protected Attributes | |
| uint64_t | _bits |
| common lenght of all primes | |
| uint64_t | _bits |
| common lenght of all primes | |
| integer | _prime |
| the generated prime. | |
| integer | _prime |
| the generated prime. | |
| Givaro::IntPrimeDom | _IPD |
| empty struct dealing with primality. | |
| Givaro::IntPrimeDom | _IPD |
| empty struct dealing with primality. | |
Masked Prime Iterator.
Generates prime of specified length with fixed lower bits
| typedef MaskedPrimeIterator<Trait> Self_t |
| typedef PrimeIterator<Trait> Father_t |
|
inherited |
|
inherited |
whether a prime can be picked more than once
|
inherited |
|
inline |
|
virtual |
Reimplemented from PrimeIterator< IteratorCategories::HeuristicTag >.
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented from PrimeIterator< IteratorCategories::HeuristicTag >.
|
inlinevirtual |
Reimplemented from PrimeIterator< IteratorCategories::HeuristicTag >.
|
inlinevirtual |
Reimplemented from PrimeIterator< IteratorCategories::HeuristicTag >.
|
inlineinherited |
get the random prime.
returns the actual prime.
|
inlineinherited |
get the random prime.
returns the actual prime.
|
inlinestaticinherited |
Sets the seed.
Set the random seed to be ul.
| ul | the new seed. |
|
inlinestaticinherited |
Sets the seed.
Set the random seed to be ul.
| ul | the new seed. |
|
inlineinherited |
Sets the bit size.
| bits | the new bit size. |
|
inlineinherited |
Sets the bit size.
| bits | the new bit size. |
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |
common lenght of all primes
|
protectedinherited |
common lenght of all primes
|
protectedinherited |
the generated prime.
|
protectedinherited |
the generated prime.
|
protectedinherited |
empty struct dealing with primality.
|
protectedinherited |
empty struct dealing with primality.