From 5b3b8c470c4207799b0dcd2adeee14984b1ffe8d Mon Sep 17 00:00:00 2001 From: tatiana-yan Date: Fri, 12 Oct 2018 17:50:40 +0300 Subject: [indexer] Move Classificator private methods to the bottom. --- indexer/classificator.hpp | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) (limited to 'indexer') diff --git a/indexer/classificator.hpp b/indexer/classificator.hpp index 7e81856efb..565a7dbb57 100644 --- a/indexer/classificator.hpp +++ b/indexer/classificator.hpp @@ -157,16 +157,6 @@ inline void swap(ClassifObject & r1, ClassifObject & r2) class Classificator { - DISALLOW_COPY_AND_MOVE(Classificator); - - ClassifObject m_root; - - IndexAndTypeMapping m_mapping; - - uint32_t m_coastType; - - static ClassifObject * AddV(ClassifObject * parent, std::string const & key, std::string const & value); - public: Classificator() : m_root("world") {} @@ -184,14 +174,6 @@ public: bool HasTypesMapping() const { return m_mapping.IsLoaded(); } - /// Return type by path in classificator tree, for example - /// path = ["natural", "caostline"]. - //@{ -private: - template - uint32_t GetTypeByPathImpl(Iter beg, Iter end) const; - -public: /// @return 0 in case of nonexisting type uint32_t GetTypeByPathSafe(std::vector const & path) const; /// Invokes ASSERT in case of nonexisting type @@ -242,6 +224,22 @@ public: /// @return Object name to show in UI (not for debug purposes). std::string GetReadableObjectName(uint32_t type) const; + +private: + static ClassifObject * AddV(ClassifObject * parent, std::string const & key, + std::string const & value); + + /// Return type by path in classificator tree, for example + /// path = ["natural", "caostline"]. + //@{ + template + uint32_t GetTypeByPathImpl(Iter beg, Iter end) const; + + ClassifObject m_root; + IndexAndTypeMapping m_mapping; + uint32_t m_coastType; + + DISALLOW_COPY_AND_MOVE(Classificator); }; Classificator & classif(); -- cgit v1.2.3