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

Method getSharedPtr

source/MRMesh/MRObject.cpp:147–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147std::shared_ptr<Object> ObjectChildrenHolder::getSharedPtr() const
148{
149 if ( !parent_ )
150 return {};
151 for ( const auto& child : parent_->children_ )
152 if ( child.get() == this )
153 return child;
154 return {};
155}
156
157size_t ObjectChildrenHolder::heapBytes() const
158{

Callers 4

sceneReorderWithUndoFunction · 0.80
multiPickObjectsMethod · 0.80
findObjectsInRectMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected