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>2016-09-20 14:48:47 +0300
committerYuri Gorshenin <y@maps.me>2016-09-20 14:51:15 +0300
commite3b5e4575e74a97c00d4ae9abe53c7447f74d13b (patch)
treed9ff29ee4c19fd741a648c22365e04cf150443cc /indexer/index.cpp
parent572db1c9e93f7995bb3a6d123e11c72d59fe3277 (diff)
[indexer] Extensions to FeaturesVector.
Diffstat (limited to 'indexer/index.cpp')
-rw-r--r--indexer/index.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indexer/index.cpp b/indexer/index.cpp
index 6811333464..5f642f40f3 100644
--- a/indexer/index.cpp
+++ b/indexer/index.cpp
@@ -135,3 +135,12 @@ bool Index::FeaturesLoaderGuard::GetOriginalFeatureByIndex(uint32_t index, Featu
ft.SetID(FeatureID(m_handle.GetId(), index));
return true;
}
+
+size_t Index::FeaturesLoaderGuard::GetNumFeatures() const
+{
+ if (!m_handle.IsAlive())
+ return 0;
+
+ ASSERT(m_vector.get(), ());
+ return m_vector->GetNumFeatures();
+}