\brief Returns the next entry in the map, or `nullptr` if at the end of the collection.
| 87 | //! \brief Returns the next entry in the map, or `nullptr` if at the end of |
| 88 | //! the collection. |
| 89 | const Entry* Next() { |
| 90 | while (current_ < map_.num_entries) { |
| 91 | const Entry* entry = &map_.entries_[current_++]; |
| 92 | if (entry->is_active()) { |
| 93 | return entry; |
| 94 | } |
| 95 | } |
| 96 | return nullptr; |
| 97 | } |
| 98 | |
| 99 | private: |
| 100 | const TSimpleStringDictionary& map_; |