strus  0.17
Public Member Functions | List of all members
strus::WeightedDocument Class Reference

Pure ranking result of a strus query without the attributes. More...

#include <weightedDocument.hpp>

Inheritance diagram for strus::WeightedDocument:
strus::ResultDocument

Public Member Functions

 WeightedDocument ()
 Default constructor. More...
 
 WeightedDocument (const WeightedDocument &o)
 Copy constructor. More...
 
 WeightedDocument (const Index &docno_, double weight_)
 Constructor. More...
 
Index docno () const
 Get the document number of the result. More...
 
double weight () const
 Get the accumulated weight of the ranking of the result. More...
 
bool operator< (const WeightedDocument &o) const
 Comparison for sorting. More...
 
bool operator> (const WeightedDocument &o) const
 Comparison for sorting. More...
 

Detailed Description

Pure ranking result of a strus query without the attributes.

Constructor & Destructor Documentation

strus::WeightedDocument::WeightedDocument ( )
inline

Default constructor.

strus::WeightedDocument::WeightedDocument ( const WeightedDocument o)
inline

Copy constructor.

strus::WeightedDocument::WeightedDocument ( const Index docno_,
double  weight_ 
)
inline

Constructor.

Member Function Documentation

Index strus::WeightedDocument::docno ( ) const
inline

Get the document number of the result.

bool strus::WeightedDocument::operator< ( const WeightedDocument o) const
inline

Comparison for sorting.

bool strus::WeightedDocument::operator> ( const WeightedDocument o) const
inline

Comparison for sorting.

double strus::WeightedDocument::weight ( ) const
inline

Get the accumulated weight of the ranking of the result.


The documentation for this class was generated from the following file: