PMatchScore Class Reference

Detailed Description

The PMatchScore class is used to represent a score between two descriptions.

Definition at line 27 of file PMatchScore.h.

#include <PMatchScore.h>

Constructor & Destructor Documentation

◆ PMatchScore() [1/3]

PMatchScore::PMatchScore ( )

Constructs a match score of -INFINITY between two PGuid::Null() objects; threshold is set to -1.

◆ PMatchScore() [2/3]

PMatchScore::PMatchScore ( const PGuid objectId1,
const PGuid objectId2,
double  score,
double  threshold = -1.0 
)
explicit

Constructs a match score from the specified value.

◆ PMatchScore() [3/3]

PMatchScore::PMatchScore ( const PMatchScore other)

Constructs a deep copy of other.

◆ ~PMatchScore()

virtual PMatchScore::~PMatchScore ( )
virtual

Destroys this object.

Member Function Documentation

◆ GetIdentityId1()

PGuid PMatchScore::GetIdentityId1 ( ) const

Gets id of first object being compared.

◆ GetIdentityId2()

PGuid PMatchScore::GetIdentityId2 ( ) const

Gets id of second object being compared.

◆ GetScore()

double PMatchScore::GetScore ( ) const

Returns the score.

◆ GetThreshold()

double PMatchScore::GetThreshold ( ) const

Returns the threshold.

◆ IsVerified()

bool PMatchScore::IsVerified ( ) const

Returns whether the match has been verified.

◆ operator<()

bool PMatchScore::operator< ( const PMatchScore other) const

Compares this to another score.

◆ operator=()

PMatchScore& PMatchScore::operator= ( const PMatchScore other)

Performs a deep copy of other to this object.

◆ operator>()

bool PMatchScore::operator> ( const PMatchScore other) const

Compares this to another score.

◆ Reset()

void PMatchScore::Reset ( )

Resets this object.

Sets score to -INFINITY, threshold to -1 and objects id to PGuid::Null().

◆ Set()

void PMatchScore::Set ( const PGuid objectId1,
const PGuid objectId2,
double  score,
double  threshold 
)

Sets the all the parameters.

◆ SetScore()

void PMatchScore::SetScore ( double  score)

Sets the score from the specified value.

◆ SetThreshold()

void PMatchScore::SetThreshold ( double  threshold)

Sets the threshold from the specified value.