cpp-toolbox  0.0.1
A toolbox library for C++
Loading...
Searching...
No Matches
toolbox::metrics::IMetric< T > Class Template Referenceabstract

#include <metric_factory.hpp>

Inheritance diagram for toolbox::metrics::IMetric< T >:

Public Types

using element_type = T
 
using result_type = T
 

Public Member Functions

virtual ~IMetric ()=default
 
virtual T distance (const T *a, const T *b, std::size_t size) const =0
 
virtual T squared_distance (const T *a, const T *b, std::size_t size) const =0
 
template<typename Container >
distance (const Container &a, const Container &b) const
 
template<typename Container >
squared_distance (const Container &a, const Container &b) const
 

Member Typedef Documentation

◆ element_type

template<typename T >
using toolbox::metrics::IMetric< T >::element_type = T

◆ result_type

template<typename T >
using toolbox::metrics::IMetric< T >::result_type = T

Constructor & Destructor Documentation

◆ ~IMetric()

template<typename T >
virtual toolbox::metrics::IMetric< T >::~IMetric ( )
virtualdefault

Member Function Documentation

◆ distance() [1/2]

template<typename T >
template<typename Container >
T toolbox::metrics::IMetric< T >::distance ( const Container &  a,
const Container &  b 
) const
inline

◆ distance() [2/2]

template<typename T >
virtual T toolbox::metrics::IMetric< T >::distance ( const T *  a,
const T *  b,
std::size_t  size 
) const
pure virtual

◆ squared_distance() [1/2]

template<typename T >
template<typename Container >
T toolbox::metrics::IMetric< T >::squared_distance ( const Container &  a,
const Container &  b 
) const
inline

◆ squared_distance() [2/2]

template<typename T >
virtual T toolbox::metrics::IMetric< T >::squared_distance ( const T *  a,
const T *  b,
std::size_t  size 
) const
pure virtual

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