RNA Folding simulation
|
The LogType class is used to define different types of logs using bit flags. Each log type is represented by a different bit in a std::uint8_t value. This allows multiple log types to be combined using bitwise operations. More...
#include <herrlog.hh>
Public Member Functions | |
LogType (std::uint8_t initial_flag) | |
Construct a new Log Type object. Allows implicit conversion from uint8_t. Thus allows assignments like LogType Logger::log_type = LogType::All;. More... | |
LogType | operator| (const LogType other) const |
Overloading the | operator for combining log types. More... | |
bool | operator& (const LogType other) const |
Overloading the & operator for checking if a log type is set. More... | |
The LogType class is used to define different types of logs using bit flags. Each log type is represented by a different bit in a std::uint8_t value. This allows multiple log types to be combined using bitwise operations.
Definition at line 65 of file herrlog.hh.
|
inline |
Construct a new Log Type object. Allows implicit conversion from uint8_t. Thus allows assignments like LogType Logger::log_type = LogType::All;.
initial_flag |
Definition at line 93 of file herrlog.hh.
|
inline |
Overloading the &
operator for checking if a log type is set.
other |
Definition at line 112 of file herrlog.hh.
Overloading the |
operator for combining log types.
other |
Definition at line 100 of file herrlog.hh.