MCPcopy Create free account
hub / github.com/chigraph/chigraph / unloadModule

Method unloadModule

libchigraph/src/Context.cpp:484–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482}
483
484bool Context::unloadModule(const fs::path& fullName) {
485 // find the module, and if we see it then delete it
486 for (auto idx = 0ull; idx < mModules.size(); ++idx) {
487 if (mModules[idx]->fullName() == fullName) {
488 mModules.erase(mModules.begin() + idx);
489 return true;
490 }
491 }
492
493 // if we get here it wasn't removed
494 return false;
495}
496
497Result Context::typeFromModule(const fs::path& module, boost::string_view name,
498 DataType* toFill) noexcept {

Callers

nothing calls this directly

Calls 2

fullNameMethod · 0.80
beginMethod · 0.80

Tested by

no test coverage detected