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

Method operator<

src/laybasic/laybasic/layObjectInstPath.cc:155–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155bool
156ObjectInstPath::operator< (const ObjectInstPath &d) const
157{
158 if (is_cell_inst () != d.is_cell_inst ()) {
159 return is_cell_inst () < d.is_cell_inst ();
160 }
161 if (! is_cell_inst ()) {
162 if (m_layer != d.m_layer) {
163 return m_layer < d.m_layer;
164 }
165 if (m_shape != d.m_shape) {
166 return m_shape < d.m_shape;
167 }
168 }
169 if (m_cv_index != d.m_cv_index) {
170 return m_cv_index < d.m_cv_index;
171 }
172 if (m_topcell != d.m_topcell) {
173 return m_topcell < d.m_topcell;
174 }
175 return m_path < d.m_path;
176}
177
178bool
179ObjectInstPath::operator== (const ObjectInstPath &d) const

Callers

nothing calls this directly

Calls 1

is_cell_instFunction · 0.85

Tested by

no test coverage detected