MCPcopy Create free account
hub / github.com/Vector35/debugger / operator<

Method operator<

ui/registerswidget.cpp:54–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53
54bool DebugRegisterItem::operator<(const DebugRegisterItem& other) const
55{
56 if (m_name < other.name())
57 return true;
58 else if (m_name > other.name())
59 return false;
60 else if (m_value < other.value())
61 return true;
62 else if (m_value > other.value())
63 return false;
64 else if (m_valueStatus < other.valueStatus())
65 return true;
66 else if (m_valueStatus > other.valueStatus())
67 return false;
68 else if (m_hint < other.hint())
69 return true;
70 else if (m_hint > other.hint())
71 return false;
72 return m_used < other.used();
73}
74
75
76DebugRegistersListModel::DebugRegistersListModel(QWidget* parent, DebuggerControllerRef controller, ViewFrame* view) :

Callers

nothing calls this directly

Calls 5

usedMethod · 0.80
nameMethod · 0.45
valueMethod · 0.45
valueStatusMethod · 0.45
hintMethod · 0.45

Tested by

no test coverage detected