$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r74687 - trunk/boost/chrono/stopwatches/formatters
From: vicente.botet_at_[hidden]
Date: 2011-10-04 06:19:29
Author: viboes
Date: 2011-10-04 06:19:28 EDT (Tue, 04 Oct 2011)
New Revision: 74687
URL: http://svn.boost.org/trac/boost/changeset/74687
Log:
Chrono: indent
Text files modified: 
   trunk/boost/chrono/stopwatches/formatters/accumulator_set_formatter.hpp |    79 ++++++++++++++++++++------------------- 
   1 files changed, 41 insertions(+), 38 deletions(-)
Modified: trunk/boost/chrono/stopwatches/formatters/accumulator_set_formatter.hpp
==============================================================================
--- trunk/boost/chrono/stopwatches/formatters/accumulator_set_formatter.hpp	(original)
+++ trunk/boost/chrono/stopwatches/formatters/accumulator_set_formatter.hpp	2011-10-04 06:19:28 EDT (Tue, 04 Oct 2011)
@@ -37,7 +37,8 @@
     template<typename Ratio = milli, typename CharT = char,
         typename Traits = std::char_traits<CharT>,
         class Alloc = std::allocator<CharT> >
-    class basic_accumulator_set_formatter: public base_formatter<CharT, Traits>, public basic_format<CharT, Traits>
+    class basic_accumulator_set_formatter: public base_formatter<CharT, Traits> , public basic_format<
+        CharT, Traits>
     {
 
     public:
@@ -48,16 +49,17 @@
       typedef std::basic_ostream<CharT, Traits> ostream_type;
 
       basic_accumulator_set_formatter() :
-        base_type(),
-        format_type(BOOST_CHRONO_STOPWATCHES_ACCUMULATOR_SET_FORMAT_DEFAULT)
+            base_type(),
+            format_type(BOOST_CHRONO_STOPWATCHES_ACCUMULATOR_SET_FORMAT_DEFAULT)
       {
       }
       basic_accumulator_set_formatter(ostream_type& os) :
-        base_type(os),
-        format_type(BOOST_CHRONO_STOPWATCHES_ACCUMULATOR_SET_FORMAT_DEFAULT)
+            base_type(os),
+            format_type(BOOST_CHRONO_STOPWATCHES_ACCUMULATOR_SET_FORMAT_DEFAULT)
       {
       }
-      basic_accumulator_set_formatter(const char* fmt, ostream_type& os = std::cout) :
+      basic_accumulator_set_formatter(const char* fmt, ostream_type& os =
+          std::cout) :
         base_type(os), format_type(fmt)
       {
       }
@@ -67,49 +69,50 @@
       {
       }
 
-//      static string_type format(const char* s)
-//      {
-//        string_type res(s);
-//        res += boost::chrono::detail::adaptive_string(" : ");
-//        res += BOOST_CHRONO_STOPWATCHES_ACCUMULATOR_SET_FORMAT_DEFAULT;
-//        return res;
-//      }
+      //      static string_type format(const char* s)
+      //      {
+      //        string_type res(s);
+      //        res += boost::chrono::detail::adaptive_string(" : ");
+      //        res += BOOST_CHRONO_STOPWATCHES_ACCUMULATOR_SET_FORMAT_DEFAULT;
+      //        return res;
+      //      }
 
       template<class Stopwatch>
-      void operator()(Stopwatch & stopwatch_, system::error_code & ec= BOOST_CHRONO_THROWS)
+      void operator()(Stopwatch & stopwatch_, system::error_code & ec =
+          BOOST_CHRONO_THROWS)
       {
 
-
-        typedef typename Stopwatch::laps_collector::storage_type laps_collector_acc;
-        laps_collector_acc const& acc = stopwatch_.get_laps_collector().accumulator_set();
+        typedef typename Stopwatch::laps_collector::storage_type
+            laps_collector_acc;
+        laps_collector_acc const& acc =
+            stopwatch_.get_laps_collector().accumulator_set();
 
         typedef typename Stopwatch::duration duration_t;
 
-        this->os_ << static_cast<format_type&>(*this)
-        % boost::accumulators::count(acc)
-        % io::group(std::fixed, std::setprecision(this->precision_), duration_fmt(this->duration_style_),
-            (boost::accumulators::count(acc)==0) ? boost::chrono::duration<double, Ratio>(duration_t::zero()) :
-                boost::chrono::duration<
-            double, Ratio>(duration_t(boost::accumulators::sum(acc))))
-        % io::group(std::fixed, std::setprecision(this->precision_), duration_fmt(this->duration_style_),
-            (boost::accumulators::count(acc)==0) ? boost::chrono::duration<double, Ratio>(duration_t::zero()) :
-            boost::chrono::duration<
-            double, Ratio>(duration_t((boost::accumulators::min)(acc))))
-        % io::group(std::fixed, std::setprecision(this->precision_), duration_fmt(this->duration_style_),
-            (boost::accumulators::count(acc)==0) ? boost::chrono::duration<double, Ratio>(duration_t::zero()) :
-            boost::chrono::duration<
-            double, Ratio>(duration_t((boost::accumulators::max)(acc))))
-        % io::group(std::fixed, std::setprecision(this->precision_), duration_fmt(this->duration_style_), ((boost::accumulators::count(acc)
-            > 0) ? boost::chrono::duration<double, Ratio>(duration_t(boost::accumulators::sum(acc)
-            / boost::accumulators::count(acc))) : boost::chrono::duration<
-            double, Ratio>(duration_t::zero())))
-        ;
+        this->os_
+            << static_cast<format_type&> (*this)
+                % boost::accumulators::count(acc)
+                % io::group(std::fixed, std::setprecision(this->precision_), duration_fmt(this->duration_style_), (boost::accumulators::count(acc)
+                    == 0) ? boost::chrono::duration<double, Ratio>(duration_t::zero()) : boost::chrono::duration<
+                    double, Ratio>(duration_t(boost::accumulators::sum(acc))))
+                % io::group(std::fixed, std::setprecision(this->precision_), duration_fmt(this->duration_style_), (boost::accumulators::count(acc)
+                    == 0) ? boost::chrono::duration<double, Ratio>(duration_t::zero()) : boost::chrono::duration<
+                    double, Ratio>(duration_t((boost::accumulators::min)(acc))))
+                % io::group(std::fixed, std::setprecision(this->precision_), duration_fmt(this->duration_style_), (boost::accumulators::count(acc)
+                    == 0) ? boost::chrono::duration<double, Ratio>(duration_t::zero()) : boost::chrono::duration<
+                    double, Ratio>(duration_t((boost::accumulators::max)(acc))))
+                % io::group(std::fixed, std::setprecision(this->precision_), duration_fmt(this->duration_style_), ((boost::accumulators::count(acc)
+                    > 0) ? boost::chrono::duration<double, Ratio>(duration_t(boost::accumulators::sum(acc)
+                    / boost::accumulators::count(acc))) : boost::chrono::duration<
+                    double, Ratio>(duration_t::zero())));
 
       }
     };
 
-    typedef basic_accumulator_set_formatter<milli, char> accumulator_set_formatter;
-    typedef basic_accumulator_set_formatter<milli, wchar_t> waccumulator_set_formatter;
+    typedef basic_accumulator_set_formatter<milli, char>
+        accumulator_set_formatter;
+    typedef basic_accumulator_set_formatter<milli, wchar_t>
+        waccumulator_set_formatter;
 
   } // namespace chrono
 } // namespace boost