10 #ifndef _STRUS_VECTOR_QUERY_RESULT_HPP_INCLUDED
11 #define _STRUS_VECTOR_QUERY_RESULT_HPP_INCLUDED
22 :m_value(),m_weight(0.0){}
25 :m_value(o.m_value),m_weight(o.m_weight){}
28 :m_value(value_),m_weight(weight_){}
30 const std::string&
value()
const {
return m_value;}
31 double weight()
const {
return m_weight;}
35 if (m_weight < o.m_weight)
return true;
36 if (m_weight > o.m_weight)
return true;
37 return m_value < o.m_value;
double weight() const
Definition: vectorQueryResult.hpp:31
const std::string & value() const
Definition: vectorQueryResult.hpp:30
VectorQueryResult()
Default constructor.
Definition: vectorQueryResult.hpp:21
VectorQueryResult(const VectorQueryResult &o)
Copy constructor.
Definition: vectorQueryResult.hpp:24
VectorQueryResult(const std::string &value_, double weight_)
Constructor.
Definition: vectorQueryResult.hpp:27
bool operator<(const VectorQueryResult &o) const
Definition: vectorQueryResult.hpp:33
Result of a vector similarity search (associated feature value with weight)
Definition: vectorQueryResult.hpp:17