ViennaSHE 1.3.0
Free open-source semiconductor device simulator using spherical harmonics expansions techniques.
viennashe::log::logger< false > Class Reference

Template specialization of the logger for the case enabled=false ... does nothing. Ensures that no runtime penalty is present if the logger is disabled via the template parameter. More...

#include <log.hpp>

Public Types

typedef std::ostream &(* ostream_manipulator) (std::ostream &)
 

Public Member Functions

 logger ()
 
 logger (log_levels level)
 
 logger (const std::string &)
 
 logger (log_levels level, const std::string &)
 
 logger (const logger &r)
 
 ~logger ()
 
bool do_log () const
 
nullstreamget ()
 
nullstream const & get () const
 
template<typename T >
nullstreamoperator<< (const T &)
 
nullstreamoperator<< (ostream_manipulator)
 
nullstreamoperator<< (std::string &)
 
nullstreamoperator<< (const std::string &)
 
nullstreamoperator<< (const char *)
 
nullstreamoperator<< (logger &)
 

Detailed Description

Template specialization of the logger for the case enabled=false ... does nothing. Ensures that no runtime penalty is present if the logger is disabled via the template parameter.

Definition at line 213 of file log.hpp.

Member Typedef Documentation

◆ ostream_manipulator

typedef std::ostream &(* viennashe::log::logger< false >::ostream_manipulator) (std::ostream &)

Definition at line 243 of file log.hpp.

Constructor & Destructor Documentation

◆ logger() [1/5]

viennashe::log::logger< false >::logger ( )
inlineexplicit

Definition at line 223 of file log.hpp.

◆ logger() [2/5]

viennashe::log::logger< false >::logger ( log_levels  level)
inline

Definition at line 225 of file log.hpp.

◆ logger() [3/5]

viennashe::log::logger< false >::logger ( const std::string &  )
inline

Definition at line 227 of file log.hpp.

◆ logger() [4/5]

viennashe::log::logger< false >::logger ( log_levels  level,
const std::string &   
)
inline

Definition at line 229 of file log.hpp.

◆ logger() [5/5]

viennashe::log::logger< false >::logger ( const logger< false > &  r)
inline

Definition at line 231 of file log.hpp.

◆ ~logger()

viennashe::log::logger< false >::~logger ( )
inline

Definition at line 233 of file log.hpp.

Member Function Documentation

◆ do_log()

bool viennashe::log::logger< false >::do_log ( ) const
inline

Definition at line 235 of file log.hpp.

◆ get() [1/2]

nullstream & viennashe::log::logger< false >::get ( )
inline

Definition at line 237 of file log.hpp.

◆ get() [2/2]

nullstream const & viennashe::log::logger< false >::get ( ) const
inline

Definition at line 238 of file log.hpp.

◆ operator<<() [1/6]

nullstream & viennashe::log::logger< false >::operator<< ( const char *  )
inline

Definition at line 248 of file log.hpp.

◆ operator<<() [2/6]

nullstream & viennashe::log::logger< false >::operator<< ( const std::string &  )
inline

Definition at line 247 of file log.hpp.

◆ operator<<() [3/6]

template<typename T >
nullstream & viennashe::log::logger< false >::operator<< ( const T &  )
inline

Definition at line 241 of file log.hpp.

◆ operator<<() [4/6]

nullstream & viennashe::log::logger< false >::operator<< ( logger< false > &  )
inline

Definition at line 249 of file log.hpp.

◆ operator<<() [5/6]

nullstream & viennashe::log::logger< false >::operator<< ( ostream_manipulator  )
inline

Definition at line 244 of file log.hpp.

◆ operator<<() [6/6]

nullstream & viennashe::log::logger< false >::operator<< ( std::string &  )
inline

Definition at line 246 of file log.hpp.


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