Logo ROOT  
Reference Guide
ROOT::Minuit2::MnPrint Class Reference

Definition at line 73 of file MnPrint.h.

Classes

class  Oneline
 

Public Types

enum  Verbosity { Verbosity::Error = 0, Verbosity::Warn = 1, Verbosity::Info = 2, Verbosity::Debug = 3 }
 

Public Member Functions

 MnPrint (const char *prefix, int level=MnPrint::GlobalLevel())
 
 ~MnPrint ()
 
template<class... Ts>
void Debug (const Ts &... args)
 
template<class... Ts>
void Error (const Ts &... args)
 
template<class... Ts>
void Info (const Ts &... args)
 
int Level () const
 
int SetLevel (int level)
 
template<class... Ts>
void Warn (const Ts &... args)
 

Static Public Member Functions

static void AddFilter (const char *prefix)
 
static void ClearFilter ()
 
static int GlobalLevel ()
 
static int SetGlobalLevel (int level)
 
static void ShowPrefixStack (bool yes)
 

Static Public Attributes

static constexpr auto eDebug = Verbosity::Debug
 
static constexpr auto eError = Verbosity::Error
 
static constexpr auto eInfo = Verbosity::Info
 
static constexpr auto eWarn = Verbosity::Warn
 

Private Member Functions

template<class... Ts>
void Log (Verbosity level, const Ts &... args)
 

Static Private Member Functions

template<class T >
static void HandleLambda (std::ostream &os, const T &t, float)
 
template<class T >
static auto HandleLambda (std::ostream &os, const T &t, int) -> decltype(t(os), void())
 
static bool Hidden ()
 
static void Impl (Verbosity level, const std::string &s)
 
static void StreamArgs (std::ostringstream &)
 
template<class T >
static void StreamArgs (std::ostringstream &os, const T &t)
 
template<class T , class... Ts>
static void StreamArgs (std::ostringstream &os, const T &t, const Ts &... ts)
 
static void StreamPrefix (std::ostringstream &os)
 

Private Attributes

int fLevel
 

#include <Minuit2/MnPrint.h>

Member Enumeration Documentation

◆ Verbosity

Enumerator
Error 
Warn 
Info 
Debug 

Definition at line 76 of file MnPrint.h.

Constructor & Destructor Documentation

◆ MnPrint()

ROOT::Minuit2::MnPrint::MnPrint ( const char *  prefix,
int  level = MnPrint::GlobalLevel() 
)

Definition at line 88 of file MnPrint.cxx.

◆ ~MnPrint()

ROOT::Minuit2::MnPrint::~MnPrint ( )

Definition at line 93 of file MnPrint.cxx.

Member Function Documentation

◆ AddFilter()

void ROOT::Minuit2::MnPrint::AddFilter ( const char *  prefix)
static

Definition at line 103 of file MnPrint.cxx.

◆ ClearFilter()

void ROOT::Minuit2::MnPrint::ClearFilter ( )
static

Definition at line 108 of file MnPrint.cxx.

◆ Debug()

template<class... Ts>
void ROOT::Minuit2::MnPrint::Debug ( const Ts &...  args)
inline

Definition at line 138 of file MnPrint.h.

◆ Error()

template<class... Ts>
void ROOT::Minuit2::MnPrint::Error ( const Ts &...  args)
inline

Definition at line 120 of file MnPrint.h.

◆ GlobalLevel()

int ROOT::Minuit2::MnPrint::GlobalLevel ( )
static

Definition at line 120 of file MnPrint.cxx.

◆ HandleLambda() [1/2]

template<class T >
static void ROOT::Minuit2::MnPrint::HandleLambda ( std::ostream &  os,
const T &  t,
float   
)
inlinestaticprivate

Definition at line 175 of file MnPrint.h.

◆ HandleLambda() [2/2]

template<class T >
static auto ROOT::Minuit2::MnPrint::HandleLambda ( std::ostream &  os,
const T &  t,
int   
) -> decltype(t(os), void())
inlinestaticprivate

Definition at line 169 of file MnPrint.h.

◆ Hidden()

bool ROOT::Minuit2::MnPrint::Hidden ( )
staticprivate

Definition at line 160 of file MnPrint.cxx.

◆ Impl()

void MnPrint::Impl ( MnPrint::Verbosity  level,
const std::string &  s 
)
staticprivate

Definition at line 13 of file MnPrintImpl.cxx.

◆ Info()

template<class... Ts>
void ROOT::Minuit2::MnPrint::Info ( const Ts &...  args)
inline

Definition at line 132 of file MnPrint.h.

◆ Level()

int ROOT::Minuit2::MnPrint::Level ( ) const

Definition at line 132 of file MnPrint.cxx.

◆ Log()

template<class... Ts>
void ROOT::Minuit2::MnPrint::Log ( Verbosity  level,
const Ts &...  args 
)
inlineprivate

Definition at line 146 of file MnPrint.h.

◆ SetGlobalLevel()

int ROOT::Minuit2::MnPrint::SetGlobalLevel ( int  level)
static

Definition at line 113 of file MnPrint.cxx.

◆ SetLevel()

int ROOT::Minuit2::MnPrint::SetLevel ( int  level)

Definition at line 125 of file MnPrint.cxx.

◆ ShowPrefixStack()

void ROOT::Minuit2::MnPrint::ShowPrefixStack ( bool  yes)
static

Definition at line 98 of file MnPrint.cxx.

◆ StreamArgs() [1/3]

static void ROOT::Minuit2::MnPrint::StreamArgs ( std::ostringstream &  )
inlinestaticprivate

Definition at line 180 of file MnPrint.h.

◆ StreamArgs() [2/3]

template<class T >
static void ROOT::Minuit2::MnPrint::StreamArgs ( std::ostringstream &  os,
const T &  t 
)
inlinestaticprivate

Definition at line 184 of file MnPrint.h.

◆ StreamArgs() [3/3]

template<class T , class... Ts>
static void ROOT::Minuit2::MnPrint::StreamArgs ( std::ostringstream &  os,
const T &  t,
const Ts &...  ts 
)
inlinestaticprivate

Definition at line 191 of file MnPrint.h.

◆ StreamPrefix()

void ROOT::Minuit2::MnPrint::StreamPrefix ( std::ostringstream &  os)
staticprivate

Definition at line 149 of file MnPrint.cxx.

◆ Warn()

template<class... Ts>
void ROOT::Minuit2::MnPrint::Warn ( const Ts &...  args)
inline

Definition at line 126 of file MnPrint.h.

Member Data Documentation

◆ eDebug

constexpr auto ROOT::Minuit2::MnPrint::eDebug = Verbosity::Debug
staticconstexpr

Definition at line 82 of file MnPrint.h.

◆ eError

constexpr auto ROOT::Minuit2::MnPrint::eError = Verbosity::Error
staticconstexpr

Definition at line 79 of file MnPrint.h.

◆ eInfo

constexpr auto ROOT::Minuit2::MnPrint::eInfo = Verbosity::Info
staticconstexpr

Definition at line 81 of file MnPrint.h.

◆ eWarn

constexpr auto ROOT::Minuit2::MnPrint::eWarn = Verbosity::Warn
staticconstexpr

Definition at line 80 of file MnPrint.h.

◆ fLevel

int ROOT::Minuit2::MnPrint::fLevel
private

Definition at line 197 of file MnPrint.h.

Libraries for ROOT::Minuit2::MnPrint:
[legend]

The documentation for this class was generated from the following files: