arma_ostream_state Class Reference
[Ostream]

#include <ostream_mat.hpp>

List of all members.

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


Detailed Description

Definition at line 19 of file ostream_mat.hpp.


Constructor & Destructor Documentation

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    }


Member Function Documentation

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     }


Member Data Documentation

const ios::fmtflags arma_ostream_state::orig_flags [private]

Definition at line 23 of file ostream_mat.hpp.

Referenced by restore().

const std::streamsize arma_ostream_state::orig_precision [private]

Definition at line 24 of file ostream_mat.hpp.

Referenced by restore().

const std::streamsize arma_ostream_state::orig_width [private]

Definition at line 25 of file ostream_mat.hpp.

Referenced by restore().

const char arma_ostream_state::orig_fill [private]

Definition at line 26 of file ostream_mat.hpp.

Referenced by restore().