List of all members | Public Member Functions
casadi::StreamStateGuard Class Reference

#include <casadi_misc.hpp>

Detailed Description

Definition at line 445 of file casadi_misc.hpp.

Public Member Functions

 StreamStateGuard (std::ostream &os)
 
 ~StreamStateGuard ()
 

Constructor & Destructor Documentation

◆ StreamStateGuard()

casadi::StreamStateGuard::StreamStateGuard ( std::ostream &  os)
explicit

Definition at line 430 of file casadi_misc.cpp.

431  : stream_(os),
432  flags_(os.flags()),
433  precision_(os.precision()),
434  width_(os.width()),
435  locale_(os.getloc()) {}

◆ ~StreamStateGuard()

casadi::StreamStateGuard::~StreamStateGuard ( )

Definition at line 437 of file casadi_misc.cpp.

437  {
438  stream_.flags(flags_);
439  stream_.precision(precision_);
440  stream_.width(width_);
441  stream_.imbue(locale_);
442  }

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