Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Gorshenin <y@maps.me>2015-07-01 18:49:50 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:53:34 +0300
commit21286b71c1fc3ac339eb490397c7f84bba80d922 (patch)
tree3c87c45fc306a395c4bf2858db658220f0a7b285 /indexer/mwm_set.hpp
parent54e5990c7e4c65b0749c21ce4fe3866909a29668 (diff)
[indexer, storage, framework] DeleteAllMaps() method is replaced by Clear().
Diffstat (limited to 'indexer/mwm_set.hpp')
-rw-r--r--indexer/mwm_set.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/indexer/mwm_set.hpp b/indexer/mwm_set.hpp
index dfc225f4c4..348bfb9d7a 100644
--- a/indexer/mwm_set.hpp
+++ b/indexer/mwm_set.hpp
@@ -74,7 +74,7 @@ private:
class MwmSet
{
public:
- struct MwmId
+ class MwmId
{
public:
friend class MwmSet;
@@ -187,7 +187,6 @@ protected:
public:
bool Deregister(platform::CountryFile const & countryFile);
- void DeregisterAll();
//@}
/// Returns true when country is registered and can be used.
@@ -197,6 +196,9 @@ public:
/// In that case, LockValue returns NULL.
void GetMwmsInfo(vector<shared_ptr<MwmInfo>> & info) const;
+ // Clears caches and mwm's registry. All known mwms won't be marked as DEREGISTERED.
+ void Clear();
+
void ClearCache();
MwmId GetMwmIdByCountryFile(platform::CountryFile const & countryFile) const;
@@ -208,8 +210,6 @@ protected:
virtual bool GetVersion(platform::LocalCountryFile const & localFile, MwmInfo & info) const = 0;
virtual TMwmValueBasePtr CreateValue(platform::LocalCountryFile const & localFile) const = 0;
- void Cleanup();
-
private:
typedef deque<pair<MwmId, TMwmValueBasePtr>> CacheType;