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

Method create_layout

src/laybasic/laybasic/layLayoutViewBase.cc:3522–3535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3520}
3521
3522unsigned int
3523LayoutViewBase::create_layout (const std::string &technology, bool add_cellview, bool initialize_layers)
3524{
3525 const db::Technology *tech = db::Technologies::instance ()->technology_by_name (technology);
3526
3527 db::Layout *layout = new db::Layout (is_editable (), manager ());
3528 if (tech) {
3529 layout->dbu (tech->dbu ());
3530 }
3531
3532 lay::LayoutHandle *handle = new lay::LayoutHandle (layout, "");
3533 handle->set_tech_name (technology);
3534 return add_layout (handle, add_cellview, initialize_layers);
3535}
3536
3537unsigned int
3538LayoutViewBase::load_layout (const std::string &filename, const std::string &technology, bool add_cellview)

Callers 2

laySnapTests.ccFile · 0.45

Calls 6

technology_by_nameMethod · 0.80
set_tech_nameMethod · 0.80
instanceFunction · 0.70
managerFunction · 0.70
is_editableFunction · 0.50
dbuMethod · 0.45

Tested by

no test coverage detected