CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
edm::LogProblem Class Reference

#include <MessageLogger.h>

Public Member Functions

template<typename F >
LogProblemlog (F &&iF)
 
 LogProblem (std::string const &id)
 
LogProblemoperator<< (std::ios_base &(*f)(std::ios_base &))
 
LogProblemoperator<< (std::ostream &(*f)(std::ostream &))
 
template<class T >
LogProblemoperator<< (T const &t)
 
 ~LogProblem ()
 

Private Member Functions

 LogProblem (LogProblem const &)=delete
 
LogProblemoperator= (LogProblem const &)=delete
 

Private Attributes

MessageSender ap
 

Detailed Description

Definition at line 387 of file MessageLogger.h.

Constructor & Destructor Documentation

◆ LogProblem() [1/2]

edm::LogProblem::LogProblem ( std::string const &  id)
inlineexplicit

Definition at line 390 of file MessageLogger.h.

391  : ap(ELerror, id, true, !MessageDrop::instance()->errorEnabled) // Change log 24
392  {}

◆ ~LogProblem()

edm::LogProblem::~LogProblem ( )

Definition at line 61 of file MessageLogger.cc.

61 {}

◆ LogProblem() [2/2]

edm::LogProblem::LogProblem ( LogProblem const &  )
privatedelete

Member Function Documentation

◆ log()

template<typename F >
LogProblem& edm::LogProblem::log ( F &&  iF)
inline

Definition at line 413 of file MessageLogger.h.

413  {
414  if (ap.valid()) {
415  iF(ap);
416  }
417  return *this;
418  }

References ap, and edm::MessageSender::valid().

◆ operator<<() [1/3]

LogProblem& edm::LogProblem::operator<< ( std::ios_base &(*)(std::ios_base &)  f)
inline

Definition at line 406 of file MessageLogger.h.

406  {
407  if (ap.valid())
408  ap << f;
409  return *this;
410  }

References ap, f, and edm::MessageSender::valid().

◆ operator<<() [2/3]

LogProblem& edm::LogProblem::operator<< ( std::ostream &(*)(std::ostream &)  f)
inline

Definition at line 401 of file MessageLogger.h.

401  {
402  if (ap.valid())
403  ap << f;
404  return *this;
405  }

References ap, f, and edm::MessageSender::valid().

◆ operator<<() [3/3]

template<class T >
LogProblem& edm::LogProblem::operator<< ( T const &  t)
inline

Definition at line 396 of file MessageLogger.h.

396  {
397  if (ap.valid())
398  ap << t;
399  return *this;
400  }

References ap, OrderedSet::t, and edm::MessageSender::valid().

◆ operator=()

LogProblem& edm::LogProblem::operator= ( LogProblem const &  )
privatedelete

Member Data Documentation

◆ ap

MessageSender edm::LogProblem::ap
private

Definition at line 421 of file MessageLogger.h.

Referenced by log(), and operator<<().

f
double f[11][100]
Definition: MuScleFitUtils.cc:78
edm::MessageSender::valid
bool valid()
Definition: MessageSender.h:45
OrderedSet.t
t
Definition: OrderedSet.py:90
edm::LogProblem::ap
MessageSender ap
Definition: MessageLogger.h:421
edm::MessageDrop::instance
static MessageDrop * instance()
Definition: MessageDrop.cc:60
edm::ELerror
const ELslProxy< ELerrorGen > ELerror
Definition: ELseverityLevel.cc:308