clang-tags
C/C++ source code indexing tool based on libclang
 All Classes Functions Variables Typedefs Groups Pages
Public Member Functions | List of all members
Tee Class Reference

Output stream duplicator. More...

#include <util.hxx>

Public Member Functions

 Tee (std::ostream &stream1, std::ostream &stream2)
 Constructor.
template<typename T >
Teeoperator<< (T x)
 Output stream operator.
Teeoperator<< (std::ostream &(*x)(std::ostream &))
 Output stream operator.

Detailed Description

Output stream duplicator.

Stream which duplicates its output to two streams.

Example use:

Constructor & Destructor Documentation

Tee::Tee ( std::ostream &  stream1,
std::ostream &  stream2 
)
inline

Constructor.

Parameters
stream1first stream to duplicate output to
stream2second stream to duplicate output to

Member Function Documentation

template<typename T >
Tee& Tee::operator<< ( x)
inline

Output stream operator.

Duplicate output to the two provided streams.

Parameters
xthing to ouput
Returns
the tee itself
Tee& Tee::operator<< ( std::ostream &(*)(std::ostream &)  x)
inline

Output stream operator.

Duplicate output to the two provided streams.

Parameters
xstream manipulator to forward
Returns
the tee itself

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