| 34 | const std::string &Palette::getName() const { return _name; } |
| 35 | |
| 36 | PaletteEntry Palette::getEntry(const size_t index) const { |
| 37 | if (index >= _entries.size()) |
| 38 | throw std::out_of_range("Palette::getEntry: index out of range"); |
| 39 | |
| 40 | return _entries.at(index); |
| 41 | } |
| 42 | |
| 43 | const std::vector<PaletteEntry> &Palette::getEntries() const { return _entries; } |
| 44 |