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>2015-07-17 15:51:04 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:57:14 +0300
commit4df12718bfe698acf09dccdb383409f7b3468ef3 (patch)
tree4f1fd9cec808b643a7bd4855d1aa7c9ab0f93f74 /indexer/features_vector.hpp
parent68403bb083aa9f66b90d9d3bdc8b14223508ab77 (diff)
Simplified feature::DataHeader routine.
Diffstat (limited to 'indexer/features_vector.hpp')
-rw-r--r--indexer/features_vector.hpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/indexer/features_vector.hpp b/indexer/features_vector.hpp
index 2b90b6efeb..3c63fc3833 100644
--- a/indexer/features_vector.hpp
+++ b/indexer/features_vector.hpp
@@ -4,8 +4,6 @@
#include "coding/var_record_reader.hpp"
-#include "std/noncopyable.hpp"
-
namespace feature { class FeaturesOffsetsTable; }
@@ -13,6 +11,8 @@ namespace feature { class FeaturesOffsetsTable; }
/// You should have separate instance of Vector for every thread.
class FeaturesVector
{
+ DISALLOW_COPY(FeaturesVector);
+
public:
FeaturesVector(FilesContainerR const & cont, feature::DataHeader const & header,
feature::FeaturesOffsetsTable const * table)
@@ -52,20 +52,13 @@ private:
};
/// Test features vector (reader) that combines all the needed data for stand-alone work.
-class FeaturesVectorTest : private noncopyable
+/// Used in generator_tool and unit tests.
+class FeaturesVectorTest
{
FilesContainerR m_cont;
feature::DataHeader m_header;
-
- struct Initializer
- {
- Initializer(FeaturesVectorTest * p);
- } m_initializer;
-
FeaturesVector m_vector;
- void Init();
-
public:
explicit FeaturesVectorTest(string const & filePath);
explicit FeaturesVectorTest(FilesContainerR const & cont);