FiReS  0.2.0
FiReS - Filter, Retrieval and Search
fires::Comparer Class Reference

Parent comparer class that provides the distance computation virtual method. More...

#include <Comparer.h>

+ Inheritance diagram for fires::Comparer:
+ Collaboration diagram for fires::Comparer:

Public Member Functions

virtual float distance (const Property &f1, const Property &f2) const
 Virtual method to compute distance. More...
 

Detailed Description

Parent comparer class that provides the distance computation virtual method.

This method has to be rewritten by the actual comparer which have to be derived from this class.

Definition at line 38 of file Comparer.h.

Member Function Documentation

virtual float fires::Comparer::distance ( const Property f1,
const Property f2 
) const
virtual

Virtual method to compute distance.

Has to be rewritten by the specific comparers.

Parameters
f1First property to compare.
f2Second property to compare.
Returns
Distance between properties

Reimplemented in fires::ScalarComparer< T * >, and fires::ScalarComparer< T >.

Referenced by fires::ScalarComparer< T * >::distance().

+ Here is the caller graph for this function:


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