13 #ifndef MLPACK_CORE_UTIL_PREFIXEDOUTSTREAM_HPP 14 #define MLPACK_CORE_UTIL_PREFIXEDOUTSTREAM_HPP 65 destination(destination),
71 carriageReturned(true),
137 typename std::enable_if<!arma::is_arma_type<T>::value>::type
138 BaseLogic(
const T& val);
151 typename std::enable_if<arma::is_arma_type<T>::value>::type
152 BaseLogic(
const T& val);
157 inline void PrefixIfNeeded();
164 bool carriageReturned;
175 #include "prefixedoutstream_impl.hpp" bool backtrace
If true, on a fatal error, a backtrace will be printed if HAS_BFD_DL is defined.
Linear algebra utility functions, generally performed on matrices or vectors.
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: MLPACK_COUT_STREAM.
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...