Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SpacingLogger Class Reference

Detailed Description

A logging class which outputs spaces between elements pushed via operator<<.

Depending on the real parameter the output may be suppressed.

Definition at line 132 of file logger.hpp.

#include <logger.hpp>

Public Member Functions

 SpacingLogger ()
 
 ~SpacingLogger ()
 destructor: output a newline More...
 
template<typename AnyType >
SpacingLoggeroperator<< (const AnyType &at)
 output any type, including io manipulators More...
 

Private Attributes

bool first_ = true
 true until the first element it outputted. More...
 
mem::safe_ostringstream oss_
 collector stream More...
 

Constructor & Destructor Documentation

destructor: output a newline

Definition at line 156 of file logger.cpp.

References SpacingLogger::oss_, and Logger::Output().

Member Function Documentation

SpacingLogger& operator<< ( const AnyType &  at)
inline

output any type, including io manipulators

Definition at line 146 of file logger.hpp.

References SpacingLogger::first_, and SpacingLogger::oss_.

Member Data Documentation

bool first_ = true
private

true until the first element it outputted.

Definition at line 136 of file logger.hpp.

Referenced by SpacingLogger::operator<<().

collector stream

Definition at line 139 of file logger.hpp.

Referenced by SpacingLogger::operator<<(), SpacingLogger::SpacingLogger(), and SpacingLogger::~SpacingLogger().


The documentation for this class was generated from the following files: