From 6827949faf215bbe238612ebe1de8d27afcc4957 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 4 Feb 2004 20:18:14 +0000 Subject: [PATCH] Move variable to other variables. Fix and augment documentation. git-svn-id: https://svn.dealii.org/trunk@8396 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/logstream.h | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/deal.II/base/include/base/logstream.h b/deal.II/base/include/base/logstream.h index 6305245416..b9480771de 100644 --- a/deal.II/base/include/base/logstream.h +++ b/deal.II/base/include/base/logstream.h @@ -96,7 +96,7 @@ class LogStream * Reroutes cerr to LogStream. * Works as a switch, turning * logging of cerr 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 + * std::cerr. 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 void print (const T &t); - /** - * Original buffer of - * cerr in order to - * leave this class properly. - */ - std::ostream::__streambuf_type* old_cerr; }; -- 2.39.5