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

Method equal

src/db/db/dbArray.h:1012–1024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1010 }
1011
1012 virtual bool equal (const ArrayBase *b) const
1013 {
1014 const iterated_array<Coord> *d = static_cast<const iterated_array<Coord> *> (b);
1015 if (m_v.size () != d->m_v.size ()) {
1016 return false;
1017 }
1018 for (const_iterator p1 = m_v.begin (), p2 = d->m_v.begin (); p1 != m_v.end (); ++p1, ++p2) {
1019 if (*p1 != *p2) {
1020 return false;
1021 }
1022 }
1023 return true;
1024 }
1025
1026 virtual bool fuzzy_equal (const ArrayBase *b) const
1027 {

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected