18 (*this) = std::forward<AttrInfo>(rhs);
35 name = std::move(rhs.name);
36 value = std::move(rhs.value);
53 :
docId(0),
weight(
""), attributes(rhs.getAttributes().size())
59 :
docId(0),
weight(
""), attributes(rhs.getAttributes().size())
61 (*this) = std::forward<SphinxMatchInfo>(rhs);
76 unsigned long long value = 0;
79 value = std::stoull(weight);
81 catch(std::exception&)
103 docId = std::move(rhs.getDocId());
104 weight = std::move(rhs.getWeight());
105 attributes = std::move(rhs.getAttributes());
128 for (
size_t i=0;i<attributes.size();++i)
130 if (attributes[i].getItem().name == attrName)
132 attrInfo = attributes[i].getItem();
141 size_t count = attributes.size();
142 for (
size_t i=0;i<count;++i)
144 if (attributes[i].isEmpty())
155 return attributes[
index].getItem();
160 attributes[
index].setItem(attr);
165 attributes[
index].setItem(std::forward<AttrInfo>(attr));
179 const size_t count = attributes.size();
180 for (
size_t i=0;i<count;++i)
181 attributes[i].isEmpty(
true);
186 attributes.resize(sz);