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);
77 unsigned long long value = 0;
80 value = std::stoull(weight);
82 catch(std::exception&)
104 docId = std::move(rhs.getDocId());
105 weight = std::move(rhs.getWeight());
106 attributes = std::move(rhs.getAttributes());
129 for (
size_t i=0;i<attributes.size();++i)
131 if (attributes[i].getItem().name == attrName)
133 attrInfo = attributes[i].getItem();
142 size_t count = attributes.size();
143 for (
size_t i=0;i<count;++i)
145 if (attributes[i].isEmpty())
156 return attributes[
index].getItem();
161 attributes[
index].setItem(attr);
166 attributes[
index].setItem(std::forward<AttrInfo>(attr));
180 const size_t count = attributes.size();
181 for (
size_t i=0;i<count;++i)
182 attributes[i].isEmpty(
true);
187 attributes.resize(sz);