MCPcopy Create free account
hub / github.com/AimRT/AimRT / GetModule

Method GetModule

src/runtime/core/module/module_loader.cc:134–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134const aimrt_module_base_t* ModuleLoader::GetModule(std::string_view module_name) {
135 auto finditr = module_ptr_map_.find(module_name);
136 if (finditr == module_ptr_map_.end()) {
137 AIMRT_ERROR("No module name '{}' in lib {}", module_name, pkg_path_);
138 return nullptr;
139 }
140 return finditr->second;
141}
142
143void ModuleLoader::DestroyModule(const aimrt_module_base_t* module_ptr) {
144 if (module_ptr == nullptr) {

Callers 1

InitializeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected