17 #ifndef __deal2__logstream_h
18 #define __deal2__logstream_h
20 #include <deal.II/base/config.h>
22 #include <deal.II/base/smartpointer.h>
23 #include <deal.II/base/std_cxx1x/shared_ptr.h>
24 #include <deal.II/base/thread_local_storage.h>
32 #ifdef HAVE_SYS_TIMES_H
33 # include <sys/times.h>
37 int tms_utime, tms_stime, tms_cutime, tms_cstime;
144 Prefix(
const std::string &text);
150 Prefix(
const std::string &text,
182 void attach (std::ostream &o,
183 const bool print_job_id =
true);
245 void push (
const std::string &text);
273 unsigned int depth_file (
const unsigned int n);
345 std::streamsize
precision (
const std::streamsize prec);
353 std::streamsize
width (
const std::streamsize wide);
361 std::ios::fmtflags
flags(
const std::ios::fmtflags f);
568 template <
typename T>
593 outstreams.
get()->setf(std::ios::showpoint | std::ios::left);
613 if (! (t<=0) && !(t>=0))
635 if (! (t<=0) && !(t>=0))
679 DEAL_II_NAMESPACE_CLOSE
std::streamsize precision(const std::streamsize prec)
Threads::ThreadLocalStorage< std_cxx1x::shared_ptr< std::ostringstream > > outstreams
VectorizedArray< Number > log(const ::VectorizedArray< Number > &x)
A class that provides a separate storage location on each thread that accesses the object...
Threads::ThreadLocalStorage< std::stack< std::string > > prefixes
std::stack< std::string > & get_prefixes() const
DeclException0(ExcNoFileStreamGiven)
std::size_t memory_consumption() const
void test_mode(bool on=true)
void threshold_double(const double t)
unsigned int depth_file(const unsigned int n)
std::streamsize width(const std::streamsize wide)
bool log_thread_id(const bool flag)
std::ostream & get_file_stream()
std::streambuf * old_cerr
std::ios::fmtflags flags(const std::ios::fmtflags f)
LogStream & operator<<(const double t)
void threshold_float(const float t)
bool log_time_differences(const bool flag)
unsigned int depth_console(const unsigned int n)
std::ostream & operator<<(std::ostream &out, const SymmetricTensor< 2, dim, Number > &t)
const std::string & get_prefix() const
void attach(std::ostream &o, const bool print_job_id=true)
Prefix(const std::string &text)
std::ostream & get_console()
double reference_time_val
bool log_execution_time(const bool flag)
void push(const std::string &text)
std::ostringstream & get_stream()