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

Method max_hier_level

src/laybasic/laybasic/layLayoutViewBase.cc:4813–4826  ·  view source on GitHub ↗

* @brief determine the maximum hierarchy level */

Source from the content-addressed store, hash-verified

4811 * @brief determine the maximum hierarchy level
4812 */
4813int
4814LayoutViewBase::max_hier_level () const
4815{
4816 int max_level = 0;
4817 for (std::list <CellView>::const_iterator cv = m_cellviews.begin (); cv != m_cellviews.end (); ++cv) {
4818 if (cv->is_valid ()) {
4819 int nl = cv->ctx_cell ()->hierarchy_levels () + 1;
4820 if (nl > max_level) {
4821 max_level = nl;
4822 }
4823 }
4824 }
4825 return max_level;
4826}
4827
4828/**
4829 * @brief Returns a value indicating whether the maximum level is shown

Callers

nothing calls this directly

Calls 5

hierarchy_levelsMethod · 0.80
ctx_cellMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
is_validMethod · 0.45

Tested by

no test coverage detected