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:
authorvng <viktor.govako@gmail.com>2012-09-21 03:31:52 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:43:37 +0300
commitd03e167bc0484fcf9837da2a84ff2bc220ad0203 (patch)
tree568ba7847b0287e787ab2d1afdd63cf6f05475f9 /indexer/index.cpp
parent94fa7d216cffdffe1fbfd58923fe2e6f13523b3a (diff)
Framework::GetVisiblePOI is working for symbols now.
Diffstat (limited to 'indexer/index.cpp')
-rw-r--r--indexer/index.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/indexer/index.cpp b/indexer/index.cpp
index 69de20d718..cd6989798d 100644
--- a/indexer/index.cpp
+++ b/indexer/index.cpp
@@ -120,3 +120,15 @@ void Index::UpdateMwmInfo(MwmId id)
break;
}
}
+
+Index::FeaturesLoaderGuard::FeaturesLoaderGuard(Index const & parent, MwmId id)
+ : m_lock(parent, id),
+ /// @note This guard is suitable when mwm is loaded
+ m_vector(m_lock.GetValue()->m_cont, m_lock.GetValue()->GetHeader())
+{
+}
+
+void Index::FeaturesLoaderGuard::GetFeature(uint32_t offset, FeatureType & ft)
+{
+ m_vector.Get(offset, ft);
+}