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::rational_adaptor< IntBackend > Struct Template Reference

#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_adaptoroperator= (rational_adaptor &&o)
 
rational_adaptoroperator= (const rational_adaptor &o)
 
rational_adaptoroperator= (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_adaptoroperator= (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_typedata ()
 
const rational_typedata () 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)
 

Member Typedef Documentation

template<class IntBackend>
typedef IntBackend::float_types boost::multiprecision::backends::rational_adaptor< IntBackend >::float_types
template<class IntBackend>
typedef number<IntBackend> boost::multiprecision::backends::rational_adaptor< IntBackend >::integer_type
template<class IntBackend>
typedef IntBackend::signed_types boost::multiprecision::backends::rational_adaptor< IntBackend >::signed_types
template<class IntBackend>
typedef IntBackend::unsigned_types boost::multiprecision::backends::rational_adaptor< IntBackend >::unsigned_types

Constructor & Destructor Documentation

template<class IntBackend>
boost::multiprecision::backends::rational_adaptor< IntBackend >::rational_adaptor ( )
inline
template<class IntBackend>
boost::multiprecision::backends::rational_adaptor< IntBackend >::rational_adaptor ( const rational_adaptor< IntBackend > &  o)
inline
template<class IntBackend>
boost::multiprecision::backends::rational_adaptor< IntBackend >::rational_adaptor ( const IntBackend &  o)
inline
template<class IntBackend>
template<class U >
boost::multiprecision::backends::rational_adaptor< IntBackend >::rational_adaptor ( const U &  u,
typename enable_if_c< is_convertible< U, IntBackend >::value >::type = 0 
)
inline
template<class IntBackend>
template<class U >
boost::multiprecision::backends::rational_adaptor< IntBackend >::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 
)
inlineexplicit
template<class IntBackend>
boost::multiprecision::backends::rational_adaptor< IntBackend >::rational_adaptor ( rational_adaptor< IntBackend > &&  o)
inline
template<class IntBackend>
boost::multiprecision::backends::rational_adaptor< IntBackend >::rational_adaptor ( IntBackend &&  o)
inline

Member Function Documentation

template<class IntBackend>
int boost::multiprecision::backends::rational_adaptor< IntBackend >::compare ( const rational_adaptor< IntBackend > &  o) const
inline
template<class IntBackend>
template<class Arithmatic >
enable_if_c<is_arithmetic<Arithmatic>::value && !is_floating_point<Arithmatic>::value, int>::type boost::multiprecision::backends::rational_adaptor< IntBackend >::compare ( Arithmatic  i) const
inline
template<class IntBackend>
template<class Arithmatic >
enable_if_c<is_floating_point<Arithmatic>::value, int>::type boost::multiprecision::backends::rational_adaptor< IntBackend >::compare ( Arithmatic  i) const
inline
template<class IntBackend>
const rational_type& boost::multiprecision::backends::rational_adaptor< IntBackend >::data ( ) const
inline
template<class IntBackend>
void boost::multiprecision::backends::rational_adaptor< IntBackend >::negate ( )
inline
template<class IntBackend>
template<class U >
enable_if_c<(boost::multiprecision::detail::is_explicitly_convertible<U, IntBackend>::value && !is_arithmetic<U>::value), rational_adaptor&>::type boost::multiprecision::backends::rational_adaptor< IntBackend >::operator= ( const U &  u)
inline
template<class IntBackend>
rational_adaptor& boost::multiprecision::backends::rational_adaptor< IntBackend >::operator= ( rational_adaptor< IntBackend > &&  o)
inline
template<class IntBackend>
rational_adaptor& boost::multiprecision::backends::rational_adaptor< IntBackend >::operator= ( const rational_adaptor< IntBackend > &  o)
inline
template<class IntBackend>
rational_adaptor& boost::multiprecision::backends::rational_adaptor< IntBackend >::operator= ( const IntBackend &  o)
inline
template<class IntBackend>
template<class Int >
enable_if<is_integral<Int>, rational_adaptor&>::type boost::multiprecision::backends::rational_adaptor< IntBackend >::operator= ( Int  i)
inline
template<class IntBackend>
template<class Float >
enable_if<is_floating_point<Float>, rational_adaptor&>::type boost::multiprecision::backends::rational_adaptor< IntBackend >::operator= ( Float  i)
inline
template<class IntBackend>
template<class Archive >
void boost::multiprecision::backends::rational_adaptor< IntBackend >::serialize ( Archive &  ar,
const mpl::true_  
)
inline
template<class IntBackend>
template<class Archive >
void boost::multiprecision::backends::rational_adaptor< IntBackend >::serialize ( Archive &  ar,
const mpl::false_  
)
inline
template<class IntBackend>
template<class Archive >
void boost::multiprecision::backends::rational_adaptor< IntBackend >::serialize ( Archive &  ar,
const unsigned  int 
)
inline
template<class IntBackend>
void boost::multiprecision::backends::rational_adaptor< IntBackend >::swap ( rational_adaptor< IntBackend > &  o)
inline

References boost::swap.


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