#include <rational_adaptor.hpp>
Public Types | |
typedef number< IntBackend > | integer_type |
typedef boost::rational < integer_type > | rational_type |
typedef IntBackend::signed_types | signed_types |
typedef IntBackend::unsigned_types | unsigned_types |
typedef IntBackend::float_types | float_types |
Public Member Functions | |
rational_adaptor () | |
rational_adaptor (const rational_adaptor &o) | |
rational_adaptor (const IntBackend &o) | |
template<class U > | |
rational_adaptor (const U &u, typename enable_if_c< is_convertible< U, IntBackend >::value >::type *=0) | |
template<class U > | |
rational_adaptor (const U &u, typename enable_if_c< boost::multiprecision::detail::is_explicitly_convertible< U, IntBackend >::value &&!is_convertible< U, IntBackend >::value >::type *=0) | |
template<class U > | |
enable_if_c <(boost::multiprecision::detail::is_explicitly_convertible < U, IntBackend >::value &&!is_arithmetic< U >::value), rational_adaptor & >::type | operator= (const U &u) |
rational_adaptor (rational_adaptor &&o) | |
rational_adaptor (IntBackend &&o) | |
rational_adaptor & | operator= (rational_adaptor &&o) |
rational_adaptor & | operator= (const rational_adaptor &o) |
rational_adaptor & | operator= (const IntBackend &o) |
template<class Int > | |
enable_if< is_integral< Int > , rational_adaptor & >::type | operator= (Int i) |
template<class Float > | |
enable_if< is_floating_point < Float >, rational_adaptor & > ::type | operator= (Float i) |
rational_adaptor & | operator= (const char *s) |
void | swap (rational_adaptor &o) |
std::string | str (std::streamsize digits, std::ios_base::fmtflags f) const |
void | negate () |
int | compare (const rational_adaptor &o) const |
template<class Arithmatic > | |
enable_if_c< is_arithmetic < Arithmatic >::value &&!is_floating_point < Arithmatic >::value, int > ::type | compare (Arithmatic i) const |
template<class Arithmatic > | |
enable_if_c< is_floating_point < Arithmatic >::value, int > ::type | compare (Arithmatic i) const |
rational_type & | data () |
const rational_type & | data () const |
template<class Archive > | |
void | serialize (Archive &ar, const mpl::true_ &) |
template<class Archive > | |
void | serialize (Archive &ar, const mpl::false_ &) |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int) |
typedef IntBackend::float_types boost::multiprecision::backends::rational_adaptor< IntBackend >::float_types |
typedef number<IntBackend> boost::multiprecision::backends::rational_adaptor< IntBackend >::integer_type |
typedef boost::rational<integer_type> boost::multiprecision::backends::rational_adaptor< IntBackend >::rational_type |
typedef IntBackend::signed_types boost::multiprecision::backends::rational_adaptor< IntBackend >::signed_types |
typedef IntBackend::unsigned_types boost::multiprecision::backends::rational_adaptor< IntBackend >::unsigned_types |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by boost::multiprecision::backends::assign_components(), boost::multiprecision::backends::eval_add(), boost::multiprecision::backends::eval_convert_to(), boost::multiprecision::backends::eval_divide(), boost::multiprecision::backends::eval_get_sign(), boost::multiprecision::backends::eval_is_zero(), boost::multiprecision::backends::eval_multiply(), boost::multiprecision::backends::eval_subtract(), boost::multiprecision::backends::rational_adaptor< IntBackend >::operator=(), and boost::multiprecision::backends::rational_adaptor< IntBackend >::str().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References boost::multiprecision::backends::i.
|
inline |
|
inline |
References boost::multiprecision::number< Backend, ExpressionTemplates >::assign(), boost::rational< IntType >::assign(), BOOST_THROW_EXCEPTION, boost::multiprecision::backends::c, boost::multiprecision::backends::rational_adaptor< IntBackend >::data(), boost::multiprecision::backends::p, boost::asio::s, and boost::xpressive::s1.
|
inline |
|
inline |
References boost::rational< IntType >::assign(), and boost::n.
|
inline |
|
inline |
|
inline |
References boost::swap.