MCPcopy Create free account
hub / github.com/KLayout/klayout / operator==

Method operator==

src/laybasic/laybasic/layObjectInstPath.cc:178–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178bool
179ObjectInstPath::operator== (const ObjectInstPath &d) const
180{
181 if (is_cell_inst () != d.is_cell_inst ()) {
182 return false;
183 }
184 if (! is_cell_inst ()) {
185 if (m_layer != d.m_layer) {
186 return false;
187 }
188 if (m_shape != d.m_shape) {
189 return false;
190 }
191 }
192 if (m_cv_index != d.m_cv_index) {
193 return false;
194 }
195 if (m_topcell != d.m_topcell) {
196 return false;
197 }
198 return m_path == d.m_path;
199}
200
201}
202

Callers

nothing calls this directly

Calls 1

is_cell_instFunction · 0.85

Tested by

no test coverage detected