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 (std::string const &category)
 
 MessageLogger (std::string &&category)
 
 MessageLogger (MessageLogger const &)=delete
 
 MessageLogger (MessageLogger &&)=delete
 
template<typename T >
MessageLoggeroperator<< (T const &element)
 
MessageLoggeroperator= (MessageLogger const &)=delete
 
MessageLoggeroperator= (MessageLogger &&)=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.

◆ 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.

References message_.

30  {
31  message_ << element;
32  return *this;
33  }
std::stringstream message_
Definition: MessageLogger.h:37

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Member Data Documentation

◆ category_

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

◆ message_

std::stringstream cms::cuda::MessageLogger::message_
protected