MADNESS  0.10.1
Public Member Functions | Public Attributes | List of all members
madness::MacroTask< taskT >::io_redirect Struct Reference

RAII class to redirect cout to a file. More...

Public Member Functions

 io_redirect (const long task_number, std::string filename, bool debug=false)
 
 ~io_redirect ()
 

Public Attributes

bool debug =false
 
std::ofstream ofile
 
std::streambuf * stream_buffer_cout
 

Detailed Description

template<typename taskT>
struct madness::MacroTask< taskT >::io_redirect

RAII class to redirect cout to a file.

Constructor & Destructor Documentation

◆ io_redirect()

template<typename taskT >
madness::MacroTask< taskT >::io_redirect::io_redirect ( const long  task_number,
std::string  filename,
bool  debug = false 
)
inline

◆ ~io_redirect()

template<typename taskT >
madness::MacroTask< taskT >::io_redirect::~io_redirect ( )
inline

Member Data Documentation

◆ debug

template<typename taskT >
bool madness::MacroTask< taskT >::io_redirect::debug =false

◆ ofile

template<typename taskT >
std::ofstream madness::MacroTask< taskT >::io_redirect::ofile

◆ stream_buffer_cout

template<typename taskT >
std::streambuf* madness::MacroTask< taskT >::io_redirect::stream_buffer_cout

The documentation for this struct was generated from the following file: