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

Method Init

libs/search/query_params.hpp:76–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75 template <typename IterT>
76 void Init(std::string const & /*query*/, IterT tokenBegin, IterT tokenEnd, String const & prefix)
77 {
78 Clear();
79
80 for (; tokenBegin != tokenEnd; ++tokenBegin)
81 m_tokens.emplace_back(*tokenBegin);
82
83 if (!prefix.empty())
84 {
85 m_prefixToken = Token(prefix);
86 m_hasPrefix = true;
87 }
88
89 m_typeIndices.resize(GetNumTokens());
90
91 AddSynonyms();
92 }
93
94 template <typename ContT>
95 void Init(std::string const & query, ContT const & tokens, bool isLastPrefix)

Callers

nothing calls this directly

Calls 9

ClearFunction · 0.85
backMethod · 0.80
TokenClass · 0.70
InitFunction · 0.50
emplace_backMethod · 0.45
emptyMethod · 0.45
resizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected