Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::multiprecision::backends::gmp_int Struct Reference

#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_intoperator= (const gmp_int &o)
 
gmp_intoperator= (gmp_int &&o) BOOST_NOEXCEPT
 
gmp_intoperator= (unsigned long long i)
 
gmp_intoperator= (long long i)
 
gmp_intoperator= (unsigned long i)
 
gmp_intoperator= (long i)
 
gmp_intoperator= (double d)
 
gmp_intoperator= (long double a)
 
gmp_intoperator= (const char *s)
 
gmp_intoperator= (const mpf_t val)
 
gmp_intoperator= (const mpz_t val)
 
gmp_intoperator= (const mpq_t val)
 
template<unsigned Digits10>
gmp_intoperator= (const gmp_float< Digits10 > &o)
 
gmp_intoperator= (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
 

Member Typedef Documentation

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

Constructor & Destructor Documentation

boost::multiprecision::backends::gmp_int::gmp_int ( )
inline

References m_data.

boost::multiprecision::backends::gmp_int::gmp_int ( const gmp_int o)
inline

References m_data.

boost::multiprecision::backends::gmp_int::gmp_int ( gmp_int &&  o)
inline

References m_data.

boost::multiprecision::backends::gmp_int::gmp_int ( const mpf_t  val)
inlineexplicit

References m_data.

boost::multiprecision::backends::gmp_int::gmp_int ( const mpz_t  val)
inline

References m_data.

boost::multiprecision::backends::gmp_int::gmp_int ( const mpq_t  val)
inlineexplicit

References m_data.

template<unsigned Digits10>
boost::multiprecision::backends::gmp_int::gmp_int ( const gmp_float< Digits10 > &  o)
inlineexplicit
boost::multiprecision::backends::gmp_int::gmp_int ( const gmp_rational &  o)
inlineexplicit

References m_data.

boost::multiprecision::backends::gmp_int::~gmp_int ( )
inline

References m_data.

Member Function Documentation

int boost::multiprecision::backends::gmp_int::compare ( const gmp_int o) const
inline
int boost::multiprecision::backends::gmp_int::compare ( long  i) const
inline
int boost::multiprecision::backends::gmp_int::compare ( unsigned long  i) const
inline
template<class V >
int boost::multiprecision::backends::gmp_int::compare ( v) const
inline

References compare().

mpz_t& boost::multiprecision::backends::gmp_int::data ( )
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=().

const mpz_t& boost::multiprecision::backends::gmp_int::data ( ) const
inline

References BOOST_ASSERT, and m_data.

void boost::multiprecision::backends::gmp_int::negate ( )
inline

References BOOST_ASSERT, and m_data.

gmp_int& boost::multiprecision::backends::gmp_int::operator= ( const gmp_int o)
inline

References m_data.

gmp_int& boost::multiprecision::backends::gmp_int::operator= ( gmp_int &&  o)
inline

References m_data.

gmp_int& boost::multiprecision::backends::gmp_int::operator= ( unsigned long long  i)
inline
gmp_int& boost::multiprecision::backends::gmp_int::operator= ( long long  i)
inline

References m_data.

gmp_int& boost::multiprecision::backends::gmp_int::operator= ( unsigned long  i)
inline

References m_data.

gmp_int& boost::multiprecision::backends::gmp_int::operator= ( long  i)
inline

References m_data.

gmp_int& boost::multiprecision::backends::gmp_int::operator= ( double  d)
inline

References m_data.

gmp_int& boost::multiprecision::backends::gmp_int::operator= ( const char *  s)
inline
gmp_int& boost::multiprecision::backends::gmp_int::operator= ( const mpf_t  val)
inline

References m_data.

gmp_int& boost::multiprecision::backends::gmp_int::operator= ( const mpz_t  val)
inline

References m_data.

gmp_int& boost::multiprecision::backends::gmp_int::operator= ( const mpq_t  val)
inline

References m_data.

template<unsigned Digits10>
gmp_int& boost::multiprecision::backends::gmp_int::operator= ( const gmp_float< Digits10 > &  o)
inline
gmp_int & boost::multiprecision::backends::gmp_int::operator= ( const gmp_rational &  o)
inline

References m_data.

std::string boost::multiprecision::backends::gmp_int::str ( std::streamsize  ,
std::ios_base::fmtflags  f 
) const
inline
void boost::multiprecision::backends::gmp_int::swap ( gmp_int o)
inline

References m_data.

Member Data Documentation

mpz_t boost::multiprecision::backends::gmp_int::m_data
protected

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