#include <ostream_mat.hpp>
Public Member Functions | |
arma_ostream_state (const std::ostream &o) | |
void | restore (std::ostream &o) const |
Private Attributes | |
const ios::fmtflags | orig_flags |
const std::streamsize | orig_precision |
const std::streamsize | orig_width |
const char | orig_fill |
Definition at line 19 of file ostream_mat.hpp.
arma_ostream_state::arma_ostream_state | ( | const std::ostream & | o | ) | [inline] |
Definition at line 32 of file ostream_mat.hpp.
00033 : orig_flags (o.flags()) 00034 , orig_precision(o.precision()) 00035 , orig_width (o.width()) 00036 , orig_fill (o.fill()) 00037 { 00038 }
void arma_ostream_state::restore | ( | std::ostream & | o | ) | const [inline] |
Definition at line 43 of file ostream_mat.hpp.
References orig_fill, orig_flags, orig_precision, and orig_width.
Referenced by arma_ostream::print().
00044 { 00045 o.flags (orig_flags); 00046 o.precision(orig_precision); 00047 o.width (orig_width); 00048 o.fill (orig_fill); 00049 }
const ios::fmtflags arma_ostream_state::orig_flags [private] |
const std::streamsize arma_ostream_state::orig_precision [private] |
const std::streamsize arma_ostream_state::orig_width [private] |
const char arma_ostream_state::orig_fill [private] |