VTK-m  2.2
Public Member Functions | Private Attributes | List of all members
vtkm::cont::LogCondStream Struct Reference

Conditionally logs a message with a stream-like interface. More...

#include <Logging.h>

Public Member Functions

 LogCondStream (LogLevel level, bool cond, const char *file, int line)
 
 ~LogCondStream () noexcept(false)
 
template<typename T >
LogCondStreamoperator<< (const T &in)
 
LogCondStreamoperator<< (std::ostream &(*f)(std::ostream &))
 

Private Attributes

LogLevel Level
 
bool Condition
 
const char * File
 
int Line
 
std::ostringstream SStream
 

Detailed Description

Conditionally logs a message with a stream-like interface.

Messages are flushed to output by the destructor.

Constructor & Destructor Documentation

◆ LogCondStream()

vtkm::cont::LogCondStream::LogCondStream ( LogLevel  level,
bool  cond,
const char *  file,
int  line 
)
inline

◆ ~LogCondStream()

vtkm::cont::LogCondStream::~LogCondStream ( )
noexcept

Member Function Documentation

◆ operator<<() [1/2]

template<typename T >
LogCondStream& vtkm::cont::LogCondStream::operator<< ( const T &  in)
inline

◆ operator<<() [2/2]

LogCondStream& vtkm::cont::LogCondStream::operator<< ( std::ostream &(*)(std::ostream &)  f)
inline

Member Data Documentation

◆ Condition

bool vtkm::cont::LogCondStream::Condition
private

◆ File

const char* vtkm::cont::LogCondStream::File
private

◆ Level

LogLevel vtkm::cont::LogCondStream::Level
private

◆ Line

int vtkm::cont::LogCondStream::Line
private

◆ SStream

std::ostringstream vtkm::cont::LogCondStream::SStream
private

The documentation for this struct was generated from the following file: