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

Function extractor_impl

src/db/db/dbStreamLayers.cc:989–1004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

987namespace tl
988{
989 template<> DB_PUBLIC void extractor_impl (tl::Extractor &ex, db::LayerMap &t)
990 {
991 t = db::LayerMap ();
992
993 ex.test("layer_map");
994 ex.test("(");
995
996 unsigned int l = 0;
997 while (! ex.test (")") && ! ex.at_end ()) {
998 std::string m;
999 ex.read_word_or_quoted (m);
1000 t.add_expr (m, l);
1001 ++l;
1002 ex.test (";");
1003 }
1004 }
1005
1006 template<> DB_PUBLIC bool test_extractor_impl (tl::Extractor &ex, db::LayerMap &t)
1007 {

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