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-03-06 02:24:33 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:36:28 +0300
commitfa598cd43e9c52c1492f5f105f5868dd4690f209 (patch)
treea63a5dc0ead2ce8cf37f08e42da2cd4e41bd789b /indexer/feature_data.hpp
parent99179605b3633890a68376e886c45ecd393c2c3c (diff)
[search] Index generation: skip type 'building' for features with no names.
Diffstat (limited to 'indexer/feature_data.hpp')
-rw-r--r--indexer/feature_data.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indexer/feature_data.hpp b/indexer/feature_data.hpp
index 8b5a2419a1..c5aeb7652f 100644
--- a/indexer/feature_data.hpp
+++ b/indexer/feature_data.hpp
@@ -67,6 +67,7 @@ namespace feature
//@{
inline EGeomType GetGeoType() const { return m_geoType; }
+ inline bool Empty() const { return (m_size == 0); }
inline size_t Size() const { return m_size; }
inline uint32_t operator[] (size_t i) const
{
@@ -84,6 +85,8 @@ namespace feature
uint32_t const * e = m_types + m_size;
return (find(m_types, e, t) != e);
}
+
+ void Remove(uint32_t t);
//@}
string DebugPrint() const;