FiReS  0.2.0
FiReS - Filter, Retrieval and Search
fires::ScalarComparer< T > Class Template Reference
+ Inheritance diagram for fires::ScalarComparer< T >:
+ Collaboration diagram for fires::ScalarComparer< T >:

Public Member Functions

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

Protected Member Functions

template<typename TYPE >
float _distance (const TYPE f1, const TYPE f2) const
 

Detailed Description

template<typename T>
class fires::ScalarComparer< T >

Definition at line 62 of file Comparer.h.

Member Function Documentation

template<typename T >
virtual float fires::ScalarComparer< T >::distance ( const Property f1,
const Property f2 
) const
inlinevirtual

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 from fires::Comparer.

Reimplemented in fires::ScalarComparer< T * >.

Definition at line 77 of file Comparer.h.


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