| 90 | color_t &operator[](int i) { return m_color[i]; } |
| 91 | |
| 92 | bool operator==(const Colormap &o) const |
| 93 | { |
| 94 | for (int i = 0; i < int(m_color.size()); ++i) |
| 95 | { |
| 96 | if (m_color[i] != o[i]) |
| 97 | return false; |
| 98 | } |
| 99 | return true; |
| 100 | } |
| 101 | |
| 102 | bool operator!=(const Colormap &o) const { return !operator==(o); } |
| 103 |