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

Function q2s_cell

src/db/unit_tests/dbLayoutQueryTests.cc:102–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102static std::string q2s_cell (db::LayoutQueryIterator &iq, const std::string &pname)
103{
104 iq.reset ();
105 std::string res;
106 while (! iq.at_end ()) {
107 if (!res.empty ()) {
108 res += ",";
109 }
110 tl::Variant v;
111 iq.get (pname, v);
112 if (v.is_nil ()) {
113 res += v.to_string ();
114 } else {
115 res += iq.layout ()->cell_name (v.to_ulong ());
116 }
117 ++iq;
118 }
119 return res;
120}
121
122TEST(0)
123{

Callers 1

Calls 8

to_ulongMethod · 0.80
resetMethod · 0.45
at_endMethod · 0.45
emptyMethod · 0.45
getMethod · 0.45
to_stringMethod · 0.45
cell_nameMethod · 0.45
layoutMethod · 0.45

Tested by

no test coverage detected