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;
std::ostream & destination
The output stream that all data is to be sent to; example: MLPACK_COUT_STREAM.
Definition: prefixedoutstream.hpp:116
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
The core includes that mlpack expects; standard C++ includes and Armadillo.
PrefixedOutStream & operator<<(bool val)
Write a bool to the stream.
Definition: prefixedoutstream.cpp:25
bool ignoreInput
Discards input, prints nothing if true.
Definition: prefixedoutstream.hpp:119
PrefixedOutStream(std::ostream &destination, const char *prefix, bool ignoreInput=false, bool fatal=false, bool backtrace=true)
Set up the PrefixedOutStream.
Definition: prefixedoutstream.hpp:60
Allows us to output to an ostream with a prefix at the beginning of each line, in the same way we wou...
Definition: prefixedoutstream.hpp:46
bool backtrace
If true, on a fatal error, a backtrace will be printed if HAS_BFD_DL is defined.
Definition: prefixedoutstream.hpp:123