]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move variable to other variables. Fix and augment documentation.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 4 Feb 2004 20:18:14 +0000 (20:18 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 4 Feb 2004 20:18:14 +0000 (20:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@8396 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/logstream.h

index 630524541683d20496fa9e26768462c7dc54b8c5..b9480771dead3ac8123271256d8a6b839c255d90 100644 (file)
@@ -96,7 +96,7 @@ class LogStream
                                      * Reroutes cerr to LogStream.
                                      * Works as a switch, turning
                                      * logging of <tt>cerr</tt> on
-                                     * and of alternatingly with
+                                     * and off alternatingly with
                                      * every call.
                                      */
     void log_cerr ();
@@ -300,6 +300,18 @@ class LogStream
                                      * Time of last output line.
                                      */
     double last_time;
+
+                                    /**
+                                     * Original buffer of
+                                     * <tt>std::cerr</tt>. We store
+                                     * the address of that buffer
+                                     * when #log_cerr is called, and
+                                     * reset it to this value if
+                                     * #log_cerr is called a second
+                                     * time, or when the destructor
+                                     * of this class is run.
+                                     */
+    std::ostream::__streambuf_type* old_cerr;
       
                                      /**
                                      * Print head of line. This prints
@@ -317,12 +329,6 @@ class LogStream
                                      */
     template <typename T>
     void print (const T &t);
-                                    /**
-                                     * Original buffer of
-                                     * <tt>cerr</tt> in order to
-                                     * leave this class properly.
-                                     */
-    std::ostream::__streambuf_type* old_cerr;
 };
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.