mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 21:13:35 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
22 lines
517 B
C++
22 lines
517 B
C++
#pragma once
|
|
|
|
#include "storage/storage_defines.hpp"
|
|
#include "storage/queued_country.hpp"
|
|
|
|
namespace storage
|
|
{
|
|
class QueueInterface
|
|
{
|
|
public:
|
|
using ForEachCountryFunction = std::function<void(QueuedCountry const & country)>;
|
|
|
|
virtual bool IsEmpty() const = 0;
|
|
virtual size_t Count() const = 0;
|
|
virtual bool Contains(CountryId const & country) const = 0;
|
|
virtual void ForEachCountry(ForEachCountryFunction const & fn) const = 0;
|
|
|
|
protected:
|
|
virtual ~QueueInterface() = default;
|
|
};
|
|
} // namespace storage
|