13 #ifndef MLPACK_CORE_UTIL_PREFIXEDOUTSTREAM_HPP
14 #define MLPACK_CORE_UTIL_PREFIXEDOUTSTREAM_HPP
62 destination(destination),
67 carriageReturned(true),
128 typename std::enable_if<!arma::is_arma_type<T>::value>::type
129 BaseLogic(
const T& val);
142 typename std::enable_if<arma::is_arma_type<T>::value>::type
143 BaseLogic(
const T& val);
148 inline void PrefixIfNeeded();
155 bool carriageReturned;
166 #include "prefixedoutstream_impl.hpp"
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.
PrefixedOutStream(std::ostream &destination, const char *prefix, bool ignoreInput=false, bool fatal=false)
Set up the PrefixedOutStream.
std::ostream & destination
The output stream that all data is to be sent too; example: std::cout.
Allows us to output to an ostream with a prefix at the beginning of each line, in the same way we wou...