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

Function cv_is_cell_hidden

src/laybasic/laybasic/gsiDeclLayCellView.cc:147–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147static bool cv_is_cell_hidden (lay::CellViewRef *cv, const db::Cell *cell)
148{
149 if (cv->is_valid () && cell) {
150 if (cell->layout () != &(*cv)->layout ()) {
151 throw tl::Exception (tl::to_string (tr ("The cell is not a cell of the view's layout")));
152 }
153 return cv->view ()->is_cell_hidden (cell->cell_index (), cv->index ());
154 } else {
155 return false;
156 }
157}
158
159static void cv_hide_cell (lay::CellViewRef *cv, const db::Cell *cell)
160{

Callers

nothing calls this directly

Calls 9

is_cell_hiddenMethod · 0.80
ExceptionClass · 0.50
to_stringFunction · 0.50
trFunction · 0.50
is_validMethod · 0.45
layoutMethod · 0.45
viewMethod · 0.45
cell_indexMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected