Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Minuit2::MnPrint Class Reference

Definition at line 73 of file MnPrint.h.

Classes

class  Oneline
 

Public Types

enum class  Verbosity {
  Error = 0 , Warn = 1 , Info = 2 , Debug = 3 ,
  Trace = 4
}
 

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 Trace (const Ts &... args)
 
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 MaxNP ()
 
static int SetGlobalLevel (int level)
 
static int SetMaxNP (int value)
 
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 eTrace = Verbosity::Trace
 
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 
Trace 

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 90 of file MnPrint.cxx.

◆ ~MnPrint()

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

Definition at line 95 of file MnPrint.cxx.

Member Function Documentation

◆ AddFilter()

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

Definition at line 105 of file MnPrint.cxx.

◆ ClearFilter()

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

Definition at line 110 of file MnPrint.cxx.

◆ Debug()

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

Definition at line 147 of file MnPrint.h.

◆ Error()

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

Definition at line 129 of file MnPrint.h.

◆ GlobalLevel()

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

Definition at line 122 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 190 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 184 of file MnPrint.h.

◆ Hidden()

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

Definition at line 173 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 141 of file MnPrint.h.

◆ Level()

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

Definition at line 134 of file MnPrint.cxx.

◆ Log()

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

Definition at line 161 of file MnPrint.h.

◆ MaxNP()

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

Definition at line 145 of file MnPrint.cxx.

◆ SetGlobalLevel()

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

Definition at line 115 of file MnPrint.cxx.

◆ SetLevel()

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

Definition at line 127 of file MnPrint.cxx.

◆ SetMaxNP()

int ROOT::Minuit2::MnPrint::SetMaxNP ( int  value)
static

Definition at line 139 of file MnPrint.cxx.

◆ ShowPrefixStack()

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

Definition at line 100 of file MnPrint.cxx.

◆ StreamArgs() [1/3]

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

Definition at line 195 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 199 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 206 of file MnPrint.h.

◆ StreamPrefix()

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

Definition at line 162 of file MnPrint.cxx.

◆ Trace()

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

Definition at line 153 of file MnPrint.h.

◆ Warn()

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

Definition at line 135 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.

◆ eTrace

constexpr auto ROOT::Minuit2::MnPrint::eTrace = Verbosity::Trace
staticconstexpr

Definition at line 83 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 212 of file MnPrint.h.

Libraries for ROOT::Minuit2::MnPrint:

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