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

Method unsafeSet

src/thundersvm/util/log.cpp:466–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464 }
465
466 void Configurations::unsafeSet(Level level, ConfigurationType configurationType, const std::string& value) {
467 Configuration* conf = RegistryWithPred<Configuration, Configuration::Predicate>::get(level, configurationType);
468 if (conf == nullptr) {
469 registerNew(new Configuration(level, configurationType, value));
470 } else {
471 conf->setValue(value);
472 }
473 if (level == Level::Global) {
474 unsafeSetGlobally(configurationType, value, false);
475 }
476 }
477
478 void Configurations::setGlobally(ConfigurationType configurationType, const std::string& value,
479 bool includeGlobalLevel) {

Callers

nothing calls this directly

Calls 1

setValueMethod · 0.45

Tested by

no test coverage detected