TPIE

v1.1rc1-6-g0c97303
tpie::logmanip< TP > Class Template Reference

The logmanip template is based on the omanip template from iomanip.h in the libg++ sources. More...

#include <tpie/logstream.h>

Public Member Functions

 logmanip (logstream &(*f)(logstream &, TP), TP a)
 Constructor. More...
 

Friends

logstreamoperator<< (logstream &o, const logmanip< TP > &m)
 Extracts a message from the logmanip object and inserting it into the logstream o. More...
 

Detailed Description

template<class TP>
class tpie::logmanip< TP >

The logmanip template is based on the omanip template from iomanip.h in the libg++ sources.

Definition at line 110 of file logstream.h.

Constructor & Destructor Documentation

template<class TP >
tpie::logmanip< TP >::logmanip ( logstream &(*)(logstream &, TP)  f,
TP  a 
)
inline

Constructor.

Definition at line 117 of file logstream.h.

117 : _f(f), _a(a) {}

Friends And Related Function Documentation

template<class TP >
logstream& operator<< ( logstream o,
const logmanip< TP > &  m 
)
friend

Extracts a message from the logmanip object and inserting it into the logstream o.

Definition at line 123 of file logstream.h.

123  {
124  (*m._f)(o, m._a);
125  return o;
126  }

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