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

Function boxes2layout

src/db/unit_tests/dbRecursiveShapeIteratorTests.cc:740–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738}
739
740static db::Layout boxes2layout (const std::set<db::Box> &boxes)
741{
742 db::Layout l;
743 l.insert_layer(0, db::LayerProperties (1, 0));
744 db::Cell &top (l.cell (l.add_cell ()));
745
746 for (std::set<db::Box>::const_iterator b = boxes.begin (); b != boxes.end (); ++b) {
747 top.shapes (0).insert (*b);
748 }
749
750 return l;
751}
752
753namespace {
754

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