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:
authorLev Dragunov <l.dragunov@corp.mail.ru>2015-02-25 14:35:35 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:37:41 +0300
commitb204554b70072af65b4db3920ed83d31c12be4c7 (patch)
treebc3a530d4fd41cf9b234866cf3f35579e814790e /indexer/features_offsets_table.hpp
parent7dc3d2e13a3c715cebf0a67ade839738708eab27 (diff)
FeaturesOffsets table onload building
Diffstat (limited to 'indexer/features_offsets_table.hpp')
-rw-r--r--indexer/features_offsets_table.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/indexer/features_offsets_table.hpp b/indexer/features_offsets_table.hpp
index c6a0ba9417..92447e19c4 100644
--- a/indexer/features_offsets_table.hpp
+++ b/indexer/features_offsets_table.hpp
@@ -57,6 +57,21 @@ namespace feature
/// when it's not possible to load FeaturesOffsetsTable.
static unique_ptr<FeaturesOffsetsTable> Load(FilesMappingContainer const & container);
+ /// Loads FeaturesOffsetsTable from FilesMappingContainer. Note
+ /// that some part of a file referenced by container will be
+ /// mapped to the memory and used by internal structures of
+ /// FeaturesOffsetsTable.
+ /// If there is no FeaturesOffsetsTable section in the container,
+ /// the function builds it from section devoted to features.
+ ///
+ /// \warning May take a lot of time if there is no precomputed section
+ ///
+ /// \param container a container with a section devoted to
+ /// FeaturesOffsetsTable
+ /// \return a pointer to an instance of FeaturesOffsetsTable or nullptr
+ /// when it's not possible to create FeaturesOffsetsTable.
+ static unique_ptr<FeaturesOffsetsTable> CreateIfNotExistsAndLoad(FilesMappingContainer const & container);
+
FeaturesOffsetsTable(FeaturesOffsetsTable const &) = delete;
FeaturesOffsetsTable const & operator=(FeaturesOffsetsTable const &) = delete;