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

Method CategoriesCache

libs/search/categories_cache.hpp:24–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22public:
23 template <typename TypesSource>
24 CategoriesCache(TypesSource const & source, base::Cancellable const & cancellable) : m_cancellable(cancellable)
25 {
26 source.ForEachType([this](uint32_t type) { m_categories.Add(type); });
27 }
28
29 CategoriesCache(std::vector<uint32_t> const & types, base::Cancellable const & cancellable)
30 : m_cancellable(cancellable)

Callers

nothing calls this directly

Calls 2

ForEachTypeMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected