Message accumulator for Search::report() - collects one progress message exactly as an std::ostringstream would, for delivery either to an attached Search_Observer or to the search's output stream. More...
#include <search.hpp>
Public Member Functions | |
| template<class T> | |
| msgbuf & | operator<< (const T &t) |
appends t via std::ostringstream's own operator<<, like building any ostream message | |
| msgbuf & | operator<< (std::ostream &(*manip)(std::ostream &)) |
| applies a stream manipulator (std::endl, std::flush) to the accumulator | |
| std::ostream & | stream () |
| for legacy print(std::ostream&)-style helpers appending into the message | |
| std::string | str () const |
| the accumulated message text, as passed to Search_Observer::on_progress()/on_solution() | |
Private Attributes | |
| std::ostringstream | _s |
| the underlying accumulator every operator<< overload writes into | |
Message accumulator for Search::report() - collects one progress message exactly as an std::ostringstream would, for delivery either to an attached Search_Observer or to the search's output stream.