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

Method index_of_cellview

src/laybasic/laybasic/layLayoutViewBase.cc:2634–2644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2632}
2633
2634int
2635LayoutViewBase::index_of_cellview (const lay::CellView *cv) const
2636{
2637 int index = 0;
2638 for (std::list<CellView>::const_iterator i = m_cellviews.begin (); i != m_cellviews.end (); ++i, ++index) {
2639 if (cv == i.operator-> ()) {
2640 return index;
2641 }
2642 }
2643 return -1;
2644}
2645
2646void
2647LayoutViewBase::set_layout (const lay::CellView &cv, unsigned int cvindex)

Callers 7

menu_activatedMethod · 0.80
indexMethod · 0.80
set_nameMethod · 0.80
set_unspecific_pathMethod · 0.80
set_specific_pathMethod · 0.80
set_cellMethod · 0.80
reset_cellMethod · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
operator->Method · 0.45

Tested by

no test coverage detected