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

Method add_cell

src/db/db/dbLayout.cc:1420–1435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1418}
1419
1420cell_index_type
1421Layout::add_cell (const db::Layout &other, db::cell_index_type ci)
1422{
1423 cell_index_type ci_new = add_cell (other.cell_name (ci));
1424 cell (ci_new).set_ghost_cell (other.cell (ci).is_ghost_cell ());
1425
1426 if (&other == this) {
1427 add_meta_info (ci_new, other.begin_meta (ci), other.end_meta (ci));
1428 } else {
1429 for (auto m = other.begin_meta (ci); m != other.end_meta (ci); ++m) {
1430 add_meta_info (ci_new, meta_info_name_id (other.meta_info_name (m->first)), m->second);
1431 }
1432 }
1433
1434 return ci_new;
1435}
1436
1437cell_index_type
1438Layout::add_cell (const char *name)

Callers 15

test_deep1Method · 0.95
test_1Method · 0.95
test_1aMethod · 0.95
test_2Method · 0.95
test_2_LayoutMethod · 0.95
test_5_LayoutMethod · 0.95
test_6_LayoutMethod · 0.95
test_6_EditableLayoutMethod · 0.95
test_6_Layout_propsMethod · 0.95
test_6_Layout_props2Method · 0.95
test_6_Layout_newMethod · 0.95

Calls 14

add_cellFunction · 0.85
add_meta_infoFunction · 0.85
set_ghost_cellMethod · 0.80
begin_metaMethod · 0.80
end_metaMethod · 0.80
push_back_ptrMethod · 0.80
cellFunction · 0.70
managerFunction · 0.70
cell_nameMethod · 0.45
cellMethod · 0.45
c_strMethod · 0.45
findMethod · 0.45

Tested by 15

test_deep1Method · 0.76
test_1Method · 0.76
test_1aMethod · 0.76
test_2Method · 0.76
test_2_LayoutMethod · 0.76
test_5_LayoutMethod · 0.76
test_6_LayoutMethod · 0.76
test_6_EditableLayoutMethod · 0.76
test_6_Layout_propsMethod · 0.76
test_6_Layout_props2Method · 0.76
test_6_Layout_newMethod · 0.76