comparators::distance_compare< CenterType, T, Distance, Compare > Class Template Reference

compares distances to a given center point More...

#include <source/ariba/overlay/modules/chord/detail/comparators.hpp>

Collaboration diagram for comparators::distance_compare< CenterType, T, Distance, Compare >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 distance_compare (CenterType center, Distance distance=Distance(), Compare compare=Compare())
const CenterType get_center () const
int operator() (const T &x, const T &y)

Private Attributes

CenterType center
Distance distance
Compare compare


Detailed Description

template<class CenterType, class T, class Distance = default_distance, class Compare = default_compare>
class comparators::distance_compare< CenterType, T, Distance, Compare >

compares distances to a given center point

Definition at line 63 of file comparators.hpp.


Constructor & Destructor Documentation

template<class CenterType, class T, class Distance = default_distance, class Compare = default_compare>
comparators::distance_compare< CenterType, T, Distance, Compare >::distance_compare ( CenterType  center,
Distance  distance = Distance(),
Compare  compare = Compare() 
) [inline, explicit]

Definition at line 70 of file comparators.hpp.


Member Function Documentation

template<class CenterType, class T, class Distance = default_distance, class Compare = default_compare>
const CenterType comparators::distance_compare< CenterType, T, Distance, Compare >::get_center (  )  const [inline]

Definition at line 75 of file comparators.hpp.

template<class CenterType, class T, class Distance = default_distance, class Compare = default_compare>
int comparators::distance_compare< CenterType, T, Distance, Compare >::operator() ( const T &  x,
const T &  y 
) [inline]


Member Data Documentation

template<class CenterType, class T, class Distance = default_distance, class Compare = default_compare>
CenterType comparators::distance_compare< CenterType, T, Distance, Compare >::center [private]

Definition at line 65 of file comparators.hpp.

template<class CenterType, class T, class Distance = default_distance, class Compare = default_compare>
Distance comparators::distance_compare< CenterType, T, Distance, Compare >::distance [private]

template<class CenterType, class T, class Distance = default_distance, class Compare = default_compare>
Compare comparators::distance_compare< CenterType, T, Distance, Compare >::compare [private]


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

Generated on Wed May 27 18:24:14 2009 for Ariba by  doxygen 1.5.6