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

Function test_extractor_impl

src/db/db/dbStreamLayers.cc:1006–1026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1004 }
1005
1006 template<> DB_PUBLIC bool test_extractor_impl (tl::Extractor &ex, db::LayerMap &t)
1007 {
1008 t = db::LayerMap ();
1009
1010 if (!ex.test("layer_map")) {
1011 return false;
1012 }
1013
1014 ex.test("(");
1015
1016 unsigned int l = 0;
1017 while (! ex.test (")") && ! ex.at_end ()) {
1018 std::string m;
1019 ex.read_word_or_quoted (m);
1020 t.add_expr (m, l);
1021 ++l;
1022 ex.test (";");
1023 }
1024
1025 return true;
1026 }
1027}
1028

Callers

nothing calls this directly

Calls 5

LayerMapClass · 0.85
read_word_or_quotedMethod · 0.80
add_exprMethod · 0.80
testMethod · 0.45
at_endMethod · 0.45

Tested by

no test coverage detected