Public Member Functions

LogStream::Prefix Class Reference

List of all members.

Public Member Functions

 Prefix (const std::string &text)
 Prefix (const std::string &text, LogStream &stream)
 ~Prefix ()

Detailed Description

A subclass allowing for the safe generation and removal of prefices.

Somewhere at the beginning of a block, create one of these objects, and it will appear as a prefix in LogStream output like deallog. At the end of the block, the prefix will automatically be removed, when this object is destroyed.

Definition at line 103 of file logstream.h.


Constructor & Destructor Documentation

LogStream::Prefix::Prefix ( const std::string &  text) [inline]

Set a new prefix for deallog, which will be removed when the variable is destroyed .

Definition at line 727 of file logstream.h.

LogStream::Prefix::Prefix ( const std::string &  text,
LogStream stream 
) [inline]

Set a new prefix for the given stream, which will be removed when the variable is destroyed .

Definition at line 702 of file logstream.h.

LogStream::Prefix::~Prefix ( ) [inline]

Remove the prefix associated with this variable.

Definition at line 711 of file logstream.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Thu May 17 2012 20:05:31 by doxygen 1.7.3