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

Function boxes2layout

src/db/unit_tests/dbRecursiveInstanceIteratorTests.cc:307–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307static db::Layout boxes2layout (const std::set<db::Box> &boxes)
308{
309 db::Layout l;
310 l.insert_layer(0, db::LayerProperties (1, 0));
311 db::Cell &top (l.cell (l.add_cell ()));
312
313 for (std::set<db::Box>::const_iterator b = boxes.begin (); b != boxes.end (); ++b) {
314 top.shapes (0).insert (*b);
315 }
316
317 return l;
318}
319
320namespace {
321

Calls 7

LayerPropertiesClass · 0.50
insert_layerMethod · 0.45
cellMethod · 0.45
add_cellMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected