MCPcopy Create free account
hub / github.com/comaps/comaps / EnsureTableLoaded

Method EnsureTableLoaded

libs/search/geocoder.cpp:152–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150
151private:
152 void EnsureTableLoaded() const
153 {
154 if (m_table)
155 return;
156 m_table = search::RankTable::Load(m_value.m_cont, SEARCH_RANKS_FILE_TAG);
157 if (!m_table)
158 m_table = make_unique<search::DummyRankTable>();
159 }
160
161 MwmValue const & m_value;
162 mutable unique_ptr<search::RankTable> m_table;

Callers

nothing calls this directly

Calls 1

LoadFunction · 0.50

Tested by

no test coverage detected