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

Function layers_to_string

src/db/unit_tests/dbStreamLayerTests.cc:338–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338static std::string layers_to_string (const db::Layout &ly)
339{
340 std::string s;
341
342 for (unsigned int i = 0; i < ly.layers (); ++i) {
343 if (ly.is_valid_layer (i)) {
344 if (! s.empty ()) {
345 s += ",";
346 }
347 s += ly.get_properties (i).to_string ();
348 }
349 }
350
351 return s;
352}
353
354TEST(6)
355{

Callers 1

Calls 4

get_propertiesMethod · 0.80
layersMethod · 0.45
emptyMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected