OpenTREP Logo  0.07.18
C++ Open Travel Request Parsing Library
Loading...
Searching...
No Matches
OPENTREP::ResultHolder Class Reference

Class wrapping functions on a list of Result objects. More...

#include <opentrep/bom/ResultHolder.hpp>

+ Inheritance diagram for OPENTREP::ResultHolder:

Public Member Functions

const TravelQuery_TgetQueryString () const
 
const ResultList_TgetResultList () const
 
const Percentage_TgetCombinedWeight () const
 
StringSet getCorrectedStringSet () const
 
void setCombinedWeight (const Percentage_T &iPercentage)
 
void displayXapianPercentages () const
 
void calculateEnvelopeWeights () const
 
void calculateCodeMatches () const
 
void calculatePageRanks () const
 
void calculateHeuristicWeights () const
 
void calculateCombinedWeights ()
 
void toStream (std::ostream &) const
 
void fromStream (std::istream &)
 
std::string toString () const
 
std::string describeKey () const
 
std::string describeShortKey () const
 

Friends

class FacResultCombination
 
class FacResultHolder
 

Detailed Description

Class wrapping functions on a list of Result objects.

Definition at line 26 of file ResultHolder.hpp.

Member Function Documentation

◆ getQueryString()

const TravelQuery_T & OPENTREP::ResultHolder::getQueryString ( ) const
inline

Get the query string.

Definition at line 34 of file ResultHolder.hpp.

◆ getResultList()

const ResultList_T & OPENTREP::ResultHolder::getResultList ( ) const
inline

Retrieve the list of result objects.

Definition at line 41 of file ResultHolder.hpp.

Referenced by OPENTREP::createPlaces().

◆ getCombinedWeight()

const Percentage_T & OPENTREP::ResultHolder::getCombinedWeight ( ) const
inline

Get the combined weight, for all the rules (full-text, PageRank, etc)

Definition at line 48 of file ResultHolder.hpp.

Referenced by OPENTREP::ResultCombination::chooseBestMatchingResultHolder(), and OPENTREP::ResultCombination::getBestMatchingWeight().

◆ getCorrectedStringSet()

StringSet OPENTREP::ResultHolder::getCorrectedStringSet ( ) const

◆ setCombinedWeight()

void OPENTREP::ResultHolder::setCombinedWeight ( const Percentage_T & iPercentage)
inline

Set the combined weight, for all the rules (full-text, PageRank, etc)

Definition at line 63 of file ResultHolder.hpp.

Referenced by calculateCombinedWeights().

◆ displayXapianPercentages()

void OPENTREP::ResultHolder::displayXapianPercentages ( ) const

Display the Xapian matching percentages for all the matching documents.

Definition at line 96 of file ResultHolder.cpp.

References OPENTREP::Result::displayXapianPercentages(), and displayXapianPercentages().

Referenced by OPENTREP::ResultCombination::displayXapianPercentages(), and displayXapianPercentages().

◆ calculateEnvelopeWeights()

void OPENTREP::ResultHolder::calculateEnvelopeWeights ( ) const

Calculate/set the envelope weights for all the matching documents

Definition at line 109 of file ResultHolder.cpp.

References OPENTREP::Result::calculateEnvelopeWeights(), and calculateEnvelopeWeights().

Referenced by OPENTREP::ResultCombination::calculateEnvelopeWeights(), and calculateEnvelopeWeights().

◆ calculateCodeMatches()

void OPENTREP::ResultHolder::calculateCodeMatches ( ) const

Calculate/set the IATA/ICAO code matching weights for all the matching documents

Definition at line 122 of file ResultHolder.cpp.

References OPENTREP::Result::calculateCodeMatches(), and calculateCodeMatches().

Referenced by OPENTREP::ResultCombination::calculateCodeMatches(), and calculateCodeMatches().

◆ calculatePageRanks()

void OPENTREP::ResultHolder::calculatePageRanks ( ) const

Calculate/set the PageRanks for all the matching documents

Definition at line 135 of file ResultHolder.cpp.

References OPENTREP::Result::calculatePageRanks(), and calculatePageRanks().

Referenced by OPENTREP::ResultCombination::calculatePageRanks(), and calculatePageRanks().

◆ calculateHeuristicWeights()

void OPENTREP::ResultHolder::calculateHeuristicWeights ( ) const

Calculate/set the heuristic weights for all the matching documents

Definition at line 148 of file ResultHolder.cpp.

References OPENTREP::Result::calculateHeuristicWeights(), and calculateHeuristicWeights().

Referenced by OPENTREP::ResultCombination::calculateHeuristicWeights(), and calculateHeuristicWeights().

◆ calculateCombinedWeights()

void OPENTREP::ResultHolder::calculateCombinedWeights ( )

◆ toStream()

void OPENTREP::ResultHolder::toStream ( std::ostream & ioOut) const
virtual

Dump a Business Object into an output stream.

Parameters
ostream&the output stream.

Implements OPENTREP::BomAbstract.

Definition at line 69 of file ResultHolder.cpp.

References toStream(), and toString().

Referenced by toStream().

◆ fromStream()

void OPENTREP::ResultHolder::fromStream ( std::istream & ioIn)
virtual

Read a Business Object from an input stream.

Parameters
istream&the input stream.

Implements OPENTREP::BomAbstract.

Definition at line 74 of file ResultHolder.cpp.

References fromStream().

Referenced by fromStream().

◆ toString()

std::string OPENTREP::ResultHolder::toString ( ) const
virtual

Get the serialised version of the Business Object.

Implements OPENTREP::BomAbstract.

Definition at line 49 of file ResultHolder.cpp.

References describeShortKey(), OPENTREP::Result::toString(), and toString().

Referenced by OPENTREP::searchString(), OPENTREP::ResultCombination::toString(), and toString().

◆ describeKey()

std::string OPENTREP::ResultHolder::describeKey ( ) const
virtual

Get a string describing the whole key (differentiating two objects at any level).

Implements OPENTREP::BomAbstract.

Definition at line 44 of file ResultHolder.cpp.

References describeKey(), and describeShortKey().

Referenced by calculateCombinedWeights(), and describeKey().

◆ describeShortKey()

std::string OPENTREP::ResultHolder::describeShortKey ( ) const
virtual

Get a string describing the short key (differentiating two objects at the same level).

Implements OPENTREP::BomAbstract.

Definition at line 37 of file ResultHolder.cpp.

References describeShortKey().

Referenced by OPENTREP::chooseBestMatchingResultHolder(), describeKey(), describeShortKey(), and toString().

Friends And Related Symbol Documentation

◆ FacResultCombination

friend class FacResultCombination
friend

Definition at line 27 of file ResultHolder.hpp.

References FacResultCombination.

Referenced by FacResultCombination.

◆ FacResultHolder

friend class FacResultHolder
friend

Definition at line 28 of file ResultHolder.hpp.

References FacResultHolder.

Referenced by FacResultHolder.


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