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

Method less

src/db/db/dbArray.h:1040–1052  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1038 }
1039
1040 virtual bool less (const ArrayBase *b) const
1041 {
1042 const iterated_array<Coord> *d = static_cast<const iterated_array<Coord> *> (b);
1043 if (m_v.size () != d->m_v.size ()) {
1044 return (m_v.size () < d->m_v.size ());
1045 }
1046 for (const_iterator p1 = m_v.begin (), p2 = d->m_v.begin (); p1 != m_v.end (); ++p1, ++p2) {
1047 if (*p1 != *p2) {
1048 return (*p1 < *p2);
1049 }
1050 }
1051 return false;
1052 }
1053
1054 virtual bool fuzzy_less (const ArrayBase *b) const
1055 {

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected