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

Method FindStreets

libs/search/streets_matcher.cpp:187–198  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

185
186// static
187void StreetsMatcher::FindStreets(BaseContext const & ctx, CBV const & candidates, FeaturesFilter const & filter,
188 QueryParams const & params, vector<Prediction> & predictions)
189{
190 for (size_t startToken = 0; startToken < ctx.NumTokens(); ++startToken)
191 {
192 if (ctx.IsTokenUsed(startToken))
193 continue;
194
195 ::search::FindStreets(ctx, candidates, filter, params, startToken, false /* withMisprints */, predictions);
196 ::search::FindStreets(ctx, candidates, filter, params, startToken, true /* withMisprints */, predictions);
197 }
198}
199} // namespace search

Callers

nothing calls this directly

Calls 3

FindStreetsFunction · 0.85
NumTokensMethod · 0.80
IsTokenUsedMethod · 0.80

Tested by

no test coverage detected