14 return os << std::setfill(
'0') << std::setw(rhs.
length) << std::hex << rhs.
value;
17 std::string
toHexString(
unsigned long long value,
unsigned long long length)
19 std::ostringstream ostr;
26 :matchInfoList(), requestInfoList()
31 :matchInfoList(matchesCount), requestInfoList()
37 :matchInfoList(matchesCount), requestInfoList()
39 resize(matchesCount, attributesCount);
58 size_t count = matchInfoList.size();
59 for (
size_t i=0;i<count;++i)
61 if (matchInfoList[i].isEmpty())
72 return matchInfoList[
index].getItem();
77 matchInfoList[
index].setItem(match);
82 matchInfoList[
index].setItem(std::forward<SphinxMatchInfo>(match));
97 size_t count = requestInfoList.size();
98 for (
size_t i=0;i<count;++i)
100 if (requestInfoList[i].isEmpty())
111 return requestInfoList[
index].getItem();
117 requestInfoList[
index].setItem(request);
122 requestInfoList[
index].setItem(std::forward<SphinxRequestInfo>(request));
127 const size_t matchInfoCount = matchInfoList.size();
128 for (
size_t i=0;i<matchInfoCount;++i)
129 matchInfoList[i].getItem().clear();
130 matchInfoList.clear();
132 const size_t requestInfoCount = requestInfoList.size();
133 for (
size_t i=0;i<requestInfoCount;++i)
134 requestInfoList[i].getItem().clear();
135 requestInfoList.clear();
140 const size_t matchInfoCount = matchInfoList.size();
141 for (
size_t i=0;i<matchInfoCount;++i)
143 matchInfoList[i].getItem().reset();
144 matchInfoList[i].isEmpty(
true);
147 const size_t requestInfoCount = requestInfoList.size();
148 for (
size_t i=0;i<requestInfoCount;++i)
150 requestInfoList[i].getItem().reset();
151 requestInfoList[i].isEmpty(
true);
157 matchInfoList.resize(matchesCount);
163 matchInfoList.resize(matchesCount);
164 for (
size_t i=0;i<matchesCount;++i)
165 matchInfoList[i].getItem().resize(attributesCount);
171 requestInfoList.clear();
177 for (
size_t i=0;i<requestInfoCount;++i)
181 for (
size_t j=0;j<wordsCount;++j)
198 for (
size_t i=0;i<matchInfoCount;++i)