13 #ifndef MLPACK_CORE_UTIL_PREFIXEDOUTSTREAM_HPP 14 #define MLPACK_CORE_UTIL_PREFIXEDOUTSTREAM_HPP 65 destination(destination),
71 carriageReturned(true),
136 typename std::enable_if<!arma::is_arma_type<T>::value>::type
137 BaseLogic(
const T& val);
150 typename std::enable_if<arma::is_arma_type<T>::value>::type
151 BaseLogic(
const T& val);
156 inline void PrefixIfNeeded();
163 bool carriageReturned;
174 #include "prefixedoutstream_impl.hpp" bool backtrace
If true, on a fatal error, a backtrace will be printed if HAS_BFD_DL is defined.
The core includes that mlpack expects; standard C++ includes and Armadillo.
PrefixedOutStream & operator<<(bool val)
Write a bool to the stream.
bool ignoreInput
Discards input, prints nothing if true.
std::ostream & destination
The output stream that all data is to be sent to; example: std::cout.
PrefixedOutStream(std::ostream &destination, const char *prefix, bool ignoreInput=false, bool fatal=false, bool backtrace=true)
Set up the PrefixedOutStream.
Allows us to output to an ostream with a prefix at the beginning of each line, in the same way we wou...