MCPcopy Create free account
hub / github.com/DFHack/dfhack / applyAgain

Method applyAgain

plugins/debug.cpp:305–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305bool Filter::applyAgain(DebugCategory& cat) const noexcept
306{
307 if (!enabled_)
308 return false;
309 if (!std::regex_search(cat.category(), category_))
310 return false;
311 if (!std::regex_search(cat.category(), plugin_))
312 return false;
313 TRACE(filter) << "apply " << cat.plugin() << ':' << cat.category() << " matches '"
314 << pluginText() << "' '" << categoryText() << '\'' << std::endl;
315 cat.allowed(level_);
316 return true;
317}
318
319void Filter::apply(DebugCategory& cat) noexcept
320{

Callers 3

disableFilterFunction · 0.80
enableFilterFunction · 0.80
unsetFilterFunction · 0.80

Calls 3

categoryMethod · 0.80
pluginMethod · 0.80
allowedMethod · 0.80

Tested by

no test coverage detected