Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82501 - in trunk: boost/multiprecision libs/multiprecision/doc libs/multiprecision/doc/html libs/multiprecision/doc/html/boost_multiprecision libs/multiprecision/doc/html/boost_multiprecision/indexes libs/multiprecision/doc/html/boost_multiprecision/map libs/multiprecision/doc/html/boost_multiprecision/ref libs/multiprecision/doc/html/boost_multiprecision/tut libs/multiprecision/doc/html/boost_multiprecision/tut/ints libs/multiprecision/doc/html/boost_multiprecision/tut/misc libs/multiprecision/doc/html/boost_multiprecision/tut/rational libs/multiprecision/example libs/multiprecision/performance libs/multiprecision/test libs/multiprecision/test/concepts libs/multiprecision/test/coverage
From: john_at_[hidden]
Date: 2013-01-15 06:43:33


Author: johnmaddock
Date: 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
New Revision: 82501
URL: http://svn.boost.org/trac/boost/changeset/82501

Log:
Big search and replace name change of adapter -> adaptor.
Added:
   trunk/boost/multiprecision/logged_adaptor.hpp
      - copied, changed from r82499, /trunk/boost/multiprecision/logged_adapter.hpp
   trunk/boost/multiprecision/rational_adaptor.hpp
      - copied, changed from r82375, /trunk/boost/multiprecision/rational_adapter.hpp
   trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/misc/logged_adaptor.html (contents, props changed)
   trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/rational/rational_adaptor.html (contents, props changed)
   trunk/libs/multiprecision/example/logged_adaptor.cpp
      - copied, changed from r82499, /trunk/libs/multiprecision/example/logged_adapter.cpp
Removed:
   trunk/boost/multiprecision/logged_adapter.hpp
   trunk/boost/multiprecision/rational_adapter.hpp
   trunk/libs/multiprecision/example/logged_adapter.cpp
Text files modified:
   trunk/boost/multiprecision/cpp_int.hpp | 6 +-
   trunk/boost/multiprecision/logged_adaptor.hpp | 84 ++++++++++++++++++++--------------------
   trunk/boost/multiprecision/rational_adaptor.hpp | 72 +++++++++++++++++-----------------
   trunk/boost/multiprecision/tommath.hpp | 4
   trunk/libs/multiprecision/doc/html/boost_multiprecision/indexes/s01.html | 8 +-
   trunk/libs/multiprecision/doc/html/boost_multiprecision/indexes/s02.html | 6 +-
   trunk/libs/multiprecision/doc/html/boost_multiprecision/indexes/s03.html | 4
   trunk/libs/multiprecision/doc/html/boost_multiprecision/indexes/s04.html | 16 +++---
   trunk/libs/multiprecision/doc/html/boost_multiprecision/map/hist.html | 5 +
   trunk/libs/multiprecision/doc/html/boost_multiprecision/map/todo.html | 2
   trunk/libs/multiprecision/doc/html/boost_multiprecision/ref/cpp_int_ref.html | 4
   trunk/libs/multiprecision/doc/html/boost_multiprecision/ref/headers.html | 4
   trunk/libs/multiprecision/doc/html/boost_multiprecision/tut.html | 4
   trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/conversions.html | 6 +-
   trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/ints/cpp_int.html | 4
   trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/misc.html | 10 ++--
   trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/misc/logged_adapter.html | 16 +++---
   trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/rational.html | 8 +-
   trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/rational/br.html | 6 +-
   trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/rational/cpp_rational.html | 2
   trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/rational/rational_adapter.html | 10 ++--
   trunk/libs/multiprecision/doc/html/index.html | 6 +-
   trunk/libs/multiprecision/doc/multiprecision.qbk | 39 +++++++++---------
   trunk/libs/multiprecision/example/logged_adaptor.cpp | 8 +-
   trunk/libs/multiprecision/performance/performance_test.cpp | 4
   trunk/libs/multiprecision/test/Jamfile.v2 | 4
   trunk/libs/multiprecision/test/concepts/number_concept_check.cpp | 4
   trunk/libs/multiprecision/test/concepts/sf_concept_check_basic.cpp | 4
   trunk/libs/multiprecision/test/concepts/sf_concept_check_bessel.cpp | 4
   trunk/libs/multiprecision/test/concepts/sf_concept_check_elliptic.cpp | 4
   trunk/libs/multiprecision/test/concepts/sf_concept_check_gamma.cpp | 4
   trunk/libs/multiprecision/test/concepts/sf_concept_check_poly.cpp | 4
   trunk/libs/multiprecision/test/coverage/Makefile | 2
   trunk/libs/multiprecision/test/test_arithmetic_logged_1.cpp | 4
   trunk/libs/multiprecision/test/test_arithmetic_logged_2.cpp | 4
   trunk/libs/multiprecision/test/test_arithmetic_mpz.cpp | 4
   trunk/libs/multiprecision/test/test_arithmetic_tommath.cpp | 2
   trunk/libs/multiprecision/test/test_rational_io.cpp | 4
   38 files changed, 195 insertions(+), 191 deletions(-)

Modified: trunk/boost/multiprecision/cpp_int.hpp
==============================================================================
--- trunk/boost/multiprecision/cpp_int.hpp (original)
+++ trunk/boost/multiprecision/cpp_int.hpp 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -15,7 +15,7 @@
 #include <boost/type_traits/is_integral.hpp>
 #include <boost/type_traits/is_floating_point.hpp>
 #include <boost/multiprecision/cpp_int/cpp_int_config.hpp>
-#include <boost/multiprecision/rational_adapter.hpp>
+#include <boost/multiprecision/rational_adaptor.hpp>
 #include <boost/detail/endian.hpp>
 #include <boost/integer/static_min_max.hpp>
 #include <boost/type_traits/common_type.hpp>
@@ -1768,7 +1768,7 @@
 struct number_category<cpp_int_backend<MinBits, MaxBits, SignType, Checked, Allocator> > : public mpl::int_<number_kind_integer>{};
 
 typedef number<cpp_int_backend<> > cpp_int;
-typedef rational_adapter<cpp_int_backend<> > cpp_rational_backend;
+typedef rational_adaptor<cpp_int_backend<> > cpp_rational_backend;
 typedef number<cpp_rational_backend> cpp_rational;
 
 // Fixed precision unsigned types:
@@ -1785,7 +1785,7 @@
 
 // Over again, but with checking enabled this time:
 typedef number<cpp_int_backend<0, 0, signed_magnitude, checked> > checked_cpp_int;
-typedef rational_adapter<cpp_int_backend<0, 0, signed_magnitude, checked> > checked_cpp_rational_backend;
+typedef rational_adaptor<cpp_int_backend<0, 0, signed_magnitude, checked> > checked_cpp_rational_backend;
 typedef number<cpp_rational_backend> checked_cpp_rational;
 // Fixed precision unsigned types:
 typedef number<cpp_int_backend<128, 128, unsigned_magnitude, checked, void> > checked_uint128_t;

Deleted: trunk/boost/multiprecision/logged_adapter.hpp
==============================================================================
--- trunk/boost/multiprecision/logged_adapter.hpp 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
+++ (empty file)
@@ -1,512 +0,0 @@
-///////////////////////////////////////////////////////////////
-// Copyright 2012 John Maddock. Distributed under the Boost
-// Software License, Version 1.0. (See accompanying file
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_
-
-#ifndef BOOST_MATH_LOGGED_ADAPTER_HPP
-#define BOOST_MATH_LOGGED_ADAPTER_HPP
-
-#include <boost/multiprecision/number.hpp>
-
-namespace boost{
-namespace multiprecision{
-
-template <class Backend>
-inline void log_postfix_event(const Backend&, const char* /*event_description*/)
-{
-}
-template <class Backend, class T>
-inline void log_postfix_event(const Backend&, const T&, const char* /*event_description*/)
-{
-}
-template <class Backend>
-inline void log_prefix_event(const Backend&, const char* /*event_description*/)
-{
-}
-template <class Backend, class T>
-inline void log_prefix_event(const Backend&, const T&, const char* /*event_description*/)
-{
-}
-template <class Backend, class T, class U>
-inline void log_prefix_event(const Backend&, const T&, const U&, const char* /*event_description*/)
-{
-}
-template <class Backend, class T, class U, class V>
-inline void log_prefix_event(const Backend&, const T&, const U&, const V&, const char* /*event_description*/)
-{
-}
-
-namespace backends{
-
-template <class Backend, int cat>
-struct extract_exponent_type
-{
- typedef int type;
-};
-template <class Backend>
-struct extract_exponent_type<Backend, number_kind_floating_point>
-{
- typedef typename Backend::exponent_type type;
-};
-
-template <class Backend>
-struct logged_adapter
-{
- typedef typename Backend::signed_types signed_types;
- typedef typename Backend::unsigned_types unsigned_types;
- typedef typename Backend::float_types float_types;
- typedef typename extract_exponent_type<
- Backend, number_category<Backend>::value>::type exponent_type;
-
-private:
-
- Backend m_value;
-public:
- logged_adapter()
- {
- log_postfix_event(m_value, "Default construct");
- }
- logged_adapter(const logged_adapter& o)
- {
- log_prefix_event(m_value, o.value(), "Copy construct");
- m_value = o.m_value;
- log_postfix_event(m_value, "Copy construct");
- }
- logged_adapter& operator = (const logged_adapter& o)
- {
- log_prefix_event(m_value, o.value(), "Assignment");
- m_value = o.m_value;
- log_postfix_event(m_value, "Copy construct");
- return *this;
- }
- template <class T>
- logged_adapter(const T& i, const typename enable_if_c<is_convertible<T, Backend>::value>::type* = 0)
- : m_value(i)
- {
- log_postfix_event(m_value, "construct from arithmetic type");
- }
- template <class T>
- typename enable_if_c<is_arithmetic<T>::value || is_convertible<T, Backend>::value, logged_adapter&>::type operator = (const T& i)
- {
- log_prefix_event(m_value, i, "Assignment from arithmetic type");
- m_value = i;
- log_postfix_event(m_value, "Assignment from arithmetic type");
- return *this;
- }
- logged_adapter& operator = (const char* s)
- {
- log_prefix_event(m_value, s, "Assignment from string type");
- m_value = s;
- log_postfix_event(m_value, "Assignment from string type");
- return *this;
- }
- void swap(logged_adapter& o)
- {
- log_prefix_event(m_value, o.value(), "swap");
- std::swap(m_value, o.value());
- log_postfix_event(m_value, "swap");
- }
- std::string str(std::streamsize digits, std::ios_base::fmtflags f)const
- {
- log_prefix_event(m_value, "Conversion to string");
- std::string s = m_value.str(digits, f);
- log_postfix_event(m_value, s, "Conversion to string");
- return s;
- }
- void negate()
- {
- log_prefix_event(m_value, "negate");
- m_value.negate();
- log_postfix_event(m_value, "negate");
- }
- int compare(const logged_adapter& o)const
- {
- log_prefix_event(m_value, o.value(), "compare");
- int r = m_value.compare(o.value());
- log_postfix_event(m_value, r, "compare");
- return r;
- }
- template <class T>
- int compare(const T& i)const
- {
- log_prefix_event(m_value, i, "compare");
- int r = m_value.compare(i);
- log_postfix_event(m_value, r, "compare");
- return r;
- }
- Backend& value()
- {
- return m_value;
- }
- const Backend& value()const
- {
- return m_value;
- }
-};
-
-template <class T>
-inline const T& unwrap_logged_type(const T& a) { return a; }
-template <class Backend>
-inline const Backend& unwrap_logged_type(const logged_adapter<Backend>& a) { return a.value(); }
-
-#define NON_MEMBER_OP1(name, str) \
- template <class Backend>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result)\
- {\
- using default_ops::BOOST_JOIN(eval_, name);\
- log_prefix_event(result.value(), str);\
- BOOST_JOIN(eval_, name)(result.value());\
- log_postfix_event(result.value(), str);\
- }
-
-#define NON_MEMBER_OP2(name, str) \
- template <class Backend, class T>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const T& a)\
- {\
- using default_ops::BOOST_JOIN(eval_, name);\
- log_prefix_event(result.value(), unwrap_logged_type(a), str);\
- BOOST_JOIN(eval_, name)(result.value(), unwrap_logged_type(a));\
- log_postfix_event(result.value(), str);\
- }\
- template <class Backend>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const logged_adapter<Backend>& a)\
- {\
- using default_ops::BOOST_JOIN(eval_, name);\
- log_prefix_event(result.value(), unwrap_logged_type(a), str);\
- BOOST_JOIN(eval_, name)(result.value(), unwrap_logged_type(a));\
- log_postfix_event(result.value(), str);\
- }
-
-#define NON_MEMBER_OP3(name, str) \
- template <class Backend, class T, class U>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const T& a, const U& b)\
- {\
- using default_ops::BOOST_JOIN(eval_, name);\
- log_prefix_event(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), str);\
- BOOST_JOIN(eval_, name)(result.value(), unwrap_logged_type(a), unwrap_logged_type(b));\
- log_postfix_event(result.value(), str);\
- }\
- template <class Backend, class T>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const logged_adapter<Backend>& a, const T& b)\
- {\
- using default_ops::BOOST_JOIN(eval_, name);\
- log_prefix_event(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), str);\
- BOOST_JOIN(eval_, name)(result.value(), unwrap_logged_type(a), unwrap_logged_type(b));\
- log_postfix_event(result.value(), str);\
- }\
- template <class Backend, class T>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const T& a, const logged_adapter<Backend>& b)\
- {\
- using default_ops::BOOST_JOIN(eval_, name);\
- log_prefix_event(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), str);\
- BOOST_JOIN(eval_, name)(result.value(), unwrap_logged_type(a), unwrap_logged_type(b));\
- log_postfix_event(result.value(), str);\
- }\
- template <class Backend>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const logged_adapter<Backend>& a, const logged_adapter<Backend>& b)\
- {\
- using default_ops::BOOST_JOIN(eval_, name);\
- log_prefix_event(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), str);\
- BOOST_JOIN(eval_, name)(result.value(), unwrap_logged_type(a), unwrap_logged_type(b));\
- log_postfix_event(result.value(), str);\
- }
-
-#define NON_MEMBER_OP4(name, str) \
- template <class Backend, class T, class U, class V>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const T& a, const U& b, const V& c)\
- {\
- using default_ops::BOOST_JOIN(eval_, name);\
- log_prefix_event(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), unwrap_logged_type(c), str);\
- BOOST_JOIN(eval_, name)(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), unwrap_logged_type(c));\
- log_postfix_event(result.value(), str);\
- }\
- template <class Backend, class T>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const logged_adapter<Backend>& a, const logged_adapter<Backend>& b, const T& c)\
- {\
- using default_ops::BOOST_JOIN(eval_, name);\
- log_prefix_event(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), unwrap_logged_type(c), str);\
- BOOST_JOIN(eval_, name)(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), unwrap_logged_type(c));\
- log_postfix_event(result.value(), str);\
- }\
- template <class Backend, class T>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const logged_adapter<Backend>& a, const T& b, const logged_adapter<Backend>& c)\
- {\
- using default_ops::BOOST_JOIN(eval_, name);\
- log_prefix_event(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), unwrap_logged_type(c), str);\
- BOOST_JOIN(eval_, name)(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), unwrap_logged_type(c));\
- log_postfix_event(result.value(), str);\
- }\
- template <class Backend, class T>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const T& a, const logged_adapter<Backend>& b, const logged_adapter<Backend>& c)\
- {\
- using default_ops::BOOST_JOIN(eval_, name);\
- log_prefix_event(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), unwrap_logged_type(c), str);\
- BOOST_JOIN(eval_, name)(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), unwrap_logged_type(c));\
- log_postfix_event(result.value(), str);\
- }\
- template <class Backend>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const logged_adapter<Backend>& a, const logged_adapter<Backend>& b, const logged_adapter<Backend>& c)\
- {\
- using default_ops::BOOST_JOIN(eval_, name);\
- log_prefix_event(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), unwrap_logged_type(c), str);\
- BOOST_JOIN(eval_, name)(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), unwrap_logged_type(c));\
- log_postfix_event(result.value(), str);\
- }\
- template <class Backend, class T, class U>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const logged_adapter<Backend>& a, const T& b, const U& c)\
- {\
- using default_ops::BOOST_JOIN(eval_, name);\
- log_prefix_event(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), unwrap_logged_type(c), str);\
- BOOST_JOIN(eval_, name)(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), unwrap_logged_type(c));\
- log_postfix_event(result.value(), str);\
- }\
-
-NON_MEMBER_OP2(add, "+=");
-NON_MEMBER_OP2(subtract, "-=");
-NON_MEMBER_OP2(multiply, "*=");
-NON_MEMBER_OP2(divide, "/=");
-
-template <class Backend, class R>
-inline void eval_convert_to(R* result, const logged_adapter<Backend>& val)
-{
- using default_ops::eval_convert_to;
- log_prefix_event(val.value(), "convert_to");
- eval_convert_to(result, val.value());
- log_postfix_event(val.value(), *result, "convert_to");
-}
-
-template <class Backend, class Exp>
-inline void eval_frexp(logged_adapter<Backend>& result, const logged_adapter<Backend>& arg, Exp* exp)
-{
- log_prefix_event(arg.value(), "frexp");
- eval_frexp(result.value(), arg.value(), exp);
- log_postfix_event(result.value(), *exp, "frexp");
-}
-
-template <class Backend, class Exp>
-inline void eval_ldexp(logged_adapter<Backend>& result, const logged_adapter<Backend>& arg, Exp exp)
-{
- log_prefix_event(arg.value(), "ldexp");
- eval_ldexp(result.value(), arg.value(), exp);
- log_postfix_event(result.value(), exp, "ldexp");
-}
-
-NON_MEMBER_OP2(floor, "floor");
-NON_MEMBER_OP2(ceil, "ceil");
-NON_MEMBER_OP2(sqrt, "sqrt");
-
-template <class Backend>
-inline int eval_fpclassify(const logged_adapter<Backend>& arg)
-{
- log_prefix_event(arg.value(), "fpclassify");
- int r = eval_fpclassify(arg.value());
- log_postfix_event(arg.value(), r, "fpclassify");
- return r;
-}
-
-/*********************************************************************
-*
-* Optional arithmetic operations come next:
-*
-*********************************************************************/
-
-NON_MEMBER_OP3(add, "+");
-NON_MEMBER_OP3(subtract, "-");
-NON_MEMBER_OP3(multiply, "*");
-NON_MEMBER_OP3(divide, "/");
-NON_MEMBER_OP3(multiply_add, "fused-multiply-add");
-NON_MEMBER_OP3(multiply_subtract, "fused-multiply-subtract");
-NON_MEMBER_OP4(multiply_add, "fused-multiply-add");
-NON_MEMBER_OP4(multiply_subtract, "fused-multiply-subtract");
-
-NON_MEMBER_OP1(increment, "increment");
-NON_MEMBER_OP1(decrement, "decrement");
-
-/*********************************************************************
-*
-* Optional integer operations come next:
-*
-*********************************************************************/
-
-NON_MEMBER_OP2(modulus, "%=");
-NON_MEMBER_OP3(modulus, "%");
-NON_MEMBER_OP2(bitwise_or, "|=");
-NON_MEMBER_OP3(bitwise_or, "|");
-NON_MEMBER_OP2(bitwise_and, "&=");
-NON_MEMBER_OP3(bitwise_and, "&");
-NON_MEMBER_OP2(bitwise_xor, "^=");
-NON_MEMBER_OP3(bitwise_xor, "^");
-NON_MEMBER_OP4(qr, "quotient-and-remainder");
-NON_MEMBER_OP2(complement, "~");
-
-template <class Backend>
-inline void eval_left_shift(logged_adapter<Backend>& arg, unsigned a)
-{
- using default_ops::eval_left_shift;
- log_prefix_event(arg.value(), a, "<<=");
- eval_left_shift(arg.value(), a);
- log_postfix_event(arg.value(), "<<=");
-}
-template <class Backend>
-inline void eval_left_shift(logged_adapter<Backend>& arg, const logged_adapter<Backend>& a, unsigned b)
-{
- using default_ops::eval_left_shift;
- log_prefix_event(arg.value(), a, b, "<<");
- eval_left_shift(arg.value(), a, b);
- log_postfix_event(arg.value(), "<<");
-}
-template <class Backend>
-inline void eval_right_shift(logged_adapter<Backend>& arg, unsigned a)
-{
- using default_ops::eval_right_shift;
- log_prefix_event(arg.value(), a, ">>=");
- eval_right_shift(arg.value(), a);
- log_postfix_event(arg.value(), ">>=");
-}
-template <class Backend>
-inline void eval_right_shift(logged_adapter<Backend>& arg, const logged_adapter<Backend>& a, unsigned b)
-{
- using default_ops::eval_right_shift;
- log_prefix_event(arg.value(), a, b, ">>");
- eval_right_shift(arg.value(), a, b);
- log_postfix_event(arg.value(), ">>");
-}
-
-template <class Backend, class T>
-inline unsigned eval_integer_modulus(const logged_adapter<Backend>& arg, const T& a)
-{
- using default_ops::eval_integer_modulus;
- log_prefix_event(arg.value(), a, "integer-modulus");
- unsigned r = eval_integer_modulus(arg.value(), a);
- log_postfix_event(arg.value(), r, "integer-modulus");
- return r;
-}
-
-template <class Backend>
-inline unsigned eval_lsb(const logged_adapter<Backend>& arg)
-{
- using default_ops::eval_lsb;
- log_prefix_event(arg.value(), "least-significant-bit");
- unsigned r = eval_lsb(arg.value());
- log_postfix_event(arg.value(), r, "least-significant-bit");
- return r;
-}
-
-template <class Backend>
-inline bool eval_bit_test(const logged_adapter<Backend>& arg, unsigned a)
-{
- using default_ops::eval_bit_test;
- log_prefix_event(arg.value(), a, "bit-test");
- bool r = eval_bit_test(arg.value(), a);
- log_postfix_event(arg.value(), r, "bit-test");
- return r;
-}
-
-template <class Backend>
-inline void eval_bit_set(const logged_adapter<Backend>& arg, unsigned a)
-{
- using default_ops::eval_bit_set;
- log_prefix_event(arg.value(), a, "bit-set");
- eval_bit_set(arg.value(), a);
- log_postfix_event(arg.value(), r, "bit-set");
-}
-template <class Backend>
-inline void eval_bit_unset(const logged_adapter<Backend>& arg, unsigned a)
-{
- using default_ops::eval_bit_unset;
- log_prefix_event(arg.value(), a, "bit-unset");
- eval_bit_unset(arg.value(), a);
- log_postfix_event(arg.value(), r, "bit-unset");
-}
-template <class Backend>
-inline void eval_bit_flip(const logged_adapter<Backend>& arg, unsigned a)
-{
- using default_ops::eval_bit_flip;
- log_prefix_event(arg.value(), a, "bit-flip");
- eval_bit_flip(arg.value(), a);
- log_postfix_event(arg.value(), r, "bit-flip");
-}
-
-NON_MEMBER_OP3(gcd, "gcd");
-NON_MEMBER_OP3(lcm, "lcm");
-NON_MEMBER_OP4(powm, "powm");
-
-/*********************************************************************
-*
-* abs/fabs:
-*
-*********************************************************************/
-
-NON_MEMBER_OP2(abs, "abs");
-NON_MEMBER_OP2(fabs, "fabs");
-
-/*********************************************************************
-*
-* Floating point functions:
-*
-*********************************************************************/
-
-NON_MEMBER_OP2(trunc, "trunc");
-NON_MEMBER_OP2(round, "round");
-NON_MEMBER_OP2(exp, "exp");
-NON_MEMBER_OP2(log, "log");
-NON_MEMBER_OP2(log10, "log10");
-NON_MEMBER_OP2(sin, "sin");
-NON_MEMBER_OP2(cos, "cos");
-NON_MEMBER_OP2(tan, "tan");
-NON_MEMBER_OP2(asin, "asin");
-NON_MEMBER_OP2(acos, "acos");
-NON_MEMBER_OP2(atan, "atan");
-NON_MEMBER_OP2(sinh, "sinh");
-NON_MEMBER_OP2(cosh, "cosh");
-NON_MEMBER_OP2(tanh, "tanh");
-NON_MEMBER_OP3(fmod, "fmod");
-NON_MEMBER_OP3(pow, "pow");
-NON_MEMBER_OP3(atan2, "atan2");
-
-} // namespace backends
-
-using backends::logged_adapter;
-
-template<class Backend>
-struct number_category<backends::logged_adapter<Backend> > : public number_category<Backend> {};
-
-}} // namespaces
-
-namespace std{
-
-template <class Backend, boost::multiprecision::expression_template_option ExpressionTemplates>
-class numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::logged_adapter<Backend>, ExpressionTemplates> >
- : public std::numeric_limits<boost::multiprecision::number<Backend, ExpressionTemplates> >
-{
- typedef std::numeric_limits<boost::multiprecision::number<Backend, ExpressionTemplates> > base_type;
- typedef boost::multiprecision::number<boost::multiprecision::backends::logged_adapter<Backend>, ExpressionTemplates> number_type;
-public:
- static number_type (min)() BOOST_NOEXCEPT { return (base_type::min)(); }
- static number_type (max)() BOOST_NOEXCEPT { return (base_type::max)(); }
- static number_type lowest() BOOST_NOEXCEPT { return -(max)(); }
- static number_type epsilon() BOOST_NOEXCEPT { return base_type::epsilon(); }
- static number_type round_error() BOOST_NOEXCEPT { return epsilon() / 2; }
- static number_type infinity() BOOST_NOEXCEPT { return base_type::infinity(); }
- static number_type quiet_NaN() BOOST_NOEXCEPT { return base_type::quiet_NaN(); }
- static number_type signaling_NaN() BOOST_NOEXCEPT { return base_type::signaling_NaN(); }
- static number_type denorm_min() BOOST_NOEXCEPT { return base_type::denorm_min(); }
-};
-
-} // namespace std
-
-namespace boost{ namespace math{
-
-namespace policies{
-
-template <class Backend, boost::multiprecision::expression_template_option ExpressionTemplates, class Policy>
-struct precision< boost::multiprecision::number<boost::multiprecision::logged_adapter<Backend>, ExpressionTemplates>, Policy>
- : public precision<boost::multiprecision::number<Backend, ExpressionTemplates>, Policy>
-{};
-
-} // namespace policies
-
-}} // namespaces boost::math
-
-
-#endif

