MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / createObject

Method createObject

source/MRMesh/MRObjectFactory.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 map_.erase( className );
28 }
29 std::shared_ptr<Object> createObject( const std::string & className )
30 {
31 std::unique_lock lock( mutex_ );
32 auto it = map_.find( className );
33 if ( it == map_.end() )
34 return {}; // no name registered
35 return (*it->second)();
36 }
37
38private:
39 ObjectMakers() = default;

Callers 1

createObjectFunction · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected