diff options
author | vng <viktor.govako@gmail.com> | 2011-10-12 16:51:26 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:25:52 +0300 |
commit | c8325d4b968c95ae75f160f7b294903667bd5cd8 (patch) | |
tree | b08a6266a210255681e0211000582b4a8d77101d /indexer/classificator.hpp | |
parent | fcd78ab8b20853699a7edc25581f1faf12cf9516 (diff) |
Calculate coastline type value for once. It's use very often.
Diffstat (limited to 'indexer/classificator.hpp')
-rw-r--r-- | indexer/classificator.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indexer/classificator.hpp b/indexer/classificator.hpp index 37e2c95c5d..8d22c5eb50 100644 --- a/indexer/classificator.hpp +++ b/indexer/classificator.hpp @@ -199,6 +199,8 @@ class Classificator Index2Type m_i2t; Type2Index m_t2i; + uint32_t m_coastType; + static ClassifObject * AddV(ClassifObject * parent, string const & key, string const & value); public: @@ -226,7 +228,7 @@ public: uint32_t GetIndexForType(uint32_t t) const { return m_t2i.GetIndex(t); } uint32_t GetTypeForIndex(uint32_t i) const { return m_i2t.GetType(i); } - uint32_t GetCoastType() const; + inline uint32_t GetCoastType() const { return m_coastType; } // Iterate for possible objects types //template <class ToDo> void ForEachType(ToDo toDo) @@ -240,7 +242,6 @@ public: ClassifObject * GetMutableRoot() { return &m_root; } //@} -public: /// @name Used only in feature_visibility.cpp, not for public use. //@{ template <class ToDo> typename ToDo::ResultType |