#include <gmp.hpp>
Public Types | |
typedef mpl::list< long, long long > | signed_types |
typedef mpl::list< unsigned long, unsigned long long > | unsigned_types |
typedef mpl::list< double, long double > | float_types |
Public Member Functions | |
gmp_int () | |
gmp_int (const gmp_int &o) | |
gmp_int (gmp_int &&o) BOOST_NOEXCEPT | |
gmp_int (const mpf_t val) | |
gmp_int (const mpz_t val) | |
gmp_int (const mpq_t val) | |
template<unsigned Digits10> | |
gmp_int (const gmp_float< Digits10 > &o) | |
gmp_int (const gmp_rational &o) | |
gmp_int & | operator= (const gmp_int &o) |
gmp_int & | operator= (gmp_int &&o) BOOST_NOEXCEPT |
gmp_int & | operator= (unsigned long long i) |
gmp_int & | operator= (long long i) |
gmp_int & | operator= (unsigned long i) |
gmp_int & | operator= (long i) |
gmp_int & | operator= (double d) |
gmp_int & | operator= (long double a) |
gmp_int & | operator= (const char *s) |
gmp_int & | operator= (const mpf_t val) |
gmp_int & | operator= (const mpz_t val) |
gmp_int & | operator= (const mpq_t val) |
template<unsigned Digits10> | |
gmp_int & | operator= (const gmp_float< Digits10 > &o) |
gmp_int & | operator= (const gmp_rational &o) |
void | swap (gmp_int &o) |
std::string | str (std::streamsize, std::ios_base::fmtflags f) const |
~gmp_int () BOOST_NOEXCEPT | |
void | negate () BOOST_NOEXCEPT |
int | compare (const gmp_int &o) const BOOST_NOEXCEPT |
int | compare (long i) const BOOST_NOEXCEPT |
int | compare (unsigned long i) const BOOST_NOEXCEPT |
template<class V > | |
int | compare (V v) const |
mpz_t & | data () BOOST_NOEXCEPT |
const mpz_t & | data () const BOOST_NOEXCEPT |
Protected Attributes | |
mpz_t | m_data |
typedef mpl::list<double, long double> boost::multiprecision::backends::gmp_int::float_types |
typedef mpl::list<long, long long> boost::multiprecision::backends::gmp_int::signed_types |
typedef mpl::list<unsigned long, unsigned long long> boost::multiprecision::backends::gmp_int::unsigned_types |
|
inline |
References m_data.
|
inlineexplicit |
References m_data.
|
inline |
References m_data.
|
inlineexplicit |
References m_data.
|
inlineexplicit |
|
inlineexplicit |
References m_data.
|
inline |
References m_data.
|
inline |
References BOOST_ASSERT, and m_data.
Referenced by compare(), boost::multiprecision::backends::eval_eq(), boost::multiprecision::backends::eval_gt(), and boost::multiprecision::backends::eval_lt().
|
inline |
References BOOST_ASSERT, boost::multiprecision::backends::i, and m_data.
|
inline |
References BOOST_ASSERT, boost::multiprecision::backends::i, and m_data.
|
inline |
References compare().
|
inline |
References BOOST_ASSERT, and m_data.
Referenced by boost::multiprecision::backends::assign_components(), boost::multiprecision::denominator(), boost::multiprecision::backends::eval_abs(), boost::multiprecision::backends::eval_add(), boost::multiprecision::backends::eval_bit_flip(), boost::multiprecision::backends::eval_bit_set(), boost::multiprecision::backends::eval_bit_test(), boost::multiprecision::backends::eval_bit_unset(), boost::multiprecision::backends::eval_bitwise_and(), boost::multiprecision::backends::eval_bitwise_or(), boost::multiprecision::backends::eval_bitwise_xor(), boost::multiprecision::backends::eval_complement(), boost::multiprecision::backends::eval_convert_to(), boost::multiprecision::backends::eval_divide(), boost::multiprecision::backends::eval_gcd(), boost::multiprecision::backends::eval_get_sign(), boost::multiprecision::backends::eval_integer_modulus(), boost::multiprecision::backends::eval_integer_sqrt(), boost::multiprecision::backends::eval_is_zero(), boost::multiprecision::backends::eval_lcm(), boost::multiprecision::backends::eval_left_shift(), boost::multiprecision::backends::eval_lsb(), boost::multiprecision::backends::eval_modulus(), boost::multiprecision::backends::eval_msb(), boost::multiprecision::backends::eval_multiply(), boost::multiprecision::backends::eval_multiply_add(), boost::multiprecision::backends::eval_multiply_subtract(), boost::multiprecision::backends::eval_powm(), boost::multiprecision::backends::eval_qr(), boost::multiprecision::backends::eval_right_shift(), boost::multiprecision::backends::eval_subtract(), boost::multiprecision::backends::gmp_float< digits10 >::gmp_float(), boost::multiprecision::backends::gmp_float< 0 >::gmp_float(), boost::multiprecision::backends::mpfr_float_backend< digits10, AllocationType >::mpfr_float_backend(), boost::multiprecision::backends::mpfr_float_backend< 0, allocate_dynamic >::mpfr_float_backend(), boost::multiprecision::numerator(), boost::multiprecision::backends::gmp_float< digits10 >::operator=(), boost::multiprecision::backends::gmp_float< 0 >::operator=(), boost::multiprecision::backends::mpfr_float_backend< digits10, AllocationType >::operator=(), boost::multiprecision::backends::mpfr_float_backend< 0, allocate_dynamic >::operator=(), and boost::multiprecision::backends::operator=().
|
inline |
References BOOST_ASSERT, and m_data.
|
inline |
References BOOST_ASSERT, and m_data.
References m_data.
References m_data.
|
inline |
|
inline |
References m_data.
|
inline |
References m_data.
|
inline |
|
inline |
References BOOST_THROW_EXCEPTION, m_data, and boost::n.
|
inline |
References m_data.
|
inline |
References m_data.
|
inline |
References m_data.
|
inline |
References m_data.
|
inline |
|
protected |
Referenced by compare(), data(), gmp_int(), negate(), operator=(), str(), swap(), and ~gmp_int().