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

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

Constructor & Destructor Documentation

◆ MnPrint()

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

Definition at line 86 of file MnPrint.cxx.

◆ ~MnPrint()

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

Definition at line 91 of file MnPrint.cxx.

Member Function Documentation

◆ AddFilter()

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

Definition at line 101 of file MnPrint.cxx.

◆ ClearFilter()

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

Definition at line 106 of file MnPrint.cxx.

◆ Debug()

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

Definition at line 135 of file MnPrint.h.

◆ Error()

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

Definition at line 117 of file MnPrint.h.

◆ GlobalLevel()

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

Definition at line 118 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 178 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 172 of file MnPrint.h.

◆ Hidden()

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

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

◆ Level()

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

Definition at line 130 of file MnPrint.cxx.

◆ Log()

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

Definition at line 149 of file MnPrint.h.

◆ SetGlobalLevel()

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

Definition at line 111 of file MnPrint.cxx.

◆ SetLevel()

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

Definition at line 123 of file MnPrint.cxx.

◆ ShowPrefixStack()

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

Definition at line 96 of file MnPrint.cxx.

◆ StreamArgs() [1/3]

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

Definition at line 183 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 187 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 194 of file MnPrint.h.

◆ StreamPrefix()

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

Definition at line 147 of file MnPrint.cxx.

◆ Trace()

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

Definition at line 141 of file MnPrint.h.

◆ Warn()

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

Definition at line 123 of file MnPrint.h.

Member Data Documentation

◆ eDebug

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

Definition at line 78 of file MnPrint.h.

◆ eError

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

Definition at line 75 of file MnPrint.h.

◆ eInfo

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

Definition at line 77 of file MnPrint.h.

◆ eTrace

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

Definition at line 79 of file MnPrint.h.

◆ eWarn

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

Definition at line 76 of file MnPrint.h.

◆ fLevel

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

Definition at line 200 of file MnPrint.h.

Libraries for ROOT::Minuit2::MnPrint:

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