Copied: trunk/boost/multiprecision/logged_adaptor.hpp (from r82499, /trunk/boost/multiprecision/logged_adapter.hpp)
==============================================================================
--- /trunk/boost/multiprecision/logged_adapter.hpp (original)
+++ trunk/boost/multiprecision/logged_adaptor.hpp 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -50,7 +50,7 @@
 };
 
 template <class Backend>
-struct logged_adapter
+struct logged_adaptor
 {
    typedef typename Backend::signed_types signed_types;
    typedef typename Backend::unsigned_types unsigned_types;
@@ -62,17 +62,17 @@
 
    Backend m_value;
 public:
- logged_adapter()
+ logged_adaptor()
    {
       log_postfix_event(m_value, "Default construct");
    }
- logged_adapter(const logged_adapter& o)
+ logged_adaptor(const logged_adaptor& o)
    {
       log_prefix_event(m_value, o.value(), "Copy construct");
       m_value = o.m_value;
       log_postfix_event(m_value, "Copy construct");
    }
- logged_adapter& operator = (const logged_adapter& o)
+ logged_adaptor& operator = (const logged_adaptor& o)
    {
       log_prefix_event(m_value, o.value(), "Assignment");
       m_value = o.m_value;
@@ -80,27 +80,27 @@
       return *this;
    }
    template <class T>
- logged_adapter(const T& i, const typename enable_if_c<is_convertible<T, Backend>::value>::type* = 0)
+ logged_adaptor(const T& i, const typename enable_if_c<is_convertible<T, Backend>::value>::type* = 0)
       : m_value(i)
    {
       log_postfix_event(m_value, "construct from arithmetic type");
    }
    template <class T>
- typename enable_if_c<is_arithmetic<T>::value || is_convertible<T, Backend>::value, logged_adapter&>::type operator = (const T& i)
+ typename enable_if_c<is_arithmetic<T>::value || is_convertible<T, Backend>::value, logged_adaptor&>::type operator = (const T& i)
    {
       log_prefix_event(m_value, i, "Assignment from arithmetic type");
       m_value = i;
       log_postfix_event(m_value, "Assignment from arithmetic type");
       return *this;
    }
- logged_adapter& operator = (const char* s)
+ logged_adaptor& operator = (const char* s)
    {
       log_prefix_event(m_value, s, "Assignment from string type");
       m_value = s;
       log_postfix_event(m_value, "Assignment from string type");
       return *this;
    }
- void swap(logged_adapter& o)
+ void swap(logged_adaptor& o)
    {
       log_prefix_event(m_value, o.value(), "swap");
       std::swap(m_value, o.value());
@@ -119,7 +119,7 @@
       m_value.negate();
       log_postfix_event(m_value, "negate");
    }
- int compare(const logged_adapter& o)const
+ int compare(const logged_adaptor& o)const
    {
       log_prefix_event(m_value, o.value(), "compare");
       int r = m_value.compare(o.value());
@@ -147,11 +147,11 @@
 template <class T>
 inline const T& unwrap_logged_type(const T& a) { return a; }
 template <class Backend>
-inline const Backend& unwrap_logged_type(const logged_adapter<Backend>& a) { return a.value(); }
+inline const Backend& unwrap_logged_type(const logged_adaptor<Backend>& a) { return a.value(); }
 
 #define NON_MEMBER_OP1(name, str) \
    template <class Backend>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result)\
+ inline void BOOST_JOIN(eval_, name)(logged_adaptor<Backend>& result)\
    {\
       using default_ops::BOOST_JOIN(eval_, name);\
       log_prefix_event(result.value(), str);\
@@ -161,7 +161,7 @@
 
 #define NON_MEMBER_OP2(name, str) \
    template <class Backend, class T>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const T& a)\
+ inline void BOOST_JOIN(eval_, name)(logged_adaptor<Backend>& result, const T& a)\
    {\
       using default_ops::BOOST_JOIN(eval_, name);\
       log_prefix_event(result.value(), unwrap_logged_type(a), str);\
@@ -169,7 +169,7 @@
       log_postfix_event(result.value(), str);\
    }\
    template <class Backend>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const logged_adapter<Backend>& a)\
+ inline void BOOST_JOIN(eval_, name)(logged_adaptor<Backend>& result, const logged_adaptor<Backend>& a)\
    {\
       using default_ops::BOOST_JOIN(eval_, name);\
       log_prefix_event(result.value(), unwrap_logged_type(a), str);\
@@ -179,7 +179,7 @@
 
 #define NON_MEMBER_OP3(name, str) \
    template <class Backend, class T, class U>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const T& a, const U& b)\
+ inline void BOOST_JOIN(eval_, name)(logged_adaptor<Backend>& result, const T& a, const U& b)\
    {\
       using default_ops::BOOST_JOIN(eval_, name);\
       log_prefix_event(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), str);\
@@ -187,7 +187,7 @@
       log_postfix_event(result.value(), str);\
    }\
    template <class Backend, class T>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const logged_adapter<Backend>& a, const T& b)\
+ inline void BOOST_JOIN(eval_, name)(logged_adaptor<Backend>& result, const logged_adaptor<Backend>& a, const T& b)\
    {\
       using default_ops::BOOST_JOIN(eval_, name);\
       log_prefix_event(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), str);\
@@ -195,7 +195,7 @@
       log_postfix_event(result.value(), str);\
    }\
    template <class Backend, class T>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const T& a, const logged_adapter<Backend>& b)\
+ inline void BOOST_JOIN(eval_, name)(logged_adaptor<Backend>& result, const T& a, const logged_adaptor<Backend>& b)\
    {\
       using default_ops::BOOST_JOIN(eval_, name);\
       log_prefix_event(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), str);\
@@ -203,7 +203,7 @@
       log_postfix_event(result.value(), str);\
    }\
    template <class Backend>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const logged_adapter<Backend>& a, const logged_adapter<Backend>& b)\
+ inline void BOOST_JOIN(eval_, name)(logged_adaptor<Backend>& result, const logged_adaptor<Backend>& a, const logged_adaptor<Backend>& b)\
    {\
       using default_ops::BOOST_JOIN(eval_, name);\
       log_prefix_event(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), str);\
@@ -213,7 +213,7 @@
 
 #define NON_MEMBER_OP4(name, str) \
    template <class Backend, class T, class U, class V>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const T& a, const U& b, const V& c)\
+ inline void BOOST_JOIN(eval_, name)(logged_adaptor<Backend>& result, const T& a, const U& b, const V& c)\
    {\
       using default_ops::BOOST_JOIN(eval_, name);\
       log_prefix_event(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), unwrap_logged_type(c), str);\
@@ -221,7 +221,7 @@
       log_postfix_event(result.value(), str);\
    }\
    template <class Backend, class T>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const logged_adapter<Backend>& a, const logged_adapter<Backend>& b, const T& c)\
+ inline void BOOST_JOIN(eval_, name)(logged_adaptor<Backend>& result, const logged_adaptor<Backend>& a, const logged_adaptor<Backend>& b, const T& c)\
    {\
       using default_ops::BOOST_JOIN(eval_, name);\
       log_prefix_event(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), unwrap_logged_type(c), str);\
@@ -229,7 +229,7 @@
       log_postfix_event(result.value(), str);\
    }\
    template <class Backend, class T>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const logged_adapter<Backend>& a, const T& b, const logged_adapter<Backend>& c)\
+ inline void BOOST_JOIN(eval_, name)(logged_adaptor<Backend>& result, const logged_adaptor<Backend>& a, const T& b, const logged_adaptor<Backend>& c)\
    {\
       using default_ops::BOOST_JOIN(eval_, name);\
       log_prefix_event(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), unwrap_logged_type(c), str);\
@@ -237,7 +237,7 @@
       log_postfix_event(result.value(), str);\
    }\
    template <class Backend, class T>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const T& a, const logged_adapter<Backend>& b, const logged_adapter<Backend>& c)\
+ inline void BOOST_JOIN(eval_, name)(logged_adaptor<Backend>& result, const T& a, const logged_adaptor<Backend>& b, const logged_adaptor<Backend>& c)\
    {\
       using default_ops::BOOST_JOIN(eval_, name);\
       log_prefix_event(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), unwrap_logged_type(c), str);\
@@ -245,7 +245,7 @@
       log_postfix_event(result.value(), str);\
    }\
    template <class Backend>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const logged_adapter<Backend>& a, const logged_adapter<Backend>& b, const logged_adapter<Backend>& c)\
+ inline void BOOST_JOIN(eval_, name)(logged_adaptor<Backend>& result, const logged_adaptor<Backend>& a, const logged_adaptor<Backend>& b, const logged_adaptor<Backend>& c)\
    {\
       using default_ops::BOOST_JOIN(eval_, name);\
       log_prefix_event(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), unwrap_logged_type(c), str);\
@@ -253,7 +253,7 @@
       log_postfix_event(result.value(), str);\
    }\
    template <class Backend, class T, class U>\
