34#include "soplex/fmt.hpp"
165 std::ostream& stream)
187 stream << std::setprecision(
precision) << std::scientific;
193 stream << std::setprecision(
precision) << std::fixed;
199 template <
typename T,
typename... Args,
200 typename std::enable_if <
201 !std::is_base_of<EnableDebugOutput, T>::value,
int >::type = 0 >
207 template <
typename T,
typename... Args,
208 typename std::enable_if<
209 std::is_base_of<EnableDebugOutput, T>::value,
int>::type = 0>
213 fmt::print(std::forward<Args>(args)...);
350 std::ostream & (*manip)(std::ostream&))
Wrapper for several output streams. A verbosity level is used to decide which stream to use and wheth...
std::ostream ** m_streams
array of pointers to internal streams, indexed by verbosity level
Verbosity getVerbosity() const
std::ostream & getStream(const Verbosity &verbosity) const
Returns the stream for the specified verbosity level.
std::streamsize precision() const
SPxOut & operator=(const SPxOut &)
assignment operator
static void setFixed(std::ostream &stream, int precision=8)
Sets the precision of the stream to 8 and the floatfield to fixed.
virtual void setVerbosity(const Verbosity &v)
Verbosity
Verbosity level.
std::ostream & getCurrentStream() const
Returns the stream for the current verbosity.
virtual void setStream(const Verbosity &verbosity, std::ostream &stream)
Sets the stream for the specified verbosity level.
virtual ~SPxOut()
destructor
static void debug(const T *, Args &&... args)
Verbosity m_verbosity
verbosity level
static void setScientific(std::ostream &stream, int precision=8)
Sets the precision of the stream to 16 and the floatfield to scientifix.
Everything should be within this namespace.
std::ostream & operator<<(std::ostream &s, const VectorBase< R > &vec)
Output operator.
SPxOut::struct_Verbosity verb(const SPxOut::Verbosity &v)
manipulator to be used in an output statement
Debugging, floating point type and parameter definitions.
helper struct for the output operator
Verbosity v_
verbosity level