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

Method FeaturesLoaderGuard

libs/indexer/data_source.hpp:91–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89{
90public:
91 FeaturesLoaderGuard(DataSource const & dataSource, DataSource::MwmId const & id)
92 : m_handle(dataSource.GetMwmHandleById(id))
93 , m_source(dataSource.CreateFeatureSource(m_handle))
94 {
95 // FeaturesLoaderGuard is always created in-place, so MWM should always be alive.
96 ASSERT(id.IsAlive(), ());
97 }
98
99 MwmSet::MwmId const & GetId() const { return m_handle.GetId(); }
100 MwmSet::MwmHandle const & GetHandle() const { return m_handle; }

Callers

nothing calls this directly

Calls 4

ASSERTFunction · 0.85
CreateFeatureSourceMethod · 0.80
GetMwmHandleByIdMethod · 0.45
IsAliveMethod · 0.45

Tested by

no test coverage detected