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

Method descend

src/laybasic/laybasic/layLayoutViewBase.cc:6313–6334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6311}
6312
6313void
6314LayoutViewBase::descend (const std::vector<db::InstElement> &path, int index)
6315{
6316 if (! path.empty () && index >= 0 && int (m_cellviews.size ()) > index && cellview_iter (index)->is_valid ()) {
6317
6318 cellview_about_to_change_event (index);
6319
6320 cancel ();
6321
6322 lay::CellView::specific_cell_path_type spath (cellview_iter (index)->specific_path ());
6323 spath.insert (spath.end (), path.begin (), path.end ());
6324 cellview_iter (index)->set_specific_path (spath);
6325
6326 store_state ();
6327 redraw ();
6328
6329 cellview_changed (index);
6330
6331 update_content ();
6332
6333 }
6334}
6335
6336bool
6337LayoutViewBase::is_editable () const

Callers 2

tspathFunction · 0.45
cv_descendFunction · 0.45

Calls 10

store_stateFunction · 0.85
redrawFunction · 0.85
set_specific_pathMethod · 0.80
cancelFunction · 0.70
emptyMethod · 0.45
sizeMethod · 0.45
is_validMethod · 0.45
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by 1

tspathFunction · 0.36