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

Method find_layer

src/laybasic/laybasic/layLayoutViewBase.cc:1641–1653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1639}
1640
1641lay::LayerPropertiesConstIterator
1642LayoutViewBase::find_layer (unsigned int cv_index, const db::LayerProperties &lp) const
1643{
1644 lay::LayerPropertiesConstIterator l = begin_layers ();
1645 while (! l.at_end ()) {
1646 if (l->source (true).cv_index () == int (cv_index) && l->source (true).layer_props ().log_equal (lp)) {
1647 return l;
1648 }
1649 ++l;
1650 }
1651
1652 return lay::LayerPropertiesConstIterator ();
1653}
1654
1655bool
1656LayoutViewBase::set_current_layer (unsigned int cv_index, const db::LayerProperties &lp)

Callers 15

test_1Method · 0.80
test_2Method · 0.80
test_3Method · 0.80
test_2Method · 0.80
test_8Method · 0.80
test_9Method · 0.80
test_12Method · 0.80
test_13Method · 0.80
test_14Method · 0.80
test_15Method · 0.80
test_12Method · 0.80
set_layerMethod · 0.80

Calls 7

log_equalMethod · 0.80
layer_propsMethod · 0.80
begin_layersFunction · 0.70
at_endMethod · 0.45
cv_indexMethod · 0.45
sourceMethod · 0.45

Tested by 11

test_1Method · 0.64
test_2Method · 0.64
test_3Method · 0.64
test_2Method · 0.64
test_8Method · 0.64
test_9Method · 0.64
test_12Method · 0.64
test_13Method · 0.64
test_14Method · 0.64
test_15Method · 0.64
test_12Method · 0.64