Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::NullLogStream Class Reference

No-op log stream that silently discards all input. More...

#include <mitkLog.h>

Public Member Functions

template<class T >
NullLogStream & operator<< (const T &)
 No-op stream operator (const reference overload). More...
 
template<class T >
NullLogStream & operator<< (T &)
 No-op stream operator (non-const reference overload). More...
 
NullLogStream & operator<< (std::ostream &(*)(std::ostream &))
 No-op stream manipulator operator. More...
 
NullLogStream & operator() (const char *)
 No-op category operator. More...
 
NullLogStream & operator() (bool)
 No-op enable/disable operator. More...
 

Detailed Description

No-op log stream that silently discards all input.

Used as a replacement for PseudoLogStream when debug logging is disabled (i.e. when MITK_ENABLE_DEBUG_MESSAGES is not defined). All streaming operations and category/enable calls are no-ops that compile to nothing, ensuring zero runtime overhead for disabled debug messages.

This class should not be used directly. It is used internally by the MITK_DEBUG macro.

See also
PseudoLogStream

Definition at line 314 of file mitkLog.h.

Member Function Documentation

◆ operator()() [1/2]

NullLogStream& mitk::NullLogStream::operator() ( bool  )
inline

No-op enable/disable operator.

Definition at line 344 of file mitkLog.h.

◆ operator()() [2/2]

NullLogStream& mitk::NullLogStream::operator() ( const char *  )
inline

No-op category operator.

Definition at line 338 of file mitkLog.h.

◆ operator<<() [1/3]

template<class T >
NullLogStream& mitk::NullLogStream::operator<< ( const T &  )
inline

No-op stream operator (const reference overload).

Definition at line 319 of file mitkLog.h.

◆ operator<<() [2/3]

NullLogStream& mitk::NullLogStream::operator<< ( std::ostream &  *)(std::ostream &)
inline

No-op stream manipulator operator.

Definition at line 332 of file mitkLog.h.

◆ operator<<() [3/3]

template<class T >
NullLogStream& mitk::NullLogStream::operator<< ( T &  )
inline

No-op stream operator (non-const reference overload).

Definition at line 326 of file mitkLog.h.


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