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

#include <casadi_misc.hpp>

Detailed Description

Definition at line 430 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 414 of file casadi_misc.cpp.

415  : stream_(os),
416  flags_(os.flags()),
417  precision_(os.precision()),
418  width_(os.width()),
419  locale_(os.getloc()) {}

◆ ~StreamStateGuard()

casadi::StreamStateGuard::~StreamStateGuard ( )

Definition at line 421 of file casadi_misc.cpp.

421  {
422  stream_.flags(flags_);
423  stream_.precision(precision_);
424  stream_.width(width_);
425  stream_.imbue(locale_);
426  }

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