MCPcopy Create free account
hub / github.com/KLayout/klayout / delete_layers2

Function delete_layers2

src/laybasic/laybasic/gsiDeclLayLayoutViewBase.cc:306–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306static void delete_layers2 (lay::LayoutViewBase *view, unsigned int index, const std::vector<lay::LayerPropertiesConstIterator> &iters)
307{
308 std::vector<lay::LayerPropertiesConstIterator> sorted (iters);
309 std::sort (sorted.begin (), sorted.end (), lay::CompareLayerIteratorBottomUp ());
310 for (std::vector<lay::LayerPropertiesConstIterator>::iterator s = sorted.begin (); s != sorted.end (); ++s) {
311 view->delete_layer (index, *s);
312 }
313}
314
315static void save_as1 (lay::LayoutViewBase *view, unsigned int index, const std::string &filename, const db::SaveLayoutOptions &options)
316{

Callers

nothing calls this directly

Calls 4

sortFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
delete_layerMethod · 0.45

Tested by

no test coverage detected