Changeset View
Changeset View
Standalone View
Standalone View
src/analyze/gui/locationdata.h
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | 63 | { | |||
---|---|---|---|---|---|
64 | return symbolId < rhs.symbolId; | 64 | return symbolId < rhs.symbolId; | ||
65 | } | 65 | } | ||
66 | 66 | | |||
67 | bool isValid() const | 67 | bool isValid() const | ||
68 | { | 68 | { | ||
69 | return symbolId > 0; | 69 | return symbolId > 0; | ||
70 | } | 70 | } | ||
71 | 71 | | |||
72 | struct FullEqual { | ||||
73 | bool operator()(const Symbol &lhs, const Symbol &rhs) const { | ||||
74 | return lhs.symbol == rhs.symbol && | ||||
75 | lhs.binary == rhs.binary && | ||||
76 | lhs.path == rhs.path; | ||||
77 | } | ||||
78 | }; | ||||
72 | struct FullLessThan { | 79 | struct FullLessThan { | ||
73 | bool operator()(const Symbol &lhs, const Symbol &rhs) const { | 80 | bool operator()(const Symbol &lhs, const Symbol &rhs) const { | ||
74 | return std::tie(lhs.symbol, lhs.binary, lhs.path) < std::tie(rhs.symbol, rhs.binary, rhs.path); | 81 | return std::tie(lhs.symbol, lhs.binary, lhs.path) < std::tie(rhs.symbol, rhs.binary, rhs.path); | ||
75 | } | 82 | } | ||
76 | }; | 83 | }; | ||
77 | }; | 84 | }; | ||
78 | 85 | | |||
79 | Q_DECLARE_TYPEINFO(Symbol, Q_MOVABLE_TYPE); | 86 | Q_DECLARE_TYPEINFO(Symbol, Q_MOVABLE_TYPE); | ||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |