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-06-03 17:35:18 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:52:07 +0300
commit58fa09b57ec14a0a474e8fa5d476c2a71aaa5874 (patch)
tree38fc26d81418c30ebd8b2f303bda26902e66f590 /coding/dd_vector.hpp
parent3f37dc59dcf8277b55ac6da02440185bcfc68c5b (diff)
[omim] [indexer] Reorder indexing: all buckets for a feature instead of all features for a bucket.
Diffstat (limited to 'coding/dd_vector.hpp')
-rw-r--r--coding/dd_vector.hpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/coding/dd_vector.hpp b/coding/dd_vector.hpp
index 342ae43165..5e0195b599 100644
--- a/coding/dd_vector.hpp
+++ b/coding/dd_vector.hpp
@@ -7,12 +7,9 @@
#include "std/type_traits.hpp"
#include "std/iterator_facade.hpp"
-
-template <
- typename T,
- class TReader,
- typename TSize = uint32_t
- > class DDVector
+// Disk-driven vector.
+template <typename T, class TReader, typename TSize = uint32_t>
+class DDVector
{
public:
typedef T value_type;
@@ -166,7 +163,7 @@ private:
{
uint64_t const sz = m_reader.Size();
if ((sz % sizeof(T)) != 0)
- MYTHROW(OpenException, (sz, sizeof(T)));
+ MYTHROW(OpenException, ("Element size", sizeof(T), "does not divide total size", sz));
m_Size = static_cast<size_type>(sz / sizeof(T));
}