MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / ScopedAddFlag

Class ScopedAddFlag

include/thundersvm/util/log.h:3885–3895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3883 }
3884 /// @brief Adds flag and removes it when scope goes out
3885 class ScopedAddFlag {
3886 public:
3887 ScopedAddFlag(LoggingFlag flag) : m_flag(flag) {
3888 Loggers::addFlag(m_flag);
3889 }
3890 ~ScopedAddFlag(void) {
3891 Loggers::removeFlag(m_flag);
3892 }
3893 private:
3894 LoggingFlag m_flag;
3895 };
3896 /// @brief Removes flag and add it when scope goes out
3897 class ScopedRemoveFlag {
3898 public:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected