* @brief determine the maximum hierarchy level */
| 4811 | * @brief determine the maximum hierarchy level |
| 4812 | */ |
| 4813 | int |
| 4814 | LayoutViewBase::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 |
nothing calls this directly
no test coverage detected