CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
cms::cuda::MessageLogger Class Reference

#include <MessageLogger.h>

Inheritance diagram for cms::cuda::MessageLogger:
cms::cuda::LogAbsolute cms::cuda::LogError cms::cuda::LogImportant cms::cuda::LogInfo cms::cuda::LogPrint cms::cuda::LogProblem cms::cuda::LogSystem cms::cuda::LogVerbatim cms::cuda::LogWarning

Public Member Functions

 MessageLogger (MessageLogger &&)=delete
 
 MessageLogger (MessageLogger const &)=delete
 
 MessageLogger (std::string &&category)
 
 MessageLogger (std::string const &category)
 
template<typename T >
MessageLoggeroperator<< (T const &element)
 
MessageLoggeroperator= (MessageLogger &&)=delete
 
MessageLoggeroperator= (MessageLogger const &)=delete
 
 ~MessageLogger ()=default
 

Protected Attributes

std::string category_
 
std::stringstream message_
 

Detailed Description

This class is a temporary measure to hide C++17 constructs in MessaLogger from .cu files (those are mainly files that launch kernels). It will be removed once we will be able to compile .cu files with C++17 capable compiler.

Definition at line 16 of file MessageLogger.h.

Constructor & Destructor Documentation

◆ MessageLogger() [1/4]

cms::cuda::MessageLogger::MessageLogger ( std::string const &  category)
inline

Definition at line 18 of file MessageLogger.h.

18 : category_(category) {}

◆ MessageLogger() [2/4]

cms::cuda::MessageLogger::MessageLogger ( std::string &&  category)
inline

Definition at line 20 of file MessageLogger.h.

◆ ~MessageLogger()

cms::cuda::MessageLogger::~MessageLogger ( )
default

◆ MessageLogger() [3/4]

cms::cuda::MessageLogger::MessageLogger ( MessageLogger const &  )
delete

◆ MessageLogger() [4/4]

cms::cuda::MessageLogger::MessageLogger ( MessageLogger &&  )
delete

Member Function Documentation

◆ operator<<()

template<typename T >
MessageLogger& cms::cuda::MessageLogger::operator<< ( T const &  element)
inline

Definition at line 30 of file MessageLogger.h.

30  {
31  message_ << element;
32  return *this;
33  }

References message_.

◆ operator=() [1/2]

MessageLogger& cms::cuda::MessageLogger::operator= ( MessageLogger &&  )
delete

◆ operator=() [2/2]

MessageLogger& cms::cuda::MessageLogger::operator= ( MessageLogger const &  )
delete

Member Data Documentation

◆ category_

std::string cms::cuda::MessageLogger::category_
protected

◆ message_

std::stringstream cms::cuda::MessageLogger::message_
protected
taus_updatedMVAIds_cff.category
category
Definition: taus_updatedMVAIds_cff.py:31
cms::cuda::MessageLogger::category_
std::string category_
Definition: MessageLogger.h:36
cms::cuda::MessageLogger::message_
std::stringstream message_
Definition: MessageLogger.h:37
eostools.move
def move(src, dest)
Definition: eostools.py:511