diff options
author | vng <viktor.govako@gmail.com> | 2014-07-24 21:15:16 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:21:51 +0300 |
commit | 4dda2e079c494dcb6524ddbf96135f0cadd75e16 (patch) | |
tree | 6bfa67323045f5693916e47e422459aca46c986e /indexer/feature_data.hpp | |
parent | 3909bc8adce870bf1ce7f89078412d28994757e1 (diff) |
[search] Refactored emitting final search results.
Diffstat (limited to 'indexer/feature_data.hpp')
-rw-r--r-- | indexer/feature_data.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indexer/feature_data.hpp b/indexer/feature_data.hpp index af9230fec6..2d1d0f09a3 100644 --- a/indexer/feature_data.hpp +++ b/indexer/feature_data.hpp @@ -66,6 +66,12 @@ namespace feature TypesHolder(EGeomType geoType = GEOM_UNDEFINED) : m_size(0), m_geoType(geoType) {} TypesHolder(FeatureBase const & f); + void Assign(uint32_t type) + { + m_types[0] = type; + m_size = 1; + } + /// Accumulation function. inline void operator() (uint32_t t) { m_types[m_size++] = t; } |