23#ifndef VULPES_UTILS_PCOUT_HPP_
24#define VULPES_UTILS_PCOUT_HPP_
54 explicit pcout_t(std::ostream& os = std::cout)
Parallel-aware output stream.
Definition pcout.hpp:47
pcout_t(std::ostream &os=std::cout)
Construct a pcout object.
Definition pcout.hpp:54
pcout_t & level(LogLevel lvl)
Set the log level for the next << only.
Definition pcout.hpp:65
bool shouldPrint() const
Check whether the current message should be printed.
Definition pcout.hpp:135
pcout_t & operator<<(const T &value)
Generic stream output operator.
Definition pcout.hpp:74
pcout_t & operator<<(std::ios &(*pf)(std::ios &))
Definition pcout.hpp:93
void flush()
Explicitly flush the underlying stream.
Definition pcout.hpp:112
LogLevel msg_level_
Definition pcout.hpp:150
void resetMessageLevel()
Reset the message log level to INFO.
Definition pcout.hpp:146
static constexpr LogLevel defaultLogLevel()
Default log level depending on build type.
Definition pcout.hpp:124
pcout_t & operator<<(std::ostream &(*pf)(std::ostream &))
Stream manipulators (e.g. std::endl, std::fixed).
Definition pcout.hpp:85
std::ostream * os_
Definition pcout.hpp:148
pcout_t & operator<<(std::ios_base &(*pf)(std::ios_base &))
Definition pcout.hpp:101
LogLevel current_level_
Definition pcout.hpp:149
static bool root()
Return true if the rank in MPI_COMM_WORLD is zero.
Definition mpi_wrappers.hpp:132
static bool isInitialized()
Return true if MPI has been initialized.
Definition mpi_wrappers.hpp:92
LogLevel
Logging levels supported by pcout.
Definition pcout.hpp:37
@ INFO
Definition pcout.hpp:37
@ ERROR
Definition pcout.hpp:37
@ DEBUG
Definition pcout.hpp:37
pcout_t pcout
Definition pcout.hpp:154
Definition cell_manager.hpp:38
vulpes::utils::pcout_t & pcout
Definition pcout.hpp:160