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

Method clone

source/MRMesh/MRObjectGcode.cpp:24–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23
24std::shared_ptr<Object> MR::ObjectGcode::clone() const
25{
26 auto res = std::make_shared<ObjectGcode>( ProtectedStruct{}, *this );
27 if ( gcodeSource_ )
28 res->setGcodeSource( std::make_shared<GcodeSource>( *gcodeSource_ ) );
29 return res;
30}
31
32std::shared_ptr<Object> ObjectGcode::shallowClone() const
33{

Callers

nothing calls this directly

Calls 1

setGcodeSourceMethod · 0.45

Tested by

no test coverage detected