From 58fa09b57ec14a0a474e8fa5d476c2a71aaa5874 Mon Sep 17 00:00:00 2001 From: Maxim Pimenov Date: Wed, 3 Jun 2015 17:35:18 +0300 Subject: [omim] [indexer] Reorder indexing: all buckets for a feature instead of all features for a bucket. --- coding/dd_vector.hpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'coding/dd_vector.hpp') 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 +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(sz / sizeof(T)); } -- cgit v1.2.3