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

Method remove_cv_references

src/laybasic/laybasic/layLayerProperties.cc:1299–1315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1297}
1298
1299void
1300LayerPropertiesList::remove_cv_references (int cv_index, bool except)
1301{
1302 std::vector<LayerPropertiesIterator> cv_ref;
1303
1304 for (LayerPropertiesIterator l = begin_recursive (); !l.at_end (); ++l) {
1305 if (has_cv_ref (*l, cv_index) != except) {
1306 cv_ref.push_back (l);
1307 }
1308 }
1309
1310 std::sort (cv_ref.begin (), cv_ref.end (), CompareLayerIteratorBottomUp ());
1311
1312 for (std::vector<LayerPropertiesIterator>::const_iterator ll = cv_ref.begin (); ll != cv_ref.end (); ++ll) {
1313 erase (*ll);
1314 }
1315}
1316
1317static bool has_wildcard_layout (const LayerPropertiesNode &node, bool any)
1318{

Callers 4

cm_pull_inMethod · 0.80
erase_cellviewMethod · 0.80
do_load_layer_propsMethod · 0.80

Calls 7

has_cv_refFunction · 0.85
sortFunction · 0.85
eraseFunction · 0.50
at_endMethod · 0.45
push_backMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected