20 #ifndef LIBMESH_OSTREAM_PROXY_H 21 #define LIBMESH_OSTREAM_PROXY_H 41 template <
typename charT=
char,
typename traits=std::
char_traits<
charT>>
49 typedef std::basic_ostream<charT,traits>
streamT;
116 (*_target) << in;
return *
this;
123 (*_target) << in;
return *
this;
129 BasicOStreamProxy & operator<< (std::basic_ios<charT,traits> & (*in)(std::basic_ios<charT,traits> &)) {
130 (*_target) << in;
return *
this;
137 (*_target) << in;
return *
this;
158 std::ios_base::fmtflags
flags ( )
const 164 std::ios_base::fmtflags
flags ( std::ios_base::fmtflags fmtfl )
165 {
return _target->flags(fmtfl); }
170 std::ios_base::fmtflags
setf ( std::ios_base::fmtflags fmtfl )
171 {
return _target->setf(fmtfl); }
176 std::ios_base::fmtflags
setf ( std::ios_base::fmtflags fmtfl,
177 std::ios_base::fmtflags mask )
178 {
return _target->setf(fmtfl, mask); }
183 void unsetf ( std::ios_base::fmtflags mask )
190 {
return _target->precision(); }
196 {
return _target->precision(prec); }
236 #endif // LIBMESH_OSTREAM_PROXY_H std::ios_base::fmtflags flags(std::ios_base::fmtflags fmtfl)
BasicOStreamProxy & operator<<(const T &in)
std::basic_ostream< charT, traits > streamT
std::streamsize precision() const
void reset(streamT &target)
streambufT * rdbuf(streambufT *sb)
std::basic_streambuf< charT, traits > streambufT
BasicOStreamProxy OStreamProxy
void unsetf(std::ios_base::fmtflags mask)
streambufT * rdbuf() const
BasicOStreamProxy(streamT &target)
BasicOStreamProxy & flush()
std::ios_base::fmtflags flags() const
std::ios_base::fmtflags setf(std::ios_base::fmtflags fmtfl)
BasicOStreamProxy(BasicOStreamProxy &old)
std::streamsize precision(std::streamsize prec)
BasicOStreamProxy & operator=(streamT &target)
std::ios_base::fmtflags setf(std::ios_base::fmtflags fmtfl, std::ios_base::fmtflags mask)