Soprano  2.9.4
Public Member Functions | List of all members
Soprano::Index::QueryHit Class Reference

QueryHit represents a hit from an IndexFilterModel query. It basically is an RDF resource combined with a hit score. More...

#include <Soprano/Index/QueryHit>

Public Member Functions

 QueryHit ()
 
 QueryHit (const QueryHit &)
 
 QueryHit (const Node &resource, double score)
 
 ~QueryHit ()
 
QueryHitoperator= (const QueryHit &)
 
double score () const
 
Node resource () const
 

Detailed Description

QueryHit represents a hit from an IndexFilterModel query. It basically is an RDF resource combined with a hit score.

Definition at line 40 of file indexqueryhit.h.

Constructor & Destructor Documentation

◆ QueryHit() [1/3]

Soprano::Index::QueryHit::QueryHit ( )

Create an empty hit.

◆ QueryHit() [2/3]

Soprano::Index::QueryHit::QueryHit ( const QueryHit )

Default copy constructor.

◆ QueryHit() [3/3]

Soprano::Index::QueryHit::QueryHit ( const Node resource,
double  score 
)

Create a new hit.

Parameters
resourceThe resource of the hit.
scoreThe hit score.

◆ ~QueryHit()

Soprano::Index::QueryHit::~QueryHit ( )

Destructor.

Member Function Documentation

◆ operator=()

QueryHit& Soprano::Index::QueryHit::operator= ( const QueryHit )

◆ score()

double Soprano::Index::QueryHit::score ( ) const

◆ resource()

Node Soprano::Index::QueryHit::resource ( ) const

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