18constexpr ButtonHandle::
19ButtonHandle(
int index) : _index(index) {
25INLINE
bool ButtonHandle::
27 return (_index == other._index);
33INLINE
bool ButtonHandle::
35 return (_index != other._index);
41INLINE
bool ButtonHandle::
43 return (_index < other._index);
49INLINE
bool ButtonHandle::
51 return (_index <= other._index);
57INLINE
bool ButtonHandle::
59 return (_index > other._index);
65INLINE
bool ButtonHandle::
67 return (_index >= other._index);
77 return _index - other._index;
85 return (
size_t)_index;
94 return (_index > 0 && _index < 128);
115 return ((*
this) == other ||
116 (other != ButtonHandle::none() &&
135INLINE
void ButtonHandle::
136output(std::ostream &out)
const {
144operator bool ()
const {
145 return (_index != 0);