- inline void BOOST_JOIN(eval_, name)(logged_adapter<Backend>& result, const logged_adapter<Backend>& a, const T& b, const U& c)\
+ inline void BOOST_JOIN(eval_, name)(logged_adaptor<Backend>& result, const logged_adaptor<Backend>& a, const T& b, const U& c)\
    {\
       using default_ops::BOOST_JOIN(eval_, name);\
       log_prefix_event(result.value(), unwrap_logged_type(a), unwrap_logged_type(b), unwrap_logged_type(c), str);\
@@ -267,7 +267,7 @@
 NON_MEMBER_OP2(divide, "/=");
 
 template <class Backend, class R>
-inline void eval_convert_to(R* result, const logged_adapter<Backend>& val)
+inline void eval_convert_to(R* result, const logged_adaptor<Backend>& val)
 {
    using default_ops::eval_convert_to;
    log_prefix_event(val.value(), "convert_to");
@@ -276,7 +276,7 @@
 }
 
 template <class Backend, class Exp>
-inline void eval_frexp(logged_adapter<Backend>& result, const logged_adapter<Backend>& arg, Exp* exp)
+inline void eval_frexp(logged_adaptor<Backend>& result, const logged_adaptor<Backend>& arg, Exp* exp)
 {
    log_prefix_event(arg.value(), "frexp");
    eval_frexp(result.value(), arg.value(), exp);
@@ -284,7 +284,7 @@
 }
 
 template <class Backend, class Exp>
-inline void eval_ldexp(logged_adapter<Backend>& result, const logged_adapter<Backend>& arg, Exp exp)
+inline void eval_ldexp(logged_adaptor<Backend>& result, const logged_adaptor<Backend>& arg, Exp exp)
 {
    log_prefix_event(arg.value(), "ldexp");
    eval_ldexp(result.value(), arg.value(), exp);
@@ -296,7 +296,7 @@
 NON_MEMBER_OP2(sqrt, "sqrt");
 
 template <class Backend>
-inline int eval_fpclassify(const logged_adapter<Backend>& arg)
+inline int eval_fpclassify(const logged_adaptor<Backend>& arg)
 {
    log_prefix_event(arg.value(), "fpclassify");
    int r = eval_fpclassify(arg.value());
@@ -340,7 +340,7 @@
 NON_MEMBER_OP2(complement, "~");
 
 template <class Backend>
-inline void eval_left_shift(logged_adapter<Backend>& arg, unsigned a)
+inline void eval_left_shift(logged_adaptor<Backend>& arg, unsigned a)
 {
    using default_ops::eval_left_shift;
    log_prefix_event(arg.value(), a, "<<=");
@@ -348,7 +348,7 @@
    log_postfix_event(arg.value(), "<<=");
 }
 template <class Backend>
-inline void eval_left_shift(logged_adapter<Backend>& arg, const logged_adapter<Backend>& a, unsigned b)
+inline void eval_left_shift(logged_adaptor<Backend>& arg, const logged_adaptor<Backend>& a, unsigned b)
 {
    using default_ops::eval_left_shift;
    log_prefix_event(arg.value(), a, b, "<<");
@@ -356,7 +356,7 @@
    log_postfix_event(arg.value(), "<<");
 }
 template <class Backend>
-inline void eval_right_shift(logged_adapter<Backend>& arg, unsigned a)
+inline void eval_right_shift(logged_adaptor<Backend>& arg, unsigned a)
 {
    using default_ops::eval_right_shift;
    log_prefix_event(arg.value(), a, ">>=");
@@ -364,7 +364,7 @@
    log_postfix_event(arg.value(), ">>=");
 }
 template <class Backend>
-inline void eval_right_shift(logged_adapter<Backend>& arg, const logged_adapter<Backend>& a, unsigned b)
+inline void eval_right_shift(logged_adaptor<Backend>& arg, const logged_adaptor<Backend>& a, unsigned b)
 {
    using default_ops::eval_right_shift;
    log_prefix_event(arg.value(), a, b, ">>");
@@ -373,7 +373,7 @@
 }
 
 template <class Backend, class T>
-inline unsigned eval_integer_modulus(const logged_adapter<Backend>& arg, const T& a)
+inline unsigned eval_integer_modulus(const logged_adaptor<Backend>& arg, const T& a)
 {
    using default_ops::eval_integer_modulus;
    log_prefix_event(arg.value(), a, "integer-modulus");
@@ -383,7 +383,7 @@
 }
 
 template <class Backend>
-inline unsigned eval_lsb(const logged_adapter<Backend>& arg)
+inline unsigned eval_lsb(const logged_adaptor<Backend>& arg)
 {
    using default_ops::eval_lsb;
    log_prefix_event(arg.value(), "least-significant-bit");
@@ -393,7 +393,7 @@
 }
 
 template <class Backend>
-inline bool eval_bit_test(const logged_adapter<Backend>& arg, unsigned a)
+inline bool eval_bit_test(const logged_adaptor<Backend>& arg, unsigned a)
 {
    using default_ops::eval_bit_test;
    log_prefix_event(arg.value(), a, "bit-test");
@@ -403,7 +403,7 @@
 }
 
 template <class Backend>
-inline void eval_bit_set(const logged_adapter<Backend>& arg, unsigned a)
+inline void eval_bit_set(const logged_adaptor<Backend>& arg, unsigned a)
 {
    using default_ops::eval_bit_set;
    log_prefix_event(arg.value(), a, "bit-set");
@@ -411,7 +411,7 @@
    log_postfix_event(arg.value(), r, "bit-set");
 }
 template <class Backend>
-inline void eval_bit_unset(const logged_adapter<Backend>& arg, unsigned a)
+inline void eval_bit_unset(const logged_adaptor<Backend>& arg, unsigned a)
 {
    using default_ops::eval_bit_unset;
    log_prefix_event(arg.value(), a, "bit-unset");
@@ -419,7 +419,7 @@
    log_postfix_event(arg.value(), r, "bit-unset");
 }
 template <class Backend>
-inline void eval_bit_flip(const logged_adapter<Backend>& arg, unsigned a)
+inline void eval_bit_flip(const logged_adaptor<Backend>& arg, unsigned a)
 {
    using default_ops::eval_bit_flip;
    log_prefix_event(arg.value(), a, "bit-flip");
@@ -466,21 +466,21 @@
 
 } // namespace backends
 
-using backends::logged_adapter;
+using backends::logged_adaptor;
 
 template<class Backend>
-struct number_category<backends::logged_adapter<Backend> > : public number_category<Backend> {};
+struct number_category<backends::logged_adaptor<Backend> > : public number_category<Backend> {};
 
 }} // namespaces
 
 namespace std{
 
 template <class Backend, boost::multiprecision::expression_template_option ExpressionTemplates>
-class numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::logged_adapter<Backend>, ExpressionTemplates> >
+class numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::logged_adaptor<Backend>, ExpressionTemplates> >
    : public std::numeric_limits<boost::multiprecision::number<Backend, ExpressionTemplates> >
 {
    typedef std::numeric_limits<boost::multiprecision::number<Backend, ExpressionTemplates> > base_type;
- typedef boost::multiprecision::number<boost::multiprecision::backends::logged_adapter<Backend>, ExpressionTemplates> number_type;
+ typedef boost::multiprecision::number<boost::multiprecision::backends::logged_adaptor<Backend>, ExpressionTemplates> number_type;
 public:
    static number_type (min)() BOOST_NOEXCEPT { return (base_type::min)(); }
    static number_type (max)() BOOST_NOEXCEPT { return (base_type::max)(); }
@@ -500,7 +500,7 @@
 namespace policies{
 
 template <class Backend, boost::multiprecision::expression_template_option ExpressionTemplates, class Policy>
-struct precision< boost::multiprecision::number<boost::multiprecision::logged_adapter<Backend>, ExpressionTemplates>, Policy>
+struct precision< boost::multiprecision::number<boost::multiprecision::logged_adaptor<Backend>, ExpressionTemplates>, Policy>
    : public precision<boost::multiprecision::number<Backend, ExpressionTemplates>, Policy>
 {};
 

Deleted: trunk/boost/multiprecision/rational_adapter.hpp
==============================================================================
--- trunk/boost/multiprecision/rational_adapter.hpp 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
+++ (empty file)
@@ -1,302 +0,0 @@
-///////////////////////////////////////////////////////////////
-// Copyright 2011 John Maddock. Distributed under the Boost
-// Software License, Version 1.0. (See accompanying file
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_
-
-#ifndef BOOST_MATH_RATIONAL_ADAPTER_HPP
-#define BOOST_MATH_RATIONAL_ADAPTER_HPP
-
-#include <iostream>
-#include <iomanip>
-#include <sstream>
-#include <boost/cstdint.hpp>
-#include <boost/multiprecision/number.hpp>
-#ifdef BOOST_MSVC
-# pragma warning(push)
-# pragma warning(disable:4512 4127)
-#endif
-#include <boost/rational.hpp>
-#ifdef BOOST_MSVC
-# pragma warning(pop)
-#endif
-
-namespace boost{
-namespace multiprecision{
-namespace backends{
-
-template <class IntBackend>
-struct rational_adapter
-{
- typedef number<IntBackend> integer_type;
- typedef boost::rational<integer_type> rational_type;
-
- typedef typename IntBackend::signed_types signed_types;
- typedef typename IntBackend::unsigned_types unsigned_types;
- typedef typename IntBackend::float_types float_types;
-
- rational_adapter(){}
- rational_adapter(const rational_adapter& o)
- {
- m_value = o.m_value;
- }
- rational_adapter(const IntBackend& o) : m_value(o) {}
-
- template <class U>
- rational_adapter(const U& u, typename enable_if_c<is_convertible<U, IntBackend>::value>::type* = 0)
- : m_value(IntBackend(u)){}
- template <class U>
- explicit rational_adapter(const U& u,
- typename enable_if_c<
- boost::multiprecision::detail::is_explicitly_convertible<U, IntBackend>::value && !is_convertible<U, IntBackend>::value
- >::type* = 0)
- : m_value(IntBackend(u)){}
- template <class U>
- typename enable_if_c<(boost::multiprecision::detail::is_explicitly_convertible<U, IntBackend>::value && !is_arithmetic<U>::value), rational_adapter&>::type operator = (const U& u)
- {
- m_value = IntBackend(u);
- }
-
-#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
- rational_adapter(rational_adapter&& o) : m_value(o.m_value) {}
- rational_adapter(IntBackend&& o) : m_value(o) {}
- rational_adapter& operator = (rational_adapter&& o)
- {
- m_value = static_cast<rational_type&&>(o.m_value);
- return *this;
- }
-#endif
- rational_adapter& operator = (const rational_adapter& o)
- {
- m_value = o.m_value;
- return *this;
- }
- rational_adapter& operator = (const IntBackend& o)
- {
- m_value = o;
- return *this;
- }
- template <class Int>
- typename enable_if<is_integral<Int>, rational_adapter&>::type operator = (Int i)
- {
- m_value = i;
- return *this;
- }
- template <class Float>
- typename enable_if<is_floating_point<Float>, rational_adapter&>::type operator = (Float i)
- {
- int e;
- Float f = std::frexp(i, &e);
- f = std::ldexp(f, std::numeric_limits<Float>::digits);
- e -= std::numeric_limits<Float>::digits;
- integer_type num(f);
- integer_type denom(1u);
- if(e > 0)
- {
- num <<= e;
- }
- else if(e < 0)
- {
- denom <<= -e;
- }
- m_value.assign(num, denom);
- return *this;
- }
- rational_adapter& operator = (const char* s)
- {
- std::string s1;
- multiprecision::number<IntBackend> v1, v2;
- char c;
- bool have_hex = false;
- const char* p = s; // saved for later
-
- while((0 != (c = *s)) && (c == 'x' || c == 'X' || c == '-' || c == '+' || (c >= '0' && c <= '9') || (have_hex && (c >= 'a' && c <= 'f')) || (have_hex && (c >= 'A' && c <= 'F'))))
- {
- if(c == 'x' || c == 'X')
- have_hex = true;
- s1.append(1, c);
- ++s;
- }
- v1.assign(s1);
- s1.erase();
- if(c == '/')
- {
- ++s;
- while((0 != (c = *s)) && (c == 'x' || c == 'X' || c == '-' || c == '+' || (c >= '0' && c <= '9') || (have_hex && (c >= 'a' && c <= 'f')) || (have_hex && (c >= 'A' && c <= 'F'))))
- {
- if(c == 'x' || c == 'X')
- have_hex = true;
- s1.append(1, c);
- ++s;
- }
- v2.assign(s1);
- }
- else
- v2 = 1;
- if(*s)
- {
- BOOST_THROW_EXCEPTION(std::runtime_error(std::string("Could parse the string \"") + p + std::string("\" as a valid rational number.")));
- }
- data().assign(v1, v2);
- return *this;
- }
- void swap(rational_adapter& o)
- {
- std::swap(m_value, o.m_value);
- }
- std::string str(std::streamsize digits, std::ios_base::fmtflags f)const
- {
- //
- // We format the string ourselves so we can match what GMP's mpq type does:
- //
- std::string result = data().numerator().str(digits, f);
- if(data().denominator() != 1)
- {
- result.append(1, '/');
- result.append(data().denominator().str(digits, f));
- }
- return result;
- }
- void negate()
- {
- m_value = -m_value;
- }
- int compare(const rational_adapter& o)const
- {
- return m_value > o.m_value ? 1 : (m_value < o.m_value ? -1 : 0);
- }
- template <class Arithmatic>
- typename enable_if<is_arithmetic<Arithmatic>, int>::type compare(Arithmatic i)const
- {
- return m_value > i ? 1 : (m_value < i ? -1 : 0);
- }
- rational_type& data() { return m_value; }
- const rational_type& data()const { return m_value; }
-private:
- rational_type m_value;
-};
-
-template <class IntBackend>
-inline void eval_add(rational_adapter<IntBackend>& result, const rational_adapter<IntBackend>& o)
-{
- result.data() += o.data();
-}
-template <class IntBackend>
-inline void eval_subtract(rational_adapter<IntBackend>& result, const rational_adapter<IntBackend>& o)
-{
- result.data() -= o.data();
-}
-template <class IntBackend>
-inline void eval_multiply(rational_adapter<IntBackend>& result, const rational_adapter<IntBackend>& o)
-{
- result.data() *= o.data();
-}
-template <class IntBackend>
-inline void eval_divide(rational_adapter<IntBackend>& result, const rational_adapter<IntBackend>& o)
-{
- using default_ops::eval_is_zero;
- if(eval_is_zero(o))
- {
- BOOST_THROW_EXCEPTION(std::overflow_error("Divide by zero."));
- }
- result.data() /= o.data();
-}
-
-template <class R, class IntBackend>
-inline void eval_convert_to(R* result, const rational_adapter<IntBackend>& backend)
-{
- *result = backend.data().numerator().template convert_to<R>();
- *result /= backend.data().denominator().template convert_to<R>();
-}
-
-template <class IntBackend>
-inline bool eval_is_zero(const rational_adapter<IntBackend>& val)
-{
- return eval_is_zero(val.data().numerator().backend());
-}
-template <class IntBackend>
-inline int eval_get_sign(const rational_adapter<IntBackend>& val)
-{
- return eval_get_sign(val.data().numerator().backend());
-}
-
-template<class IntBackend, class V>
-inline void assign_components(rational_adapter<IntBackend>& result, const V& v1, const V& v2)
-{
- result.data().assign(v1, v2);
-}
-
-} // namespace backends
-
-template<class IntBackend>
-struct expression_template_default<backends::rational_adapter<IntBackend> > : public expression_template_default<IntBackend> {};
-
-template<class IntBackend>
-struct number_category<backends::rational_adapter<IntBackend> > : public mpl::int_<number_kind_rational>{};
-
-using boost::multiprecision::backends::rational_adapter;
-
-template <class T>
-struct component_type<rational_adapter<T> >
-{
- typedef number<T> type;
-};
-
-template <class IntBackend, expression_template_option ET>
-inline number<IntBackend, ET> numerator(const number<rational_adapter<IntBackend>, ET>& val)
-{
- return val.backend().data().numerator();
-}
-template <class IntBackend, expression_template_option ET>
-inline number<IntBackend, ET> denominator(const number<rational_adapter<IntBackend>, ET>& val)
-{
- return val.backend().data().denominator();
-}
-
-#ifdef BOOST_NO_SFINAE_EXPR
-
-namespace detail{
-
-template<class U, class IntBackend>
-struct is_explicitly_convertible<U, rational_adapter<IntBackend> > : public is_explicitly_convertible<U, IntBackend> {};
-
-}
-
-#endif
-
-}} // namespaces
-
-
-namespace std{
-
-template <class IntBackend, boost::multiprecision::expression_template_option ExpressionTemplates>
-class numeric_limits<boost::multiprecision::number<boost::multiprecision::rational_adapter<IntBackend>, ExpressionTemplates> > : public std::numeric_limits<boost::multiprecision::number<IntBackend, ExpressionTemplates> >
-{
- typedef std::numeric_limits<boost::multiprecision::number<IntBackend> > base_type;
- typedef boost::multiprecision::number<boost::multiprecision::rational_adapter<IntBackend> > number_type;
-public:
- BOOST_STATIC_CONSTEXPR bool is_integer = false;
- BOOST_STATIC_CONSTEXPR bool is_exact = true;
- BOOST_STATIC_CONSTEXPR number_type (min)() { return (base_type::min)(); }
- BOOST_STATIC_CONSTEXPR number_type (max)() { return (base_type::max)(); }
- BOOST_STATIC_CONSTEXPR number_type lowest() { return -(max)(); }
- BOOST_STATIC_CONSTEXPR number_type epsilon() { return base_type::epsilon(); }
- BOOST_STATIC_CONSTEXPR number_type round_error() { return epsilon() / 2; }
- BOOST_STATIC_CONSTEXPR number_type infinity() { return base_type::infinity(); }
- BOOST_STATIC_CONSTEXPR number_type quiet_NaN() { return base_type::quiet_NaN(); }
- BOOST_STATIC_CONSTEXPR number_type signaling_NaN() { return base_type::signaling_NaN(); }
- BOOST_STATIC_CONSTEXPR number_type denorm_min() { return base_type::denorm_min(); }
-};
-
-#ifndef BOOST_NO_INCLASS_MEMBER_INITIALIZATION
-
-template <class IntBackend, boost::multiprecision::expression_template_option ExpressionTemplates>
-BOOST_CONSTEXPR_OR_CONST bool numeric_limits<boost::multiprecision::number<boost::multiprecision::rational_adapter<IntBackend>, ExpressionTemplates> >::is_integer;
-template <class IntBackend, boost::multiprecision::expression_template_option ExpressionTemplates>
-BOOST_CONSTEXPR_OR_CONST bool numeric_limits<boost::multiprecision::number<boost::multiprecision::rational_adapter<IntBackend>, ExpressionTemplates> >::is_exact;
-
-#endif
-
-
-}
-
-#endif

Copied: trunk/boost/multiprecision/rational_adaptor.hpp (from r82375, /trunk/boost/multiprecision/rational_adapter.hpp)
==============================================================================
--- /trunk/boost/multiprecision/rational_adapter.hpp (original)
+++ trunk/boost/multiprecision/rational_adaptor.hpp 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -25,7 +25,7 @@
 namespace backends{
 
 template <class IntBackend>
-struct rational_adapter
+struct rational_adaptor
 {
    typedef number<IntBackend> integer_type;
    typedef boost::rational<integer_type> rational_type;
@@ -34,55 +34,55 @@
    typedef typename IntBackend::unsigned_types unsigned_types;
    typedef typename IntBackend::float_types float_types;
 
- rational_adapter(){}
- rational_adapter(const rational_adapter& o)
+ rational_adaptor(){}
+ rational_adaptor(const rational_adaptor& o)
    {
       m_value = o.m_value;
    }
- rational_adapter(const IntBackend& o) : m_value(o) {}
+ rational_adaptor(const IntBackend& o) : m_value(o) {}
 
    template <class U>
- rational_adapter(const U& u, typename enable_if_c<is_convertible<U, IntBackend>::value>::type* = 0)
+ rational_adaptor(const U& u, typename enable_if_c<is_convertible<U, IntBackend>::value>::type* = 0)
       : m_value(IntBackend(u)){}
    template <class U>
- explicit rational_adapter(const U& u,
+ explicit 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)
       : m_value(IntBackend(u)){}
    template <class U>
- typename enable_if_c<(boost::multiprecision::detail::is_explicitly_convertible<U, IntBackend>::value && !is_arithmetic<U>::value), rational_adapter&>::type operator = (const U& u)
+ typename enable_if_c<(boost::multiprecision::detail::is_explicitly_convertible<U, IntBackend>::value && !is_arithmetic<U>::value), rational_adaptor&>::type operator = (const U& u)
    {
       m_value = IntBackend(u);
    }
 
 #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
- rational_adapter(rational_adapter&& o) : m_value(o.m_value) {}
- rational_adapter(IntBackend&& o) : m_value(o) {}
- rational_adapter& operator = (rational_adapter&& o)
+ rational_adaptor(rational_adaptor&& o) : m_value(o.m_value) {}
+ rational_adaptor(IntBackend&& o) : m_value(o) {}
+ rational_adaptor& operator = (rational_adaptor&& o)
    {
       m_value = static_cast<rational_type&&>(o.m_value);
       return *this;
    }
 #endif
- rational_adapter& operator = (const rational_adapter& o)
+ rational_adaptor& operator = (const rational_adaptor& o)
    {
       m_value = o.m_value;
       return *this;
    }
- rational_adapter& operator = (const IntBackend& o)
+ rational_adaptor& operator = (const IntBackend& o)
    {
       m_value = o;
       return *this;
    }
    template <class Int>
- typename enable_if<is_integral<Int>, rational_adapter&>::type operator = (Int i)
+ typename enable_if<is_integral<Int>, rational_adaptor&>::type operator = (Int i)
    {
       m_value = i;
       return *this;
    }
    template <class Float>
- typename enable_if<is_floating_point<Float>, rational_adapter&>::type operator = (Float i)
+ typename enable_if<is_floating_point<Float>, rational_adaptor&>::type operator = (Float i)
    {
       int e;
       Float f = std::frexp(i, &e);
@@ -101,7 +101,7 @@
       m_value.assign(num, denom);
       return *this;
    }
- rational_adapter& operator = (const char* s)
+ rational_adaptor& operator = (const char* s)
    {
       std::string s1;
       multiprecision::number<IntBackend> v1, v2;
@@ -139,7 +139,7 @@
       data().assign(v1, v2);
       return *this;
    }
- void swap(rational_adapter& o)
+ void swap(rational_adaptor& o)
    {
       std::swap(m_value, o.m_value);
    }
@@ -160,7 +160,7 @@
    {
       m_value = -m_value;
    }
- int compare(const rational_adapter& o)const
+ int compare(const rational_adaptor& o)const
    {
       return m_value > o.m_value ? 1 : (m_value < o.m_value ? -1 : 0);
    }
@@ -176,22 +176,22 @@
 };
 
 template <class IntBackend>
-inline void eval_add(rational_adapter<IntBackend>& result, const rational_adapter<IntBackend>& o)
+inline void eval_add(rational_adaptor<IntBackend>& result, const rational_adaptor<IntBackend>& o)
 {
    result.data() += o.data();
 }
 template <class IntBackend>
-inline void eval_subtract(rational_adapter<IntBackend>& result, const rational_adapter<IntBackend>& o)
+inline void eval_subtract(rational_adaptor<IntBackend>& result, const rational_adaptor<IntBackend>& o)
 {
    result.data() -= o.data();
 }
 template <class IntBackend>
-inline void eval_multiply(rational_adapter<IntBackend>& result, const rational_adapter<IntBackend>& o)
+inline void eval_multiply(rational_adaptor<IntBackend>& result, const rational_adaptor<IntBackend>& o)
 {
    result.data() *= o.data();
 }
 template <class IntBackend>
-inline void eval_divide(rational_adapter<IntBackend>& result, const rational_adapter<IntBackend>& o)
+inline void eval_divide(rational_adaptor<IntBackend>& result, const rational_adaptor<IntBackend>& o)
 {
    using default_ops::eval_is_zero;
    if(eval_is_zero(o))
@@ -202,25 +202,25 @@
 }
 
 template <class R, class IntBackend>
-inline void eval_convert_to(R* result, const rational_adapter<IntBackend>& backend)
+inline void eval_convert_to(R* result, const rational_adaptor<IntBackend>& backend)
 {
    *result = backend.data().numerator().template convert_to<R>();
    *result /= backend.data().denominator().template convert_to<R>();
 }
 
 template <class IntBackend>
-inline bool eval_is_zero(const rational_adapter<IntBackend>& val)
+inline bool eval_is_zero(const rational_adaptor<IntBackend>& val)
 {
    return eval_is_zero(val.data().numerator().backend());
 }
 template <class IntBackend>
-inline int eval_get_sign(const rational_adapter<IntBackend>& val)
+inline int eval_get_sign(const rational_adaptor<IntBackend>& val)
 {
    return eval_get_sign(val.data().numerator().backend());
 }
 
 template<class IntBackend, class V>
-inline void assign_components(rational_adapter<IntBackend>& result, const V& v1, const V& v2)
+inline void assign_components(rational_adaptor<IntBackend>& result, const V& v1, const V& v2)
 {
    result.data().assign(v1, v2);
 }
@@ -228,26 +228,26 @@
 } // namespace backends
 
 template<class IntBackend>
-struct expression_template_default<backends::rational_adapter<IntBackend> > : public expression_template_default<IntBackend> {};
+struct expression_template_default<backends::rational_adaptor<IntBackend> > : public expression_template_default<IntBackend> {};
    
 template<class IntBackend>
-struct number_category<backends::rational_adapter<IntBackend> > : public mpl::int_<number_kind_rational>{};
+struct number_category<backends::rational_adaptor<IntBackend> > : public mpl::int_<number_kind_rational>{};
 
-using boost::multiprecision::backends::rational_adapter;
+using boost::multiprecision::backends::rational_adaptor;
 
 template <class T>
-struct component_type<rational_adapter<T> >
+struct component_type<rational_adaptor<T> >
 {
    typedef number<T> type;
 };
 
 template <class IntBackend, expression_template_option ET>
-inline number<IntBackend, ET> numerator(const number<rational_adapter<IntBackend>, ET>& val)
+inline number<IntBackend, ET> numerator(const number<rational_adaptor<IntBackend>, ET>& val)
 {
    return val.backend().data().numerator();
 }
 template <class IntBackend, expression_template_option ET>
-inline number<IntBackend, ET> denominator(const number<rational_adapter<IntBackend>, ET>& val)
+inline number<IntBackend, ET> denominator(const number<rational_adaptor<IntBackend>, ET>& val)
 {
    return val.backend().data().denominator();
 }
@@ -257,7 +257,7 @@
 namespace detail{
 
 template<class U, class IntBackend>
-struct is_explicitly_convertible<U, rational_adapter<IntBackend> > : public is_explicitly_convertible<U, IntBackend> {};
+struct is_explicitly_convertible<U, rational_adaptor<IntBackend> > : public is_explicitly_convertible<U, IntBackend> {};
 
 }
 
@@ -269,10 +269,10 @@
 namespace std{
 
 template <class IntBackend, boost::multiprecision::expression_template_option ExpressionTemplates>
-class numeric_limits<boost::multiprecision::number<boost::multiprecision::rational_adapter<IntBackend>, ExpressionTemplates> > : public std::numeric_limits<boost::multiprecision::number<IntBackend, ExpressionTemplates> >
+class numeric_limits<boost::multiprecision::number<boost::multiprecision::rational_adaptor<IntBackend>, ExpressionTemplates> > : public std::numeric_limits<boost::multiprecision::number<IntBackend, ExpressionTemplates> >
 {
    typedef std::numeric_limits<boost::multiprecision::number<IntBackend> > base_type;
- typedef boost::multiprecision::number<boost::multiprecision::rational_adapter<IntBackend> > number_type;
+ typedef boost::multiprecision::number<boost::multiprecision::rational_adaptor<IntBackend> > number_type;
 public:
    BOOST_STATIC_CONSTEXPR bool is_integer = false;
    BOOST_STATIC_CONSTEXPR bool is_exact = true;
@@ -290,9 +290,9 @@
 #ifndef BOOST_NO_INCLASS_MEMBER_INITIALIZATION
 
 template <class IntBackend, boost::multiprecision::expression_template_option ExpressionTemplates>
-BOOST_CONSTEXPR_OR_CONST bool numeric_limits<boost::multiprecision::number<boost::multiprecision::rational_adapter<IntBackend>, ExpressionTemplates> >::is_integer;
+BOOST_CONSTEXPR_OR_CONST bool numeric_limits<boost::multiprecision::number<boost::multiprecision::rational_adaptor<IntBackend>, ExpressionTemplates> >::is_integer;
 template <class IntBackend, boost::multiprecision::expression_template_option ExpressionTemplates>
-BOOST_CONSTEXPR_OR_CONST bool numeric_limits<boost::multiprecision::number<boost::multiprecision::rational_adapter<IntBackend>, ExpressionTemplates> >::is_exact;
+BOOST_CONSTEXPR_OR_CONST bool numeric_limits<boost::multiprecision::number<boost::multiprecision::rational_adaptor<IntBackend>, ExpressionTemplates> >::is_exact;
 
 #endif
 

Modified: trunk/boost/multiprecision/tommath.hpp
==============================================================================
--- trunk/boost/multiprecision/tommath.hpp (original)
+++ trunk/boost/multiprecision/tommath.hpp 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -7,7 +7,7 @@
 #define BOOST_MATH_MP_TOMMATH_BACKEND_HPP
 
 #include <boost/multiprecision/number.hpp>
-#include <boost/multiprecision/rational_adapter.hpp>
+#include <boost/multiprecision/rational_adaptor.hpp>
 #include <boost/multiprecision/detail/integer_ops.hpp>
 #include <boost/math/special_functions/fpclassify.hpp>
 #include <boost/cstdint.hpp>
@@ -639,7 +639,7 @@
 struct number_category<tommath_int> : public mpl::int_<number_kind_integer>{};
 
 typedef number<tommath_int > tom_int;
-typedef rational_adapter<tommath_int> tommath_rational;
+typedef rational_adaptor<tommath_int> tommath_rational;
 typedef number<tommath_rational> tom_rational;
 
 }} // namespaces

Modified: trunk/libs/multiprecision/doc/html/boost_multiprecision/indexes/s01.html
==============================================================================
--- trunk/libs/multiprecision/doc/html/boost_multiprecision/indexes/s01.html (original)
+++ trunk/libs/multiprecision/doc/html/boost_multiprecision/indexes/s01.html 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -22,9 +22,9 @@
 <div class="spirit-nav">
 <a accesskey="p" href="../indexes.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../indexes.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="s02.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
 </div>
-<div class="section id977761">
+<div class="section id991981">
 <div class="titlepage"><div><div><h3 class="title">
-<a name="id977761"></a>Function Index</h3></div></div></div>
+<a name="id991981"></a>Function Index</h3></div></div></div>
 <p><a class="link" href="s01.html#idx_id_0">A</a> <a class="link" href="s01.html#idx_id_1">B</a> <a class="link" href="s01.html#idx_id_2">C</a> <a class="link" href="s01.html#idx_id_3">D</a> <a class="link" href="s01.html#idx_id_4">E</a> <a class="link" href="s01.html#idx_id_5">F</a> <a class="link" href="s01.html#idx_id_7">I</a> <a class="link" href="s01.html#idx_id_8">L</a> <a class="link" href="s01.html#idx_id_9">M</a> <a class="link" href="s01.html#idx_id_11">O</a> <a class="link" href="s01.html#idx_id_12">P</a> <a class="link" href="s01.html#idx_id_13">R</a> <a class="link" href="s01.html#idx_id_14">S</a> <a class="link" href="s01.html#idx_id_15">T</a> <a class="link" href="s01.html#idx_id_17">V</a> <a class="link" href="s01.html#idx_id_18">Z</a></p>
 <div class="variablelist"><dl class="variablelist">
 <dt>
@@ -415,11 +415,11 @@
 </li>
 <li class="listitem" style="list-style-type: none">
 <p><span class="index-entry-level-0">log_postfix_event</span></p>
-<div class="index"><ul class="index" style="list-style-type: none; "><li class="listitem" style="list-style-type: none"><p><a class="link" href="../tut/misc/logged_adapter.html" title="logged_adapter"><span class="index-entry-level-1">logged_adapter</span></a></p></li></ul></div>
+<div class="index"><ul class="index" style="list-style-type: none; "><li class="listitem" style="list-style-type: none"><p><a class="link" href="../tut/misc/logged_adaptor.html" title="logged_adaptor"><span class="index-entry-level-1">logged_adaptor</span></a></p></li></ul></div>
 </li>
 <li class="listitem" style="list-style-type: none">
 <p><span class="index-entry-level-0">log_prefix_event</span></p>
-<div class="index"><ul class="index" style="list-style-type: none; "><li class="listitem" style="list-style-type: none"><p><a class="link" href="../tut/misc/logged_adapter.html" title="logged_adapter"><span class="index-entry-level-1">logged_adapter</span></a></p></li></ul></div>
+<div class="index"><ul class="index" style="list-style-type: none; "><li class="listitem" style="list-style-type: none"><p><a class="link" href="../tut/misc/logged_adaptor.html" title="logged_adaptor"><span class="index-entry-level-1">logged_adaptor</span></a></p></li></ul></div>
 </li>
 <li class="listitem" style="list-style-type: none">
 <p><span class="index-entry-level-0">lround</span></p>

Modified: trunk/libs/multiprecision/doc/html/boost_multiprecision/indexes/s02.html
==============================================================================
--- trunk/libs/multiprecision/doc/html/boost_multiprecision/indexes/s02.html (original)
+++ trunk/libs/multiprecision/doc/html/boost_multiprecision/indexes/s02.html 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -22,9 +22,9 @@
 <div class="spirit-nav">
 <a accesskey="p" href="s01.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../indexes.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="s03.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
 </div>
-<div class="section id980139">
+<div class="section id995998">
 <div class="titlepage"><div><div><h3 class="title">
-<a name="id980139"></a>Class Index</h3></div></div></div>
+<a name="id995998"></a>Class Index</h3></div></div></div>
 <p><a class="link" href="s02.html#idx_id_21">C</a> <a class="link" href="s02.html#idx_id_23">E</a> <a class="link" href="s02.html#idx_id_25">G</a> <a class="link" href="s02.html#idx_id_26">I</a> <a class="link" href="s02.html#idx_id_27">L</a> <a class="link" href="s02.html#idx_id_28">M</a> <a class="link" href="s02.html#idx_id_29">N</a> <a class="link" href="s02.html#idx_id_34">T</a></p>
 <div class="variablelist"><dl class="variablelist">
 <dt>
@@ -92,7 +92,7 @@
 <dt>
 <a name="idx_id_27"></a><span class="term">L</span>
 </dt>
-<dd><div class="index"><ul class="index" style="list-style-type: none; "><li class="listitem" style="list-style-type: none"><p><a class="link" href="../tut/misc/logged_adapter.html" title="logged_adapter"><span class="index-entry-level-0">logged_adapter</span></a></p></li></ul></div></dd>
+<dd><div class="index"><ul class="index" style="list-style-type: none; "><li class="listitem" style="list-style-type: none"><p><a class="link" href="../tut/misc/logged_adaptor.html" title="logged_adaptor"><span class="index-entry-level-0">logged_adaptor</span></a></p></li></ul></div></dd>
 <dt>
 <a name="idx_id_28"></a><span class="term">M</span>
 </dt>

Modified: trunk/libs/multiprecision/doc/html/boost_multiprecision/indexes/s03.html
==============================================================================
--- trunk/libs/multiprecision/doc/html/boost_multiprecision/indexes/s03.html (original)
+++ trunk/libs/multiprecision/doc/html/boost_multiprecision/indexes/s03.html 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -22,9 +22,9 @@
 <div class="spirit-nav">
 <a accesskey="p" href="s02.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../indexes.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="s04.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
 </div>
-<div class="section id980599">
+<div class="section id996458">
 <div class="titlepage"><div><div><h3 class="title">
-<a name="id980599"></a>Typedef Index</h3></div></div></div>
+<a name="id996458"></a>Typedef Index</h3></div></div></div>
 <p><a class="link" href="s03.html#idx_id_40">C</a> <a class="link" href="s03.html#idx_id_45">I</a> <a class="link" href="s03.html#idx_id_46">L</a> <a class="link" href="s03.html#idx_id_47">M</a> <a class="link" href="s03.html#idx_id_52">S</a> <a class="link" href="s03.html#idx_id_53">T</a> <a class="link" href="s03.html#idx_id_54">U</a></p>
 <div class="variablelist"><dl class="variablelist">
 <dt>

Modified: trunk/libs/multiprecision/doc/html/boost_multiprecision/indexes/s04.html
==============================================================================
--- trunk/libs/multiprecision/doc/html/boost_multiprecision/indexes/s04.html (original)
+++ trunk/libs/multiprecision/doc/html/boost_multiprecision/indexes/s04.html 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -21,9 +21,9 @@
 <div class="spirit-nav">
 <a accesskey="p" href="s03.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../indexes.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a>
 </div>
-<div class="section id981646">
+<div class="section id997505">
 <div class="titlepage"><div><div><h3 class="title">
-<a name="id981646"></a>Index</h3></div></div></div>
+<a name="id997505"></a>Index</h3></div></div></div>
 <p><a class="link" href="s04.html#idx_id_57">A</a> <a class="link" href="s04.html#idx_id_58">B</a> <a class="link" href="s04.html#idx_id_59">C</a> <a class="link" href="s04.html#idx_id_60">D</a> <a class="link" href="s04.html#idx_id_61">E</a> <a class="link" href="s04.html#idx_id_62">F</a> <a class="link" href="s04.html#idx_id_63">G</a> <a class="link" href="s04.html#idx_id_64">I</a> <a class="link" href="s04.html#idx_id_65">L</a> <a class="link" href="s04.html#idx_id_66">M</a> <a class="link" href="s04.html#idx_id_67">N</a> <a class="link" href="s04.html#idx_id_68">O</a> <a class="link" href="s04.html#idx_id_69">P</a> <a class="link" href="s04.html#idx_id_70">R</a> <a class="link" href="s04.html#idx_id_71">S</a> <a class="link" href="s04.html#idx_id_72">T</a> <a class="link" href="s04.html#idx_id_73">U</a> <a class="link" href="s04.html#idx_id_74">V</a> <a class="link" href="s04.html#idx_id_75">Z</a></p>
 <div class="variablelist"><dl class="variablelist">
 <dt>
@@ -663,20 +663,20 @@
 <div class="index"><ul class="index" style="list-style-type: none; "><li class="listitem" style="list-style-type: none"><p><a class="link" href="../ref/number.html" title="number"><span class="index-entry-level-1">number</span></a></p></li></ul></div>
 </li>
 <li class="listitem" style="list-style-type: none">
-<p><span class="index-entry-level-0">logged_adapter</span></p>
+<p><span class="index-entry-level-0">logged_adaptor</span></p>
 <div class="index"><ul class="index" style="list-style-type: none; ">
-<li class="listitem" style="list-style-type: none"><p><span class="bold"><strong><a class="link" href="../tut/misc/logged_adapter.html" title="logged_adapter"><span class="index-entry-level-1">logged_adapter</span></a></strong></span></p></li>
-<li class="listitem" style="list-style-type: none"><p><a class="link" href="../tut/misc/logged_adapter.html" title="logged_adapter"><span class="index-entry-level-1">log_postfix_event</span></a></p></li>
-<li class="listitem" style="list-style-type: none"><p><a class="link" href="../tut/misc/logged_adapter.html" title="logged_adapter"><span class="index-entry-level-1">log_prefix_event</span></a></p></li>
+<li class="listitem" style="list-style-type: none"><p><span class="bold"><strong><a class="link" href="../tut/misc/logged_adaptor.html" title="logged_adaptor"><span class="index-entry-level-1">logged_adaptor</span></a></strong></span></p></li>
+<li class="listitem" style="list-style-type: none"><p><a class="link" href="../tut/misc/logged_adaptor.html" title="logged_adaptor"><span class="index-entry-level-1">log_postfix_event</span></a></p></li>
+<li class="listitem" style="list-style-type: none"><p><a class="link" href="../tut/misc/logged_adaptor.html" title="logged_adaptor"><span class="index-entry-level-1">log_prefix_event</span></a></p></li>
 </ul></div>
 </li>
 <li class="listitem" style="list-style-type: none">
 <p><span class="index-entry-level-0">log_postfix_event</span></p>
-<div class="index"><ul class="index" style="list-style-type: none; "><li class="listitem" style="list-style-type: none"><p><a class="link" href="../tut/misc/logged_adapter.html" title="logged_adapter"><span class="index-entry-level-1">logged_adapter</span></a></p></li></ul></div>
+<div class="index"><ul class="index" style="list-style-type: none; "><li class="listitem" style="list-style-type: none"><p><a class="link" href="../tut/misc/logged_adaptor.html" title="logged_adaptor"><span class="index-entry-level-1">logged_adaptor</span></a></p></li></ul></div>
 </li>
 <li class="listitem" style="list-style-type: none">
 <p><span class="index-entry-level-0">log_prefix_event</span></p>
-<div class="index"><ul class="index" style="list-style-type: none; "><li class="listitem" style="list-style-type: none"><p><a class="link" href="../tut/misc/logged_adapter.html" title="logged_adapter"><span class="index-entry-level-1">logged_adapter</span></a></p></li></ul></div>
+<div class="index"><ul class="index" style="list-style-type: none; "><li class="listitem" style="list-style-type: none"><p><a class="link" href="../tut/misc/logged_adaptor.html" title="logged_adaptor"><span class="index-entry-level-1">logged_adaptor</span></a></p></li></ul></div>
 </li>
 <li class="listitem" style="list-style-type: none">
 <p><span class="index-entry-level-0">lround</span></p>

Modified: trunk/libs/multiprecision/doc/html/boost_multiprecision/map/hist.html
==============================================================================
--- trunk/libs/multiprecision/doc/html/boost_multiprecision/map/hist.html (original)
+++ trunk/libs/multiprecision/doc/html/boost_multiprecision/map/hist.html 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -32,10 +32,13 @@
       </h5>
 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
 <li class="listitem">
+ <span class="bold"><strong>Breaking change</strong></span> renamed <code class="computeroutput"><span class="identifier">rational_adapter</span></code> to <code class="computeroutput"><span class="identifier">rational_adaptor</span></code>.
+ </li>
+<li class="listitem">
             Add support for MPFI.
           </li>
 <li class="listitem">
- Add logged_adapter.
+ Add logged_adaptor.
           </li>
 </ul></div>
 <h5>

Modified: trunk/libs/multiprecision/doc/html/boost_multiprecision/map/todo.html
==============================================================================
--- trunk/libs/multiprecision/doc/html/boost_multiprecision/map/todo.html (original)
+++ trunk/libs/multiprecision/doc/html/boost_multiprecision/map/todo.html 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -35,7 +35,7 @@
             Add back-end support for libdecNumber.
           </li>
 <li class="listitem">
- Add an adapter back-end for complex number types.
+ Add an adaptor back-end for complex number types.
           </li>
 <li class="listitem">
             Add a back-end for MPFR interval arithmetic.

Modified: trunk/libs/multiprecision/doc/html/boost_multiprecision/ref/cpp_int_ref.html
==============================================================================
--- trunk/libs/multiprecision/doc/html/boost_multiprecision/ref/cpp_int_ref.html (original)
+++ trunk/libs/multiprecision/doc/html/boost_multiprecision/ref/cpp_int_ref.html 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -47,7 +47,7 @@
 <span class="special">{</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">expression_template_option</span> <span class="identifier">value</span> <span class="special">=</span> <span class="identifier">et_off</span><span class="special">;</span> <span class="special">};</span>
 
 <span class="keyword">typedef</span> <span class="identifier">number</span><span class="special">&lt;</span><span class="identifier">cpp_int_backend</span><span class="special">&lt;&gt;</span> <span class="special">&gt;</span> <span class="identifier">cpp_int</span><span class="special">;</span> <span class="comment">// arbitrary precision integer</span>
-<span class="keyword">typedef</span> <span class="identifier">rational_adapter</span><span class="special">&lt;</span><span class="identifier">cpp_int_backend</span><span class="special">&lt;&gt;</span> <span class="special">&gt;</span> <span class="identifier">cpp_rational_backend</span><span class="special">;</span>
+<span class="keyword">typedef</span> <span class="identifier">rational_adaptor</span><span class="special">&lt;</span><span class="identifier">cpp_int_backend</span><span class="special">&lt;&gt;</span> <span class="special">&gt;</span> <span class="identifier">cpp_rational_backend</span><span class="special">;</span>
 <span class="keyword">typedef</span> <span class="identifier">number</span><span class="special">&lt;</span><span class="identifier">cpp_rational_backend</span><span class="special">&gt;</span> <span class="identifier">cpp_rational</span><span class="special">;</span> <span class="comment">// arbitrary precision rational number</span>
 
 <span class="comment">// Fixed precision unsigned types:</span>
@@ -64,7 +64,7 @@
 
 <span class="comment">// Over again, but with checking enabled this time:</span>
 <span class="keyword">typedef</span> <span class="identifier">number</span><span class="special">&lt;</span><span class="identifier">cpp_int_backend</span><span class="special">&lt;</span><span class="number">0</span><span class="special">,</span> <span class="number">0</span><span class="special">,</span> <span class="identifier">signed_magnitude</span><span class="special">,</span> <span class="identifier">checked</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="identifier">checked_cpp_int</span><span class="special">;</span>
-<span class="keyword">typedef</span> <span class="identifier">rational_adapter</span><span class="special">&lt;</span><span class="identifier">cpp_int_backend</span><span class="special">&lt;</span><span class="number">0</span><span class="special">,</span> <span class="number">0</span><span class="special">,</span> <span class="identifier">signed_magnitude</span><span class="special">,</span> <span class="identifier">checked</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="identifier">checked_cpp_rational_backend</span><span class="special">;</span>
+<span class="keyword">typedef</span> <span class="identifier">rational_adaptor</span><span class="special">&lt;</span><span class="identifier">cpp_int_backend</span><span class="special">&lt;</span><span class="number">0</span><span class="special">,</span> <span class="number">0</span><span class="special">,</span> <span class="identifier">signed_magnitude</span><span class="special">,</span> <span class="identifier">checked</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="identifier">checked_cpp_rational_backend</span><span class="special">;</span>
 <span class="keyword">typedef</span> <span class="identifier">number</span><span class="special">&lt;</span><span class="identifier">cpp_rational_backend</span><span class="special">&gt;</span> <span class="identifier">checked_cpp_rational</span><span class="special">;</span>
 
 <span class="comment">// Checked fixed precision unsigned types:</span>

Modified: trunk/libs/multiprecision/doc/html/boost_multiprecision/ref/headers.html
==============================================================================
--- trunk/libs/multiprecision/doc/html/boost_multiprecision/ref/headers.html (original)
+++ trunk/libs/multiprecision/doc/html/boost_multiprecision/ref/headers.html 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -124,12 +124,12 @@
 <tr>
 <td>
                 <p>
- rational_adapter.hpp
+ rational_adaptor.hpp
                 </p>
               </td>
 <td>
                 <p>
- Defines the <code class="computeroutput"><span class="identifier">rational_adapter</span></code>
+ Defines the <code class="computeroutput"><span class="identifier">rational_adaptor</span></code>
                   backend.
                 </p>
               </td>

Modified: trunk/libs/multiprecision/doc/html/boost_multiprecision/tut.html
==============================================================================
--- trunk/libs/multiprecision/doc/html/boost_multiprecision/tut.html (original)
+++ trunk/libs/multiprecision/doc/html/boost_multiprecision/tut.html 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -65,10 +65,10 @@
 <dt><span class="section">gmp_rational</span></dt>
 <dt><span class="section">tommath_rational</span></dt>
 <dt><span class="section">Use With Boost.Rational</span></dt>
-<dt><span class="section">rational_adapter</span></dt>
+<dt><span class="section">rational_adaptor</span></dt>
 </dl></dd>
 <dt><span class="section">Miscellaneous Number Types.</span></dt>
-<dd><dl><dt><span class="section">logged_adapter</span></dt></dl></dd>
+<dd><dl><dt><span class="section">logged_adaptor</span></dt></dl></dd>
 <dt><span class="section"><a href="tut/conversions.html">Constructing and
       Interconverting Between Number Types</a></span></dt>
 <dt><span class="section">Generating Random Numbers</span></dt>

Modified: trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/conversions.html
==============================================================================
--- trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/conversions.html (original)
+++ trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/conversions.html 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -6,7 +6,7 @@
 <meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
 <link rel="home" href="../../index.html" title="Chapter&#160;1.&#160;Boost.Multiprecision">
 <link rel="up" href="../tut.html" title="Tutorial">
-<link rel="prev" href="misc/logged_adapter.html" title="logged_adapter">
+<link rel="prev" href="misc/logged_adaptor.html" title="logged_adaptor">
 <link rel="next" href="random.html" title="Generating Random Numbers">
 </head>
 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
@@ -20,7 +20,7 @@
 </tr></table>
 <hr>
 <div class="spirit-nav">
-<a accesskey="p" href="misc/logged_adapter.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../tut.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="random.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
+<a accesskey="p" href="misc/logged_adaptor.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../tut.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="random.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
 </div>
 <div class="section boost_multiprecision_tut_conversions">
 <div class="titlepage"><div><div><h3 class="title">
@@ -171,7 +171,7 @@
 </tr></table>
 <hr>
 <div class="spirit-nav">
-<a accesskey="p" href="misc/logged_adapter.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../tut.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="random.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
+<a accesskey="p" href="misc/logged_adaptor.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../tut.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="random.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
 </div>
 </body>
 </html>

Modified: trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/ints/cpp_int.html
==============================================================================
--- trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/ints/cpp_int.html (original)
+++ trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/ints/cpp_int.html 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -50,7 +50,7 @@
 <span class="special">{</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">expression_template_option</span> <span class="identifier">value</span> <span class="special">=</span> <span class="identifier">et_off</span><span class="special">;</span> <span class="special">};</span>
 
 <span class="keyword">typedef</span> <span class="identifier">number</span><span class="special">&lt;</span><span class="identifier">cpp_int_backend</span><span class="special">&lt;&gt;</span> <span class="special">&gt;</span> <span class="identifier">cpp_int</span><span class="special">;</span> <span class="comment">// arbitrary precision integer</span>
-<span class="keyword">typedef</span> <span class="identifier">rational_adapter</span><span class="special">&lt;</span><span class="identifier">cpp_int_backend</span><span class="special">&lt;&gt;</span> <span class="special">&gt;</span> <span class="identifier">cpp_rational_backend</span><span class="special">;</span>
+<span class="keyword">typedef</span> <span class="identifier">rational_adaptor</span><span class="special">&lt;</span><span class="identifier">cpp_int_backend</span><span class="special">&lt;&gt;</span> <span class="special">&gt;</span> <span class="identifier">cpp_rational_backend</span><span class="special">;</span>
 <span class="keyword">typedef</span> <span class="identifier">number</span><span class="special">&lt;</span><span class="identifier">cpp_rational_backend</span><span class="special">&gt;</span> <span class="identifier">cpp_rational</span><span class="special">;</span> <span class="comment">// arbitrary precision rational number</span>
 
 <span class="comment">// Fixed precision unsigned types:</span>
@@ -67,7 +67,7 @@
 
 <span class="comment">// Over again, but with checking enabled this time:</span>
 <span class="keyword">typedef</span> <span class="identifier">number</span><span class="special">&lt;</span><span class="identifier">cpp_int_backend</span><span class="special">&lt;</span><span class="number">0</span><span class="special">,</span> <span class="number">0</span><span class="special">,</span> <span class="identifier">signed_magnitude</span><span class="special">,</span> <span class="identifier">checked</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="identifier">checked_cpp_int</span><span class="special">;</span>
-<span class="keyword">typedef</span> <span class="identifier">rational_adapter</span><span class="special">&lt;</span><span class="identifier">cpp_int_backend</span><span class="special">&lt;</span><span class="number">0</span><span class="special">,</span> <span class="number">0</span><span class="special">,</span> <span class="identifier">signed_magnitude</span><span class="special">,</span> <span class="identifier">checked</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="identifier">checked_cpp_rational_backend</span><span class="special">;</span>
+<span class="keyword">typedef</span> <span class="identifier">rational_adaptor</span><span class="special">&lt;</span><span class="identifier">cpp_int_backend</span><span class="special">&lt;</span><span class="number">0</span><span class="special">,</span> <span class="number">0</span><span class="special">,</span> <span class="identifier">signed_magnitude</span><span class="special">,</span> <span class="identifier">checked</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="identifier">checked_cpp_rational_backend</span><span class="special">;</span>
 <span class="keyword">typedef</span> <span class="identifier">number</span><span class="special">&lt;</span><span class="identifier">cpp_rational_backend</span><span class="special">&gt;</span> <span class="identifier">checked_cpp_rational</span><span class="special">;</span>
 
 <span class="comment">// Checked fixed precision unsigned types:</span>

Modified: trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/misc.html
==============================================================================
--- trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/misc.html (original)
+++ trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/misc.html 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -6,8 +6,8 @@
 <meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
 <link rel="home" href="../../index.html" title="Chapter&#160;1.&#160;Boost.Multiprecision">
 <link rel="up" href="../tut.html" title="Tutorial">
-<link rel="prev" href="rational/rational_adapter.html" title="rational_adapter">
-<link rel="next" href="misc/logged_adapter.html" title="logged_adapter">
+<link rel="prev" href="rational/rational_adaptor.html" title="rational_adaptor">
+<link rel="next" href="misc/logged_adaptor.html" title="logged_adaptor">
 </head>
 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
 <table cellpadding="2" width="100%"><tr>
@@ -20,13 +20,13 @@
 </tr></table>
 <hr>
 <div class="spirit-nav">
-<a accesskey="p" href="rational/rational_adapter.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../tut.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="misc/logged_adapter.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
+<a accesskey="p" href="rational/rational_adaptor.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../tut.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="misc/logged_adaptor.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
 </div>
 <div class="section boost_multiprecision_tut_misc">
 <div class="titlepage"><div><div><h3 class="title">
 <a name="boost_multiprecision.tut.misc"></a><a class="link" href="misc.html" title="Miscellaneous Number Types.">Miscellaneous Number Types.</a>
 </h3></div></div></div>
-<div class="toc"><dl><dt><span class="section">logged_adapter</span></dt></dl></div>
+<div class="toc"><dl><dt><span class="section">logged_adaptor</span></dt></dl></div>
 <p>
         Backend types listed in this section are predominantly designed to aid debugging.
       </p>
@@ -41,7 +41,7 @@
 </tr></table>
 <hr>
 <div class="spirit-nav">
-<a accesskey="p" href="rational/rational_adapter.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../tut.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="misc/logged_adapter.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
+<a accesskey="p" href="rational/rational_adaptor.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../tut.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="misc/logged_adaptor.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
 </div>
 </body>
 </html>

Modified: trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/misc/logged_adapter.html
==============================================================================
--- trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/misc/logged_adapter.html (original)
+++ trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/misc/logged_adapter.html 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -1,7 +1,7 @@
 <html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
-<title>logged_adapter</title>
+<title>logged_adaptor</title>
 <link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
 <meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
 <link rel="home" href="../../../index.html" title="Chapter&#160;1.&#160;Boost.Multiprecision">
@@ -22,12 +22,12 @@
 <div class="spirit-nav">
 <a accesskey="p" href="../misc.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../misc.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../conversions.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
 </div>
-<div class="section boost_multiprecision_tut_misc_logged_adapter">
+<div class="section boost_multiprecision_tut_misc_logged_adaptor">
 <div class="titlepage"><div><div><h4 class="title">
-<a name="boost_multiprecision.tut.misc.logged_adapter"></a><a class="link" href="logged_adapter.html" title="logged_adapter">logged_adapter</a>
+<a name="boost_multiprecision.tut.misc.logged_adaptor"></a><a class="link" href="logged_adaptor.html" title="logged_adaptor">logged_adaptor</a>
 </h4></div></div></div>
 <p>
- <code class="computeroutput"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">multiprecision</span><span class="special">/</span><span class="identifier">logged_adapter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code>
+ <code class="computeroutput"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">multiprecision</span><span class="special">/</span><span class="identifier">logged_adaptor</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code>
         </p>
 <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">multiprecision</span><span class="special">{</span>
 
@@ -46,12 +46,12 @@
 <span class="keyword">void</span> <span class="identifier">log_prefix_event</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">Backend</span><span class="special">&amp;</span> <span class="identifier">arg1</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&amp;</span> <span class="identifier">arg2</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">U</span><span class="special">&amp;</span> <span class="identifier">arg3</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">V</span><span class="special">&amp;</span> <span class="identifier">arg4</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">event_description</span><span class="special">);</span>
 
 <span class="keyword">template</span> <span class="special">&lt;</span><span class="identifier">Backend</span><span class="special">&gt;</span>
-<span class="keyword">class</span> <span class="identifier">logged_adapter</span><span class="special">;</span>
+<span class="keyword">class</span> <span class="identifier">logged_adaptor</span><span class="special">;</span>
 
 <span class="special">}}</span> <span class="comment">// namespaces</span>
 </pre>
 <p>
- The <code class="computeroutput"><span class="identifier">logged_adapter</span></code> type
+ The <code class="computeroutput"><span class="identifier">logged_adaptor</span></code> type
           is used in conjunction with <code class="computeroutput"><span class="identifier">number</span></code>
           and some other backend type: it acts as a thin wrapper around some other
           backend to class <code class="computeroutput"><span class="identifier">number</span></code>
@@ -92,7 +92,7 @@
 <p>
 </p>
 <pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">multiprecision</span><span class="special">/</span><span class="identifier">mpfi</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
-<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">multiprecision</span><span class="special">/</span><span class="identifier">logged_adapter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
+<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">multiprecision</span><span class="special">/</span><span class="identifier">logged_adaptor</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
 <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">iostream</span><span class="special">&gt;</span>
 <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">iomanip</span><span class="special">&gt;</span>
 <span class="comment">//</span>
@@ -121,7 +121,7 @@
 <span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span>
 <span class="special">{</span>
    <span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">multiprecision</span><span class="special">;</span>
- <span class="keyword">typedef</span> <span class="identifier">number</span><span class="special">&lt;</span><span class="identifier">logged_adapter</span><span class="special">&lt;</span><span class="identifier">mpfi_float_backend</span><span class="special">&lt;</span><span class="number">17</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="special">&gt;</span> <span class="identifier">logged_type</span><span class="special">;</span>
+ <span class="keyword">typedef</span> <span class="identifier">number</span><span class="special">&lt;</span><span class="identifier">logged_adaptor</span><span class="special">&lt;</span><span class="identifier">mpfi_float_backend</span><span class="special">&lt;</span><span class="number">17</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="special">&gt;</span> <span class="identifier">logged_type</span><span class="special">;</span>
    <span class="comment">//</span>
    <span class="comment">// Test case deliberately introduces cancellation error, relative size of interval</span>
    <span class="comment">// gradually gets larger after each operation:</span>

Added: trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/misc/logged_adaptor.html
==============================================================================
--- (empty file)
+++ trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/misc/logged_adaptor.html 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -0,0 +1,223 @@
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
+<title>logged_adaptor</title>
+<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
+<meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
+<link rel="home" href="../../../index.html" title="Chapter&#160;1.&#160;Boost.Multiprecision">
+<link rel="up" href="../misc.html" title="Miscellaneous Number Types.">
+<link rel="prev" href="../misc.html" title="Miscellaneous Number Types.">
+<link rel="next" href="../conversions.html" title="Constructing and Interconverting Between Number Types">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table cellpadding="2" width="100%"><tr>
+<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
+<td align="center">Home</td>
+<td align="center">Libraries</td>
+<td align="center">People</td>
+<td align="center">FAQ</td>
+<td align="center">More</td>
+</tr></table>
+<hr>
+<div class="spirit-nav">
+<a accesskey="p" href="../misc.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../misc.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../conversions.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
+</div>
+<div class="section boost_multiprecision_tut_misc_logged_adaptor">
+<div class="titlepage"><div><div><h4 class="title">
+<a name="boost_multiprecision.tut.misc.logged_adaptor"></a><a class="link" href="logged_adaptor.html" title="logged_adaptor">logged_adaptor</a>
+</h4></div></div></div>
+<p>
+ <code class="computeroutput"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">multiprecision</span><span class="special">/</span><span class="identifier">logged_adaptor</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code>
+ </p>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">multiprecision</span><span class="special">{</span>
+
+<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Backend</span><span class="special">&gt;</span>
+<span class="keyword">void</span> <span class="identifier">log_postfix_event</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">Backend</span><span class="special">&amp;</span> <span class="identifier">result</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">event_description</span><span class="special">);</span>
+<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Backend</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T</span><span class="special">&gt;</span>
+<span class="keyword">void</span> <span class="identifier">log_postfix_event</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">Backend</span><span class="special">&amp;</span> <span class="identifier">result1</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&amp;</span> <span class="identifier">result2</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">event_description</span><span class="special">);</span>
+
+<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Backend</span><span class="special">&gt;</span>
+<span class="keyword">void</span> <span class="identifier">log_prefix_event</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">Backend</span><span class="special">&amp;</span> <span class="identifier">arg1</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">event_description</span><span class="special">);</span>
+<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Backend</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T</span><span class="special">&gt;</span>
+<span class="keyword">void</span> <span class="identifier">log_prefix_event</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">Backend</span><span class="special">&amp;</span> <span class="identifier">arg1</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&amp;</span> <span class="identifier">arg2</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">event_description</span><span class="special">);</span>
+<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Backend</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">U</span><span class="special">&gt;</span>
+<span class="keyword">void</span> <span class="identifier">log_prefix_event</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">Backend</span><span class="special">&amp;</span> <span class="identifier">arg1</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&amp;</span> <span class="identifier">arg2</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">U</span><span class="special">&amp;</span> <span class="identifier">arg3</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">event_description</span><span class="special">);</span>
+<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Backend</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">U</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">V</span><span class="special">&gt;</span>
+<span class="keyword">void</span> <span class="identifier">log_prefix_event</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">Backend</span><span class="special">&amp;</span> <span class="identifier">arg1</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&amp;</span> <span class="identifier">arg2</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">U</span><span class="special">&amp;</span> <span class="identifier">arg3</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">V</span><span class="special">&amp;</span> <span class="identifier">arg4</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">event_description</span><span class="special">);</span>
+
+<span class="keyword">template</span> <span class="special">&lt;</span><span class="identifier">Backend</span><span class="special">&gt;</span>
+<span class="keyword">class</span> <span class="identifier">logged_adaptor</span><span class="special">;</span>
+
+<span class="special">}}</span> <span class="comment">// namespaces</span>
+</pre>
+<p>
+ The <code class="computeroutput"><span class="identifier">logged_adaptor</span></code> type
+ is used in conjunction with <code class="computeroutput"><span class="identifier">number</span></code>
+ and some other backend type: it acts as a thin wrapper around some other
+ backend to class <code class="computeroutput"><span class="identifier">number</span></code>
+ and logs all the events that take place on that object. Before any number
+ operation takes place, it calls <code class="computeroutput"><span class="identifier">log_prefix_event</span></code>
+ with the arguments to the operation (up to 4), plus a string describing
+ the operation. Then after the operation it calls <code class="computeroutput"><span class="identifier">log_postfix_event</span></code>
+ with the result of the operation, plus a string describing the operation.
+ Optionally, <code class="computeroutput"><span class="identifier">log_postfix_event</span></code>
+ takes a second result argument: this occurs when the result of the operation
+ is not a <code class="computeroutput"><span class="identifier">number</span></code>, for example
+ when <code class="computeroutput"><span class="identifier">fpclassify</span></code> is called,
+ <code class="computeroutput"><span class="identifier">log_postfix_event</span></code> will
+ be called with <code class="computeroutput"><span class="identifier">result1</span></code>
+ being the argument to the function, and <code class="computeroutput"><span class="identifier">result2</span></code>
+ being the integer result of <code class="computeroutput"><span class="identifier">fpclassify</span></code>.
+ </p>
+<p>
+ The default versions of <code class="computeroutput"><span class="identifier">log_prefix_event</span></code>
+ and <code class="computeroutput"><span class="identifier">log_postfix_event</span></code> do
+ nothing, it is therefore up to the user to overload these for the particular
+ backend being observed.
+ </p>
+<p>
+ This type provides <code class="computeroutput"><span class="identifier">numeric_limits</span></code>
+ support whenever the template argument Backend does so.
+ </p>
+<p>
+ This type is particularly useful when combined with an interval number
+ type - in this case we can use <code class="computeroutput"><span class="identifier">log_postfix_event</span></code>
+ to monitor the error accumulated after each operation. We could either
+ set some kind of trap whenever the accumulated error exceeds some threshold,
+ or simply print out diagnostic information. Using this technique we can
+ quickly locate the cause of numerical instability in a particular routine.
+ The following example demonstrates this technique in a trivial algorithm
+ that deliberately introduces cancellation error:
+ </p>
+<p>
+</p>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">multiprecision</span><span class="special">/</span><span class="identifier">mpfi</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
+<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">multiprecision</span><span class="special">/</span><span class="identifier">logged_adaptor</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
+<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">iostream</span><span class="special">&gt;</span>
+<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">iomanip</span><span class="special">&gt;</span>
+<span class="comment">//</span>
+<span class="comment">// Begin by overloading log_postfix_event so we can capture each arithmetic event as it happens:</span>
+<span class="comment">//</span>
+<span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">multiprecision</span><span class="special">{</span>
+
+<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">unsigned</span> <span class="identifier">D</span><span class="special">&gt;</span>
+<span class="keyword">inline</span> <span class="keyword">void</span> <span class="identifier">log_postfix_event</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">mpfi_float_backend</span><span class="special">&lt;</span><span class="identifier">D</span><span class="special">&gt;&amp;</span> <span class="identifier">val</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">event_description</span><span class="special">)</span>
+<span class="special">{</span>
+ <span class="comment">// Print out the (relative) diameter of the interval:</span>
+ <span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">multiprecision</span><span class="special">;</span>
+ <span class="identifier">number</span><span class="special">&lt;</span><span class="identifier">mpfr_float_backend</span><span class="special">&lt;</span><span class="identifier">D</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="identifier">diam</span><span class="special">;</span>
+ <span class="identifier">mpfi_diam</span><span class="special">(</span><span class="identifier">diam</span><span class="special">.</span><span class="identifier">backend</span><span class="special">().</span><span class="identifier">data</span><span class="special">(),</span> <span class="identifier">val</span><span class="special">.</span><span class="identifier">data</span><span class="special">());</span>
+ <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <span class="string">"Diameter was "</span> <span class="special">&lt;&lt;</span> <span class="identifier">diam</span> <span class="special">&lt;&lt;</span> <span class="string">" after operation: "</span> <span class="special">&lt;&lt;</span> <span class="identifier">event_description</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
+<span class="special">}</span>
+<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">unsigned</span> <span class="identifier">D</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T</span><span class="special">&gt;</span>
+<span class="keyword">inline</span> <span class="keyword">void</span> <span class="identifier">log_postfix_event</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">mpfi_float_backend</span><span class="special">&lt;</span><span class="identifier">D</span><span class="special">&gt;&amp;,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&amp;,</span> <span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">event_description</span><span class="special">)</span>
+<span class="special">{</span>
+ <span class="comment">// This version is never called in this example.</span>
+<span class="special">}</span>
+
+<span class="special">}}</span>
+
+
+<span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span>
+<span class="special">{</span>
+ <span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">multiprecision</span><span class="special">;</span>
+ <span class="keyword">typedef</span> <span class="identifier">number</span><span class="special">&lt;</span><span class="identifier">logged_adaptor</span><span class="special">&lt;</span><span class="identifier">mpfi_float_backend</span><span class="special">&lt;</span><span class="number">17</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="special">&gt;</span> <span class="identifier">logged_type</span><span class="special">;</span>
+ <span class="comment">//</span>
+ <span class="comment">// Test case deliberately introduces cancellation error, relative size of interval</span>
+ <span class="comment">// gradually gets larger after each operation:</span>
+ <span class="comment">//</span>
+ <span class="identifier">logged_type</span> <span class="identifier">a</span> <span class="special">=</span> <span class="number">1</span><span class="special">;</span>
+ <span class="identifier">a</span> <span class="special">/=</span> <span class="number">10</span><span class="special">;</span>
+
+ <span class="keyword">for</span><span class="special">(</span><span class="keyword">unsigned</span> <span class="identifier">i</span> <span class="special">=</span> <span class="number">0</span><span class="special">;</span> <span class="identifier">i</span> <span class="special">&lt;</span> <span class="number">13</span><span class="special">;</span> <span class="special">++</span><span class="identifier">i</span><span class="special">)</span>
+ <span class="special">{</span>
+ <span class="identifier">logged_type</span> <span class="identifier">b</span> <span class="special">=</span> <span class="identifier">a</span> <span class="special">*</span> <span class="number">9</span><span class="special">;</span>
+ <span class="identifier">b</span> <span class="special">/=</span> <span class="number">10</span><span class="special">;</span>
+ <span class="identifier">a</span> <span class="special">-=</span> <span class="identifier">b</span><span class="special">;</span>
+ <span class="special">}</span>
+ <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <span class="string">"Final value was: "</span> <span class="special">&lt;&lt;</span> <span class="identifier">a</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
+ <span class="keyword">return</span> <span class="number">0</span><span class="special">;</span>
+<span class="special">}</span>
+</pre>
+<p>
+ </p>
+<p>
+ When we examine program output we can clearly see that the diameter of
+ the interval increases after each subtraction:
+ </p>
+<p>
+</p>
+<pre class="programlisting"><span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="identifier">nan</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="identifier">Default</span> <span class="identifier">construct</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">0</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="identifier">Assignment</span> <span class="identifier">from</span> <span class="identifier">arithmetic</span> <span class="identifier">type</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">4.33681e-18</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">/=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="identifier">nan</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="identifier">Default</span> <span class="identifier">construct</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">7.70988e-18</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">*</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">9.63735e-18</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">/=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">1.30104e-16</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">-=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="identifier">nan</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="identifier">Default</span> <span class="identifier">construct</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">1.30104e-16</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">*</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">1.38537e-16</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">/=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">2.54788e-15</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">-=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="identifier">nan</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="identifier">Default</span> <span class="identifier">construct</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">2.54788e-15</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">*</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">2.54863e-15</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">/=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">4.84164e-14</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">-=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="identifier">nan</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="identifier">Default</span> <span class="identifier">construct</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">4.84164e-14</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">*</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">4.84221e-14</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">/=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">9.19962e-13</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">-=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="identifier">nan</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="identifier">Default</span> <span class="identifier">construct</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">9.19962e-13</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">*</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">9.19966e-13</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">/=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">1.74793e-11</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">-=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="identifier">nan</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="identifier">Default</span> <span class="identifier">construct</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">1.74793e-11</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">*</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">1.74793e-11</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">/=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">3.32107e-10</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">-=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="identifier">nan</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="identifier">Default</span> <span class="identifier">construct</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">3.32107e-10</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">*</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">3.32107e-10</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">/=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">6.31003e-09</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">-=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="identifier">nan</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="identifier">Default</span> <span class="identifier">construct</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">6.31003e-09</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">*</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">6.31003e-09</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">/=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">1.19891e-07</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">-=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="identifier">nan</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="identifier">Default</span> <span class="identifier">construct</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">1.19891e-07</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">*</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">1.19891e-07</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">/=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">2.27792e-06</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">-=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="identifier">nan</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="identifier">Default</span> <span class="identifier">construct</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">2.27792e-06</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">*</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">2.27792e-06</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">/=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">4.32805e-05</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">-=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="identifier">nan</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="identifier">Default</span> <span class="identifier">construct</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">4.32805e-05</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">*</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">4.32805e-05</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">/=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">0.00082233</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">-=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="identifier">nan</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="identifier">Default</span> <span class="identifier">construct</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">0.00082233</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">*</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">0.00082233</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">/=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">0.0156243</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">-=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="identifier">nan</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="identifier">Default</span> <span class="identifier">construct</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">0.0156243</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">*</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">0.0156243</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">/=</span>
+<span class="identifier">Diameter</span> <span class="identifier">was</span> <span class="number">0.296861</span> <span class="identifier">after</span> <span class="identifier">operation</span><span class="special">:</span> <span class="special">-=</span>
+<span class="identifier">Final</span> <span class="identifier">value</span> <span class="identifier">was</span><span class="special">:</span> <span class="special">{</span><span class="number">8.51569e-15</span><span class="special">,</span><span class="number">1.14843e-14</span><span class="special">}</span>
+</pre>
+<p>
+ </p>
+</div>
+<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
+<td align="left"></td>
+<td align="right"><div class="copyright-footer">Copyright &#169; 2002-2012 John Maddock and Christopher Kormanyos<p>
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
+ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+ </p>
+</div></td>
+</tr></table>
+<hr>
+<div class="spirit-nav">
+<a accesskey="p" href="../misc.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../misc.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../conversions.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
+</div>
+</body>
+</html>

Modified: trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/rational.html
==============================================================================
--- trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/rational.html (original)
+++ trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/rational.html 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -31,7 +31,7 @@
 <dt><span class="section">gmp_rational</span></dt>
 <dt><span class="section">tommath_rational</span></dt>
 <dt><span class="section">Use With Boost.Rational</span></dt>
-<dt><span class="section">rational_adapter</span></dt>
+<dt><span class="section">rational_adaptor</span></dt>
 </dl></div>
 <p>
         The following back-ends provide rational number arithmetic:
@@ -178,12 +178,12 @@
 <tr>
 <td>
                 <p>
- <code class="computeroutput"><span class="identifier">rational_adapter</span></code>
+ <code class="computeroutput"><span class="identifier">rational_adaptor</span></code>
                 </p>
               </td>
 <td>
                 <p>
- boost/multiprecision/rational_adapter.hpp
+ boost/multiprecision/rational_adaptor.hpp
                 </p>
               </td>
 <td>
@@ -198,7 +198,7 @@
               </td>
 <td>
                 <p>
- All C++ adapter that allows any integer back-end type to be used
+ All C++ adaptor that allows any integer back-end type to be used
                   as a rational type.
                 </p>
               </td>

Modified: trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/rational/br.html
==============================================================================
--- trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/rational/br.html (original)
+++ trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/rational/br.html 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -7,7 +7,7 @@
 <link rel="home" href="../../../index.html" title="Chapter&#160;1.&#160;Boost.Multiprecision">
 <link rel="up" href="../rational.html" title="Rational Number Types">
 <link rel="prev" href="tommath_rational.html" title="tommath_rational">
-<link rel="next" href="rational_adapter.html" title="rational_adapter">
+<link rel="next" href="rational_adaptor.html" title="rational_adaptor">
 </head>
 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
 <table cellpadding="2" width="100%"><tr>
@@ -20,7 +20,7 @@
 </tr></table>
 <hr>
 <div class="spirit-nav">
-<a accesskey="p" href="tommath_rational.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../rational.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="rational_adapter.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
+<a accesskey="p" href="tommath_rational.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../rational.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="rational_adaptor.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
 </div>
 <div class="section boost_multiprecision_tut_rational_br">
 <div class="titlepage"><div><div><h4 class="title">
@@ -45,7 +45,7 @@
 </tr></table>
 <hr>
 <div class="spirit-nav">
-<a accesskey="p" href="tommath_rational.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../rational.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="rational_adapter.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
+<a accesskey="p" href="tommath_rational.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../rational.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="rational_adaptor.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
 </div>
 </body>
 </html>

Modified: trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/rational/cpp_rational.html
==============================================================================
--- trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/rational/cpp_rational.html (original)
+++ trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/rational/cpp_rational.html 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -31,7 +31,7 @@
         </p>
 <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">multiprecision</span><span class="special">{</span>
 
-<span class="keyword">typedef</span> <span class="identifier">rational_adapter</span><span class="special">&lt;</span><span class="identifier">cpp_int_backend</span><span class="special">&lt;&gt;</span> <span class="special">&gt;</span> <span class="identifier">cpp_rational_backend</span><span class="special">;</span>
+<span class="keyword">typedef</span> <span class="identifier">rational_adaptor</span><span class="special">&lt;</span><span class="identifier">cpp_int_backend</span><span class="special">&lt;&gt;</span> <span class="special">&gt;</span> <span class="identifier">cpp_rational_backend</span><span class="special">;</span>
 
 <span class="keyword">typedef</span> <span class="identifier">number</span><span class="special">&lt;</span><span class="identifier">cpp_rational_backend</span><span class="special">&gt;</span> <span class="identifier">cpp_rational</span><span class="special">;</span>
 

Modified: trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/rational/rational_adapter.html
==============================================================================
--- trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/rational/rational_adapter.html (original)
+++ trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/rational/rational_adapter.html 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -1,7 +1,7 @@
 <html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
-<title>rational_adapter</title>
+<title>rational_adaptor</title>
 <link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
 <meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
 <link rel="home" href="../../../index.html" title="Chapter&#160;1.&#160;Boost.Multiprecision">
@@ -22,9 +22,9 @@
 <div class="spirit-nav">
 <a accesskey="p" href="br.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../rational.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../misc.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
 </div>
-<div class="section boost_multiprecision_tut_rational_rational_adapter">
+<div class="section boost_multiprecision_tut_rational_rational_adaptor">
 <div class="titlepage"><div><div><h4 class="title">
-<a name="boost_multiprecision.tut.rational.rational_adapter"></a><a class="link" href="rational_adapter.html" title="rational_adapter">rational_adapter</a>
+<a name="boost_multiprecision.tut.rational.rational_adaptor"></a><a class="link" href="rational_adaptor.html" title="rational_adaptor">rational_adaptor</a>
 </h4></div></div></div>
 <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">multiprecision</span><span class="special">{</span>
 
@@ -34,7 +34,7 @@
 <span class="special">}}</span>
 </pre>
 <p>
- The class template <code class="computeroutput"><span class="identifier">rational_adapter</span></code>
+ The class template <code class="computeroutput"><span class="identifier">rational_adaptor</span></code>
           is a back-end for <code class="computeroutput"><span class="identifier">number</span></code>
           which converts any existing integer back-end into a rational-number back-end.
         </p>
@@ -43,7 +43,7 @@
           the use would be something like:
         </p>
 <pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">number</span><span class="special">&lt;</span><span class="identifier">MyIntegerBackend</span><span class="special">&gt;</span> <span class="identifier">MyInt</span><span class="special">;</span>
-<span class="keyword">typedef</span> <span class="identifier">number</span><span class="special">&lt;</span><span class="identifier">rational_adapter</span><span class="special">&lt;</span><span class="identifier">MyIntegerBackend</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="identifier">MyRational</span><span class="special">;</span>
+<span class="keyword">typedef</span> <span class="identifier">number</span><span class="special">&lt;</span><span class="identifier">rational_adaptor</span><span class="special">&lt;</span><span class="identifier">MyIntegerBackend</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="identifier">MyRational</span><span class="special">;</span>
 
 <span class="identifier">MyRational</span> <span class="identifier">r</span> <span class="special">=</span> <span class="number">2</span><span class="special">;</span>
 <span class="identifier">r</span> <span class="special">/=</span> <span class="number">3</span><span class="special">;</span>

Added: trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/rational/rational_adaptor.html
==============================================================================
--- (empty file)
+++ trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/rational/rational_adaptor.html 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -0,0 +1,67 @@
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
+<title>rational_adaptor</title>
+<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
+<meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
+<link rel="home" href="../../../index.html" title="Chapter&#160;1.&#160;Boost.Multiprecision">
+<link rel="up" href="../rational.html" title="Rational Number Types">
+<link rel="prev" href="br.html" title="Use With Boost.Rational">
+<link rel="next" href="../misc.html" title="Miscellaneous Number Types.">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table cellpadding="2" width="100%"><tr>
+<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
+<td align="center">Home</td>
+<td align="center">Libraries</td>
+<td align="center">People</td>
+<td align="center">FAQ</td>
+<td align="center">More</td>
+</tr></table>
+<hr>
+<div class="spirit-nav">
+<a accesskey="p" href="br.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../rational.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../misc.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
+</div>
+<div class="section boost_multiprecision_tut_rational_rational_adaptor">
+<div class="titlepage"><div><div><h4 class="title">
+<a name="boost_multiprecision.tut.rational.rational_adaptor"></a><a class="link" href="rational_adaptor.html" title="rational_adaptor">rational_adaptor</a>
+</h4></div></div></div>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">multiprecision</span><span class="special">{</span>
+
+<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">IntBackend</span><span class="special">&gt;</span>
+<span class="keyword">class</span> <span class="identifier">rational_adpater</span><span class="special">;</span>
+
+<span class="special">}}</span>
+</pre>
+<p>
+ The class template <code class="computeroutput"><span class="identifier">rational_adaptor</span></code>
+ is a back-end for <code class="computeroutput"><span class="identifier">number</span></code>
+ which converts any existing integer back-end into a rational-number back-end.
+ </p>
+<p>
+ So for example, given an integer back-end type <code class="computeroutput"><span class="identifier">MyIntegerBackend</span></code>,
+ the use would be something like:
+ </p>
+<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">number</span><span class="special">&lt;</span><span class="identifier">MyIntegerBackend</span><span class="special">&gt;</span> <span class="identifier">MyInt</span><span class="special">;</span>
+<span class="keyword">typedef</span> <span class="identifier">number</span><span class="special">&lt;</span><span class="identifier">rational_adaptor</span><span class="special">&lt;</span><span class="identifier">MyIntegerBackend</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="identifier">MyRational</span><span class="special">;</span>
+
+<span class="identifier">MyRational</span> <span class="identifier">r</span> <span class="special">=</span> <span class="number">2</span><span class="special">;</span>
+<span class="identifier">r</span> <span class="special">/=</span> <span class="number">3</span><span class="special">;</span>
+<span class="identifier">MyInt</span> <span class="identifier">i</span> <span class="special">=</span> <span class="identifier">numerator</span><span class="special">(</span><span class="identifier">r</span><span class="special">);</span>
+<span class="identifier">assert</span><span class="special">(</span><span class="identifier">i</span> <span class="special">==</span> <span class="number">2</span><span class="special">);</span>
+</pre>
+</div>
+<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
+<td align="left"></td>
+<td align="right"><div class="copyright-footer">Copyright &#169; 2002-2012 John Maddock and Christopher Kormanyos<p>
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
+ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+ </p>
+</div></td>
+</tr></table>
+<hr>
+<div class="spirit-nav">
+<a accesskey="p" href="br.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../rational.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../misc.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
+</div>
+</body>
+</html>

Modified: trunk/libs/multiprecision/doc/html/index.html
==============================================================================
--- trunk/libs/multiprecision/doc/html/index.html (original)
+++ trunk/libs/multiprecision/doc/html/index.html 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -80,10 +80,10 @@
 <dt><span class="section">gmp_rational</span></dt>
 <dt><span class="section">tommath_rational</span></dt>
 <dt><span class="section">Use With Boost.Rational</span></dt>
-<dt><span class="section">rational_adapter</span></dt>
+<dt><span class="section">rational_adaptor</span></dt>
 </dl></dd>
 <dt><span class="section">Miscellaneous Number Types.</span></dt>
-<dd><dl><dt><span class="section">logged_adapter</span></dt></dl></dd>
+<dd><dl><dt><span class="section">logged_adaptor</span></dt></dl></dd>
 <dt><span class="section"><a href="boost_multiprecision/tut/conversions.html">Constructing and
       Interconverting Between Number Types</a></span></dt>
 <dt><span class="section">Generating Random Numbers</span></dt>
@@ -140,7 +140,7 @@
 </div>
 </div>
 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
-<td align="left"><p><small>Last revised: January 14, 2013 at 19:04:42 GMT</small></p></td>
+<td align="left"><p><small>Last revised: January 15, 2013 at 11:39:36 GMT</small></p></td>
 <td align="right"><div class="copyright-footer"></div></td>
 </tr></table>
 <hr>

Modified: trunk/libs/multiprecision/doc/multiprecision.qbk
==============================================================================
--- trunk/libs/multiprecision/doc/multiprecision.qbk (original)
+++ trunk/libs/multiprecision/doc/multiprecision.qbk 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -28,7 +28,7 @@
 [import ../example/random_snips.cpp]
 [import ../example/safe_prime.cpp]
 [import ../example/mixed_integer_arithmetic.cpp]
-[import ../example/logged_adapter.cpp]
+[import ../example/logged_adaptor.cpp]
 
 [template mpfr[] [@http://www.mpfr.org MPFR]]
 [template mpfi[] [@http://perso.ens-lyon.fr/nathalie.revol/software.html MPFI]]
@@ -409,7 +409,7 @@
    { static const expression_template_option value = et_off; };
 
    typedef number<cpp_int_backend<> > cpp_int; // arbitrary precision integer
- typedef rational_adapter<cpp_int_backend<> > cpp_rational_backend;
+ typedef rational_adaptor<cpp_int_backend<> > cpp_rational_backend;
    typedef number<cpp_rational_backend> cpp_rational; // arbitrary precision rational number
 
    // Fixed precision unsigned types:
@@ -426,7 +426,7 @@
 
    // Over again, but with checking enabled this time:
    typedef number<cpp_int_backend<0, 0, signed_magnitude, checked> > checked_cpp_int;
- typedef rational_adapter<cpp_int_backend<0, 0, signed_magnitude, checked> > checked_cpp_rational_backend;
+ typedef rational_adaptor<cpp_int_backend<0, 0, signed_magnitude, checked> > checked_cpp_rational_backend;
    typedef number<cpp_rational_backend> checked_cpp_rational;
 
    // Checked fixed precision unsigned types:
@@ -1031,7 +1031,7 @@
 [[`cpp_rational`][boost/multiprecision/cpp_int.hpp][2][None][An all C++ Boost-licensed implementation.][Slower than [gmp].]]
 [[`gmp_rational`][boost/multiprecision/gmp.hpp][2][[gmp]][Very fast and efficient back-end.][Dependency on GNU licensed [gmp] library.]]
 [[`tommath_rational`][boost/multiprecision/tommath.hpp][2][[tommath]][All C/C++ implementation that's Boost Software Licence compatible.][Slower than [gmp].]]
-[[`rational_adapter`][boost/multiprecision/rational_adapter.hpp][N/A][none][All C++ adapter that allows any integer back-end type to be used as a rational type.][Requires an underlying integer back-end type.]]
+[[`rational_adaptor`][boost/multiprecision/rational_adaptor.hpp][N/A][none][All C++ adaptor that allows any integer back-end type to be used as a rational type.][Requires an underlying integer back-end type.]]
 [[`boost::rational`][boost/rational.hpp][N/A][None][A C++ rational number type that can used with any `number` integer type.][The expression templates used by `number` end up being "hidden" inside `boost::rational`: performance may well suffer as a result.]]
 ]
 
@@ -1041,7 +1041,7 @@
 
    namespace boost{ namespace multiprecision{
 
- typedef rational_adapter<cpp_int_backend<> > cpp_rational_backend;
+ typedef rational_adaptor<cpp_int_backend<> > cpp_rational_backend;
 
    typedef number<cpp_rational_backend> cpp_rational;
 
@@ -1172,7 +1172,7 @@
 
 [endsect]
 
-[section:rational_adapter rational_adapter]
+[section:rational_adaptor rational_adaptor]
 
    namespace boost{ namespace multiprecision{
 
@@ -1181,13 +1181,13 @@
 
    }}
 
-The class template `rational_adapter` is a back-end for `number` which converts any existing integer back-end
+The class template `rational_adaptor` is a back-end for `number` which converts any existing integer back-end
 into a rational-number back-end.
 
 So for example, given an integer back-end type `MyIntegerBackend`, the use would be something like:
 
    typedef number<MyIntegerBackend> MyInt;
- typedef number<rational_adapter<MyIntegerBackend> > MyRational;
+ typedef number<rational_adaptor<MyIntegerBackend> > MyRational;
 
    MyRational r = 2;
    r /= 3;
@@ -1202,9 +1202,9 @@
 
 Backend types listed in this section are predominantly designed to aid debugging.
 
-[section:logged_adapter logged_adapter]
+[section:logged_adaptor logged_adaptor]
 
-`#include <boost/multiprecision/logged_adapter.hpp>`
+`#include <boost/multiprecision/logged_adaptor.hpp>`
 
    namespace boost{ namespace multiprecision{
 
@@ -1223,11 +1223,11 @@
    void log_prefix_event(const Backend& arg1, const T& arg2, const U& arg3, const V& arg4, const char* event_description);
 
    template <Backend>
- class logged_adapter;
+ class logged_adaptor;
 
    }} // namespaces
 
-The `logged_adapter` type is used in conjunction with `number` and some other backend type: it acts as a thin wrapper around
+The `logged_adaptor` type is used in conjunction with `number` and some other backend type: it acts as a thin wrapper around
 some other backend to class `number` and logs all the events that take place on that object. Before any number operation takes
 place, it calls `log_prefix_event` with the arguments to the operation (up to 4), plus a string describing the operation.
 Then after the operation it calls `log_postfix_event` with the result of the operation, plus a string describing the operation.
@@ -1246,11 +1246,11 @@
 numerical instability in a particular routine. The following example demonstrates this technique in a trivial algorithm
 that deliberately introduces cancellation error:
 
-[logged_adapter]
+[logged_adaptor]
 
 When we examine program output we can clearly see that the diameter of the interval increases after each subtraction:
 
-[logged_adapter_output]
+[logged_adaptor_output]
 
 [endsect]
 
@@ -2224,7 +2224,7 @@
    { static const expression_template_option value = et_off; };
 
    typedef number<cpp_int_backend<> > cpp_int; // arbitrary precision integer
- typedef rational_adapter<cpp_int_backend<> > cpp_rational_backend;
+ typedef rational_adaptor<cpp_int_backend<> > cpp_rational_backend;
    typedef number<cpp_rational_backend> cpp_rational; // arbitrary precision rational number
 
    // Fixed precision unsigned types:
@@ -2241,7 +2241,7 @@
 
    // Over again, but with checking enabled this time:
    typedef number<cpp_int_backend<0, 0, signed_magnitude, checked> > checked_cpp_int;
- typedef rational_adapter<cpp_int_backend<0, 0, signed_magnitude, checked> > checked_cpp_rational_backend;
+ typedef rational_adaptor<cpp_int_backend<0, 0, signed_magnitude, checked> > checked_cpp_rational_backend;
    typedef number<cpp_rational_backend> checked_cpp_rational;
 
    // Checked fixed precision unsigned types:
@@ -2872,7 +2872,7 @@
 [[number.hpp][Defines the `number` backend, is included by all the backend headers.]]
 [[mpfr.hpp][Defines the mpfr_float_backend backend.]]
 [[random.hpp][Defines code to interoperate with Boost.Random.]]
-[[rational_adapter.hpp][Defines the `rational_adapter` backend.]]
+[[rational_adaptor.hpp][Defines the `rational_adaptor` backend.]]
 [[cpp_dec_float.hpp][Defines the `cpp_dec_float` backend.]]
 [[tommath.hpp][Defines the `tommath_int` backend.]]
 [[concepts/number_archetypes.hpp][Defines a backend concept archetypes for testing use.]]
@@ -3537,8 +3537,9 @@
 
 [h4 1.54]
 
+* [*Breaking change] renamed `rational_adapter` to `rational_adaptor`.
 * Add support for [mpfi].
-* Add logged_adapter.
+* Add logged_adaptor.
 
 [h4 1.53]
 
@@ -3584,7 +3585,7 @@
 More a list of what ['could] be done, rather than what ['should] be done (which may be a much smaller list!).
 
 * Add back-end support for libdecNumber.
-* Add an adapter back-end for complex number types.
+* Add an adaptor back-end for complex number types.
 * Add a back-end for MPFR interval arithmetic.
 * Add better multiplication routines (Karatsuba, FFT etc) to cpp_int_backend.
 * Add assembly level routines to cpp_int_backend.

Deleted: trunk/libs/multiprecision/example/logged_adapter.cpp
==============================================================================
--- trunk/libs/multiprecision/example/logged_adapter.cpp 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
+++ (empty file)
@@ -1,119 +0,0 @@
-///////////////////////////////////////////////////////////////
-// Copyright 2013 John Maddock. Distributed under the Boost
-// Software License, Version 1.0. (See accompanying file
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_
-
-//[logged_adapter
-
-#include <boost/multiprecision/mpfi.hpp>
-#include <boost/multiprecision/logged_adapter.hpp>
-#include <iostream>
-#include <iomanip>
-//
-// Begin by overloading log_postfix_event so we can capture each arithmetic event as it happens:
-//
-namespace boost{ namespace multiprecision{
-
-template <unsigned D>
-inline void log_postfix_event(const mpfi_float_backend<D>& val, const char* event_description)
-{
- // Print out the (relative) diameter of the interval:
- using namespace boost::multiprecision;
- number<mpfr_float_backend<D> > diam;
- mpfi_diam(diam.backend().data(), val.data());
- std::cout << "Diameter was " << diam << " after operation: " << event_description << std::endl;
-}
-template <unsigned D, class T>
-inline void log_postfix_event(const mpfi_float_backend<D>&, const T&, const char* event_description)
-{
- // This version is never called in this example.
-}
-
-}}
-
-
-int main()
-{
- using namespace boost::multiprecision;
- typedef number<logged_adapter<mpfi_float_backend<17> > > logged_type;
- //
- // Test case deliberately introduces cancellation error, relative size of interval
- // gradually gets larger after each operation:
- //
- logged_type a = 1;
- a /= 10;
-
- for(unsigned i = 0; i < 13; ++i)
- {
- logged_type b = a * 9;
- b /= 10;
- a -= b;
- }
- std::cout << "Final value was: " << a << std::endl;
- return 0;
-}
-
-//]
-
-/*
-//[logged_adapter_output
-
-Diameter was nan after operation: Default construct
-Diameter was 0 after operation: Assignment from arithmetic type
-Diameter was 4.33681e-18 after operation: /=
-Diameter was nan after operation: Default construct
-Diameter was 7.70988e-18 after operation: *
-Diameter was 9.63735e-18 after operation: /=
-Diameter was 1.30104e-16 after operation: -=
-Diameter was nan after operation: Default construct
-Diameter was 1.30104e-16 after operation: *
-Diameter was 1.38537e-16 after operation: /=
-Diameter was 2.54788e-15 after operation: -=
-Diameter was nan after operation: Default construct
-Diameter was 2.54788e-15 after operation: *
-Diameter was 2.54863e-15 after operation: /=
-Diameter was 4.84164e-14 after operation: -=
-Diameter was nan after operation: Default construct
-Diameter was 4.84164e-14 after operation: *
-Diameter was 4.84221e-14 after operation: /=
-Diameter was 9.19962e-13 after operation: -=
-Diameter was nan after operation: Default construct
-Diameter was 9.19962e-13 after operation: *
-Diameter was 9.19966e-13 after operation: /=
-Diameter was 1.74793e-11 after operation: -=
-Diameter was nan after operation: Default construct
-Diameter was 1.74793e-11 after operation: *
-Diameter was 1.74793e-11 after operation: /=
-Diameter was 3.32107e-10 after operation: -=
-Diameter was nan after operation: Default construct
-Diameter was 3.32107e-10 after operation: *
-Diameter was 3.32107e-10 after operation: /=
-Diameter was 6.31003e-09 after operation: -=
-Diameter was nan after operation: Default construct
-Diameter was 6.31003e-09 after operation: *
-Diameter was 6.31003e-09 after operation: /=
-Diameter was 1.19891e-07 after operation: -=
-Diameter was nan after operation: Default construct
-Diameter was 1.19891e-07 after operation: *
-Diameter was 1.19891e-07 after operation: /=
-Diameter was 2.27792e-06 after operation: -=
-Diameter was nan after operation: Default construct
-Diameter was 2.27792e-06 after operation: *
-Diameter was 2.27792e-06 after operation: /=
-Diameter was 4.32805e-05 after operation: -=
-Diameter was nan after operation: Default construct
-Diameter was 4.32805e-05 after operation: *
-Diameter was 4.32805e-05 after operation: /=
-Diameter was 0.00082233 after operation: -=
-Diameter was nan after operation: Default construct
-Diameter was 0.00082233 after operation: *
-Diameter was 0.00082233 after operation: /=
-Diameter was 0.0156243 after operation: -=
-Diameter was nan after operation: Default construct
-Diameter was 0.0156243 after operation: *
-Diameter was 0.0156243 after operation: /=
-Diameter was 0.296861 after operation: -=
-Final value was: {8.51569e-15,1.14843e-14}
-
-//]
-*/

Copied: trunk/libs/multiprecision/example/logged_adaptor.cpp (from r82499, /trunk/libs/multiprecision/example/logged_adapter.cpp)
==============================================================================
--- /trunk/libs/multiprecision/example/logged_adapter.cpp (original)
+++ trunk/libs/multiprecision/example/logged_adaptor.cpp 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -3,10 +3,10 @@
 // Software License, Version 1.0. (See accompanying file
 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_
 
-//[logged_adapter
+//[logged_adaptor
 
 #include <boost/multiprecision/mpfi.hpp>
-#include <boost/multiprecision/logged_adapter.hpp>
+#include <boost/multiprecision/logged_adaptor.hpp>
 #include <iostream>
 #include <iomanip>
 //
@@ -35,7 +35,7 @@
 int main()
 {
    using namespace boost::multiprecision;
- typedef number<logged_adapter<mpfi_float_backend<17> > > logged_type;
+ typedef number<logged_adaptor<mpfi_float_backend<17> > > logged_type;
    //
    // Test case deliberately introduces cancellation error, relative size of interval
    // gradually gets larger after each operation:
@@ -56,7 +56,7 @@
 //]
 
 /*
-//[logged_adapter_output
+//[logged_adaptor_output
 
 Diameter was nan after operation: Default construct
 Diameter was 0 after operation: Assignment from arithmetic type

Modified: trunk/libs/multiprecision/performance/performance_test.cpp
==============================================================================
--- trunk/libs/multiprecision/performance/performance_test.cpp (original)
+++ trunk/libs/multiprecision/performance/performance_test.cpp 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -34,7 +34,7 @@
 
 #if defined(TEST_MPF) || defined(TEST_MPZ) || defined(TEST_MPQ) || defined(TEST_MPZ_BOOST_RATIONAL)
 #include <boost/multiprecision/gmp.hpp>
-#include <boost/multiprecision/rational_adapter.hpp>
+#include <boost/multiprecision/rational_adaptor.hpp>
 #endif
 #ifdef TEST_CPP_DEC_FLOAT
 #include <boost/multiprecision/cpp_dec_float.hpp>
@@ -44,7 +44,7 @@
 #endif
 #if defined(TEST_TOMMATH) || defined(TEST_TOMMATH_BOOST_RATIONAL)
 #include <boost/multiprecision/tommath.hpp>
-#include <boost/multiprecision/rational_adapter.hpp>
+#include <boost/multiprecision/rational_adaptor.hpp>
 #endif
 #if defined(TEST_CPP_INT) || defined(TEST_CPP_INT_RATIONAL)
 #include <boost/multiprecision/cpp_int.hpp>

Modified: trunk/libs/multiprecision/test/Jamfile.v2
==============================================================================
--- trunk/libs/multiprecision/test/Jamfile.v2 (original)
+++ trunk/libs/multiprecision/test/Jamfile.v2 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -448,7 +448,7 @@
         : # requirements
          [ check-target-builds ../config//has_mpfi : : <build>no ] ;
 
-run ../example/logged_adapter.cpp mpfi mpfr gmp
+run ../example/logged_adaptor.cpp mpfi mpfr gmp
         : # command line
         : # input files
         : # requirements
@@ -615,7 +615,7 @@
               : # requirements
                     <define>TEST_LOGGED_ADAPTER
                <debug-symbols>off
- : $(source:B)_logged_adapter ;
+ : $(source:B)_logged_adaptor ;
    }
 }
 

Modified: trunk/libs/multiprecision/test/concepts/number_concept_check.cpp
==============================================================================
--- trunk/libs/multiprecision/test/concepts/number_concept_check.cpp (original)
+++ trunk/libs/multiprecision/test/concepts/number_concept_check.cpp 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -54,7 +54,7 @@
 #include <boost/multiprecision/mpfr.hpp>
 #endif
 #ifdef TEST_LOGGED_ADAPTER
-#include <boost/multiprecision/logged_adapter.hpp>
+#include <boost/multiprecision/logged_adaptor.hpp>
 #endif
 
 #include <boost/math/concepts/real_type_concept.hpp>
@@ -225,7 +225,7 @@
    BOOST_CONCEPT_ASSERT((boost::math::concepts::RealTypeConcept<boost::multiprecision::cpp_dec_float_50>));
 #endif
 #ifdef TEST_LOGGED_ADAPTER
- typedef boost::multiprecision::number<boost::multiprecision::logged_adapter<boost::multiprecision::cpp_dec_float<50> > > num_t;
+ typedef boost::multiprecision::number<boost::multiprecision::logged_adaptor<boost::multiprecision::cpp_dec_float<50> > > num_t;
    test_extra(num_t());
 #endif
 

Modified: trunk/libs/multiprecision/test/concepts/sf_concept_check_basic.cpp
==============================================================================
--- trunk/libs/multiprecision/test/concepts/sf_concept_check_basic.cpp (original)
+++ trunk/libs/multiprecision/test/concepts/sf_concept_check_basic.cpp 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -54,7 +54,7 @@
 #include <boost/multiprecision/mpfr.hpp>
 #endif
 #ifdef TEST_LOGGED_ADAPTER
-#include <boost/multiprecision/logged_adapter.hpp>
+#include <boost/multiprecision/logged_adaptor.hpp>
 #endif
 
 #include <boost/math/special_functions.hpp>
@@ -147,7 +147,7 @@
    test_extra(boost::multiprecision::number<boost::multiprecision::cpp_dec_float<100>, boost::multiprecision::et_off>());
 #endif
 #ifdef TEST_LOGGED_ADAPTER
- typedef boost::multiprecision::number<boost::multiprecision::logged_adapter<boost::multiprecision::cpp_dec_float<50> > > num_t;
+ typedef boost::multiprecision::number<boost::multiprecision::logged_adaptor<boost::multiprecision::cpp_dec_float<50> > > num_t;
    test_extra(num_t());
 #endif
 }

Modified: trunk/libs/multiprecision/test/concepts/sf_concept_check_bessel.cpp
==============================================================================
--- trunk/libs/multiprecision/test/concepts/sf_concept_check_bessel.cpp (original)
+++ trunk/libs/multiprecision/test/concepts/sf_concept_check_bessel.cpp 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -54,7 +54,7 @@
 #include <boost/multiprecision/mpfr.hpp>
 #endif
 #ifdef TEST_LOGGED_ADAPTER
-# include <boost/multiprecision/logged_adapter.hpp>
+# include <boost/multiprecision/logged_adaptor.hpp>
 #endif
 
 #include <boost/math/special_functions.hpp>
@@ -114,7 +114,7 @@
    test_extra(boost::multiprecision::number<boost::multiprecision::cpp_dec_float<100>, boost::multiprecision::et_off>());
 #endif
 #ifdef TEST_LOGGED_ADAPTER
- typedef boost::multiprecision::number<boost::multiprecision::logged_adapter<boost::multiprecision::cpp_dec_float<50> > > num_t;
+ typedef boost::multiprecision::number<boost::multiprecision::logged_adaptor<boost::multiprecision::cpp_dec_float<50> > > num_t;
    test_extra(num_t());
 #endif
 }

Modified: trunk/libs/multiprecision/test/concepts/sf_concept_check_elliptic.cpp
==============================================================================
--- trunk/libs/multiprecision/test/concepts/sf_concept_check_elliptic.cpp (original)
+++ trunk/libs/multiprecision/test/concepts/sf_concept_check_elliptic.cpp 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -54,7 +54,7 @@
 #include <boost/multiprecision/mpfr.hpp>
 #endif
 #ifdef TEST_LOGGED_ADAPTER
-#include <boost/multiprecision/logged_adapter.hpp>
+#include <boost/multiprecision/logged_adaptor.hpp>
 #endif
 
 #include <boost/math/special_functions.hpp>
@@ -118,7 +118,7 @@
    test_extra(boost::multiprecision::number<boost::multiprecision::cpp_dec_float<100>, boost::multiprecision::et_off>());
 #endif
 #ifdef TEST_LOGGED_ADAPTER
- typedef boost::multiprecision::number<boost::multiprecision::logged_adapter<boost::multiprecision::cpp_dec_float<50> > > num_t;
+ typedef boost::multiprecision::number<boost::multiprecision::logged_adaptor<boost::multiprecision::cpp_dec_float<50> > > num_t;
    test_extra(num_t());
 #endif
 }

Modified: trunk/libs/multiprecision/test/concepts/sf_concept_check_gamma.cpp
==============================================================================
--- trunk/libs/multiprecision/test/concepts/sf_concept_check_gamma.cpp (original)
+++ trunk/libs/multiprecision/test/concepts/sf_concept_check_gamma.cpp 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -54,7 +54,7 @@
 #include <boost/multiprecision/mpfr.hpp>
 #endif
 #ifdef TEST_LOGGED_ADAPTER
-#include <boost/multiprecision/logged_adapter.hpp>
+#include <boost/multiprecision/logged_adaptor.hpp>
 #endif
 
 #include <boost/math/special_functions.hpp>
@@ -136,7 +136,7 @@
    test_extra(boost::multiprecision::number<boost::multiprecision::cpp_dec_float<100>, boost::multiprecision::et_off>());
 #endif
 #ifdef TEST_LOGGED_ADAPTER
- typedef boost::multiprecision::number<boost::multiprecision::logged_adapter<boost::multiprecision::cpp_dec_float<50> > > num_t;
+ typedef boost::multiprecision::number<boost::multiprecision::logged_adaptor<boost::multiprecision::cpp_dec_float<50> > > num_t;
    test_extra(num_t());
 #endif
 }

Modified: trunk/libs/multiprecision/test/concepts/sf_concept_check_poly.cpp
==============================================================================
--- trunk/libs/multiprecision/test/concepts/sf_concept_check_poly.cpp (original)
+++ trunk/libs/multiprecision/test/concepts/sf_concept_check_poly.cpp 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -54,7 +54,7 @@
 #include <boost/multiprecision/mpfr.hpp>
 #endif
 #ifdef TEST_LOGGED_ADAPTER
-#include <boost/multiprecision/logged_adapter.hpp>
+#include <boost/multiprecision/logged_adaptor.hpp>
 #endif
 
 #include <boost/math/special_functions.hpp>
@@ -109,7 +109,7 @@
    test_extra(boost::multiprecision::number<boost::multiprecision::cpp_dec_float<100>, boost::multiprecision::et_off>());
 #endif
 #ifdef TEST_LOGGED_ADAPTER
- typedef boost::multiprecision::number<boost::multiprecision::logged_adapter<boost::multiprecision::cpp_dec_float<50> > > num_t;
+ typedef boost::multiprecision::number<boost::multiprecision::logged_adaptor<boost::multiprecision::cpp_dec_float<50> > > num_t;
    test_extra(num_t());
 #endif
 }

Modified: trunk/libs/multiprecision/test/coverage/Makefile
==============================================================================
--- trunk/libs/multiprecision/test/coverage/Makefile (original)
+++ trunk/libs/multiprecision/test/coverage/Makefile 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -13,7 +13,7 @@
 ../../../../boost/multiprecision/random.hpp\
 ../../../../boost/multiprecision/cpp_int.hpp\
 ../../../../boost/multiprecision/miller_rabin.hpp\
-../../../../boost/multiprecision/rational_adapter.hpp\
+../../../../boost/multiprecision/rational_adaptor.hpp\
 ../../../../boost/multiprecision/concepts/mp_number_archetypes.hpp\
 ../../../../boost/multiprecision/detail/big_lanczos.hpp\
 ../../../../boost/multiprecision/detail/digits.hpp\

Modified: trunk/libs/multiprecision/test/test_arithmetic_logged_1.cpp
==============================================================================
--- trunk/libs/multiprecision/test/test_arithmetic_logged_1.cpp (original)
+++ trunk/libs/multiprecision/test/test_arithmetic_logged_1.cpp 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -7,13 +7,13 @@
 # define _SCL_SECURE_NO_WARNINGS
 #endif
 
-#include <boost/multiprecision/logged_adapter.hpp>
+#include <boost/multiprecision/logged_adaptor.hpp>
 #include <boost/multiprecision/cpp_dec_float.hpp>
 #include "test_arithmetic.hpp"
 
 int main()
 {
- test<boost::multiprecision::number<boost::multiprecision::logged_adapter<boost::multiprecision::cpp_dec_float<50> > > >();
+ test<boost::multiprecision::number<boost::multiprecision::logged_adaptor<boost::multiprecision::cpp_dec_float<50> > > >();
    return boost::report_errors();
 }
 

Modified: trunk/libs/multiprecision/test/test_arithmetic_logged_2.cpp
==============================================================================
--- trunk/libs/multiprecision/test/test_arithmetic_logged_2.cpp (original)
+++ trunk/libs/multiprecision/test/test_arithmetic_logged_2.cpp 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -7,13 +7,13 @@
 # define _SCL_SECURE_NO_WARNINGS
 #endif
 
-#include <boost/multiprecision/logged_adapter.hpp>
+#include <boost/multiprecision/logged_adaptor.hpp>
 #include <boost/multiprecision/cpp_int.hpp>
 #include "test_arithmetic.hpp"
 
 int main()
 {
- test<boost::multiprecision::number<boost::multiprecision::logged_adapter<boost::multiprecision::cpp_int_backend<> > > >();
+ test<boost::multiprecision::number<boost::multiprecision::logged_adaptor<boost::multiprecision::cpp_int_backend<> > > >();
    return boost::report_errors();
 }
 

Modified: trunk/libs/multiprecision/test/test_arithmetic_mpz.cpp
==============================================================================
--- trunk/libs/multiprecision/test/test_arithmetic_mpz.cpp (original)
+++ trunk/libs/multiprecision/test/test_arithmetic_mpz.cpp 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -8,14 +8,14 @@
 #endif
 
 #include <boost/multiprecision/gmp.hpp>
-#include <boost/multiprecision/rational_adapter.hpp>
+#include <boost/multiprecision/rational_adaptor.hpp>
 
 #include "test_arithmetic.hpp"
 
 int main()
 {
    test<boost::multiprecision::mpz_int>();
- test<boost::multiprecision::number<boost::multiprecision::rational_adapter<boost::multiprecision::gmp_int> > >();
+ test<boost::multiprecision::number<boost::multiprecision::rational_adaptor<boost::multiprecision::gmp_int> > >();
    return boost::report_errors();
 }
 

Modified: trunk/libs/multiprecision/test/test_arithmetic_tommath.cpp
==============================================================================
--- trunk/libs/multiprecision/test/test_arithmetic_tommath.cpp (original)
+++ trunk/libs/multiprecision/test/test_arithmetic_tommath.cpp 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -17,7 +17,7 @@
 int main()
 {
    test<boost::multiprecision::tom_int>();
- test<boost::multiprecision::number<boost::multiprecision::rational_adapter<boost::multiprecision::tommath_int> > >();
+ test<boost::multiprecision::number<boost::multiprecision::rational_adaptor<boost::multiprecision::tommath_int> > >();
    return boost::report_errors();
 }
 

Modified: trunk/libs/multiprecision/test/test_rational_io.cpp
==============================================================================
--- trunk/libs/multiprecision/test/test_rational_io.cpp (original)
+++ trunk/libs/multiprecision/test/test_rational_io.cpp 2013-01-15 06:43:27 EST (Tue, 15 Jan 2013)
@@ -36,7 +36,7 @@
 #include <boost/algorithm/string/case_conv.hpp>
 #include <boost/random/mersenne_twister.hpp>
 #include <boost/random/uniform_int.hpp>
-#include <boost/multiprecision/rational_adapter.hpp>
+#include <boost/multiprecision/rational_adaptor.hpp>
 #include "test.hpp"
 #include <iostream>
 #include <iomanip>
@@ -130,7 +130,7 @@
 #ifdef TEST_MPQ
    test_round_trip<boost::multiprecision::mpq_rational>();
    test_round_trip<boost::rational<boost::multiprecision::mpz_int> >();
- test_round_trip<boost::multiprecision::number<boost::multiprecision::rational_adapter<boost::multiprecision::gmp_int> > >();
+ test_round_trip<boost::multiprecision::number<boost::multiprecision::rational_adaptor<boost::multiprecision::gmp_int> > >();
 #endif
 #ifdef TEST_TOMMATH
    test_round_trip<boost::rational<boost::multiprecision::tom_int> >();


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk