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

Method get_basic_name

src/db/db/dbLibraryProxy.cc:263–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263std::string
264LibraryProxy::get_basic_name () const
265{
266 Library *lib = LibraryManager::instance ().lib (lib_id ());
267 if (lib) {
268 if (! lib->layout ().is_valid_cell_index (library_cell_index ())) {
269 return "<defunct>";
270 } else {
271 const db::Cell &lib_cell = lib->layout ().cell (library_cell_index ());
272 return lib_cell.get_basic_name ();
273 }
274 } else {
275 return Cell::get_basic_name ();
276 }
277}
278
279std::string
280LibraryProxy::get_variant_name () const

Callers

nothing calls this directly

Calls 7

lib_idFunction · 0.85
libMethod · 0.80
is_valid_cell_indexMethod · 0.80
instanceFunction · 0.70
library_cell_indexFunction · 0.70
layoutMethod · 0.45
cellMethod · 0.45

Tested by

no test coverage detected