MCPcopy Create free account
hub / github.com/csyonghe/Spire / FindModule

Method FindModule

Source/SpireLib/SpireLib.cpp:522–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520 }
521
522 SpireModule * FindModule(CoreLib::String moduleName)
523 {
524 auto ptr = states.Last().modules.TryGetValue(moduleName);
525 if (ptr)
526 return ptr->Ptr();
527 else
528 return nullptr;
529 }
530
531 StringBuilder moduleKeyBuilder;
532 SpireModule * SpecializeModule(SpireModule * module, int * params, int numParams, SpireDiagnosticSink * sink)

Callers 1

spFindModuleFunction · 0.80

Calls 2

TryGetValueMethod · 0.45
PtrMethod · 0.45

Tested by

no test coverage detected