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

Function collect

src/db/unit_tests/dbRecursiveInstanceIteratorTests.cc:34–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32#include <vector>
33
34std::string collect (db::RecursiveInstanceIterator &s, const db::Layout &layout)
35{
36 std::string res;
37 while (! s.at_end ()) {
38 if (! res.empty ()) {
39 res += "/";
40 }
41 if (s.cell ()) {
42 res += std::string ("[") + layout.cell_name (s.cell ()->cell_index ()) + "]";
43 } else {
44 res += "[]";
45 }
46 res += s->inst_ptr.to_string (true);
47 ++s;
48 }
49 return res;
50}
51
52std::string collect_with_copy (db::RecursiveInstanceIterator s, const db::Layout &layout)
53{

Callers 2

collect_with_copyFunction · 0.70

Calls 7

stringFunction · 0.50
at_endMethod · 0.45
emptyMethod · 0.45
cellMethod · 0.45
cell_nameMethod · 0.45
cell_indexMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected