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:
authorMaxim Pimenov <m@maps.me>2015-10-21 14:46:54 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:02:27 +0300
commit2ef3f59f92b5fbace5c600cd968b8d0e795529e0 (patch)
treef5ba71a73de89bb0ad60d5ce25129443d95afd84 /coding/compressed_bit_vector.hpp
parent7e2abfba0bffbc3e96314f6c1dabe5e27f9782e8 (diff)
Switched the search index to use compressed bit vectors.
Diffstat (limited to 'coding/compressed_bit_vector.hpp')
-rw-r--r--coding/compressed_bit_vector.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/coding/compressed_bit_vector.hpp b/coding/compressed_bit_vector.hpp
index 95d2d86ac4..82f67d1ad5 100644
--- a/coding/compressed_bit_vector.hpp
+++ b/coding/compressed_bit_vector.hpp
@@ -2,8 +2,11 @@
#include "coding/reader.hpp"
#include "coding/writer.hpp"
+#include "base/assert.hpp"
+
#include "std/algorithm.hpp"
#include "std/unique_ptr.hpp"
+#include "std/utility.hpp"
#include "std/vector.hpp"
namespace coding
@@ -150,6 +153,9 @@ public:
// by concatenating the elements of bitGroups.
static unique_ptr<CompressedBitVector> FromBitGroups(vector<uint64_t> && bitGroups);
+ // Copies a CBV.
+ static unique_ptr<CompressedBitVector> FromCBV(CompressedBitVector const & cbv);
+
// Reads a bit vector from reader which must contain a valid
// bit vector representation (see CompressedBitVector::Serialize for the format).
template <typename TReader>