CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 18 of file MessageLogger.h.

18 : category_(category) {}
static const char category[]
cms::cuda::MessageLogger::MessageLogger ( std::string &&  category)
inline

Definition at line 20 of file MessageLogger.h.

static const char category[]
def move
Definition: eostools.py:511
cms::cuda::MessageLogger::~MessageLogger ( )
default
cms::cuda::MessageLogger::MessageLogger ( MessageLogger const &  )
delete
cms::cuda::MessageLogger::MessageLogger ( MessageLogger &&  )
delete

Member Function Documentation

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
MessageLogger& cms::cuda::MessageLogger::operator= ( MessageLogger const &  )
delete
MessageLogger& cms::cuda::MessageLogger::operator= ( MessageLogger &&  )
delete

Member Data Documentation

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