#include <FactorFound.H>
Public Member Functions | |
TFoundFactor (const mpz_t f, const unsigned int exp=1, const string &xcomment="") | |
TFoundFactor (const unsigned long int f, const unsigned int exp=1) | |
TFoundFactor (const TFoundFactor &FF) | |
TFoundFactor (std::istream &is) | |
virtual | ~TFoundFactor () |
virtual bool | operator< (const TFoundFactor &nf) const |
void | get_factor (mpz_t f, unsigned int &exponent) const |
virtual void | output (std::ostream &ostr) const |
TFoundFactor & | operator= (const TFoundFactor &rhs) |
virtual void | Save (std::ostream &os) const |
Private Attributes | |
mpz_t | x |
unsigned int | e |
string | comment |
Definition at line 7 of file FactorFound.H.
TFoundFactor::TFoundFactor | ( | const mpz_t | f, | |
const unsigned int | exp = 1 , |
|||
const string & | xcomment = "" | |||
) | [inline, explicit] |
Definition at line 14 of file FactorFound.H.
References exp(), mpz_init_set(), and x.
TFoundFactor::TFoundFactor | ( | const unsigned long int | f, | |
const unsigned int | exp = 1 | |||
) | [inline, explicit] |
Definition at line 16 of file FactorFound.H.
References exp(), mpz_init_set_ui(), and x.
TFoundFactor::TFoundFactor | ( | const TFoundFactor & | FF | ) | [inline] |
Definition at line 18 of file FactorFound.H.
References mpz_init_set(), and x.
TFoundFactor::TFoundFactor | ( | std::istream & | is | ) | [inline, explicit] |
Definition at line 20 of file FactorFound.H.
References comment, e, std::basic_istream< _CharT, _Traits >::eof(), std::basic_ios< _CharT, _Traits >::failbit, std::basic_istream< _CharT, _Traits >::get(), std::basic_istream< _CharT, _Traits >::getline(), MARK, mpz_init(), std::basic_istream< _CharT, _Traits >::setstate(), std::basic_istream< _CharT, _Traits >::unget(), and x.
virtual TFoundFactor::~TFoundFactor | ( | ) | [inline, virtual] |
Definition at line 34 of file FactorFound.H.
References mpz_clear(), and x.
virtual bool TFoundFactor::operator< | ( | const TFoundFactor & | nf | ) | const [inline, virtual] |
void TFoundFactor::get_factor | ( | mpz_t | f, | |
unsigned int & | exponent | |||
) | const [inline] |
Definition at line 36 of file FactorFound.H.
References e, mpz_set(), and x.
void TFoundFactor::output | ( | std::ostream & | ostr | ) | const [virtual] |
Definition at line 7 of file FactorFound.cc.
References comment, e, mpz_probab_prime_p(), my_mpz_wrapper::probab_prime_checks, and x.
Referenced by operator<<().
TFoundFactor& TFoundFactor::operator= | ( | const TFoundFactor & | rhs | ) | [inline] |
virtual void TFoundFactor::Save | ( | std::ostream & | os | ) | const [inline, virtual] |
mpz_t TFoundFactor::x [private] |
Definition at line 10 of file FactorFound.H.
Referenced by get_factor(), operator<(), operator=(), output(), Save(), TFoundFactor(), and ~TFoundFactor().
unsigned int TFoundFactor::e [private] |
Definition at line 11 of file FactorFound.H.
Referenced by get_factor(), operator=(), output(), Save(), and TFoundFactor().
string TFoundFactor::comment [private] |
Definition at line 12 of file FactorFound.H.
Referenced by operator=(), output(), Save(), and TFoundFactor().