All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Types | Public Member Functions | Friends | List of all members
paal::data_structures::capacitated_voronoi< Metric, GeneratorsCapacieties, VerticesDemands >::Dist Class Reference

this class store as a distance: More...

#include <capacitated_voronoi.hpp>

Public Types

typedef metric_traits< Metric >
::DistanceType 
DistI
 

Public Member Functions

 Dist (DistI real, DistI distToFullAssign)
 constructor More...
 
Dist operator- (Dist d)
 operator- More...
 
DistI get_dist_to_full_assignment () const
 how many vertices are not covered
 
DistI get_real_dist () const
 sum of distances from vertices to facilities
 
bool operator== (Dist d) const
 operator== More...
 
bool operator> (Dist d) const
 operator> More...
 
const Distoperator+= (Dist d)
 operator+= More...
 
Dist operator+ (Dist d)
 operator+ More...
 
Dist operator- ()
 unary -operator More...
 

Friends

Dist operator+ (DistI di, Dist d)
 Dist + scalar (interpreted as real distance) More...
 
template<typename Stream >
Stream & operator<< (Stream &s, Dist d)
 operator<< More...
 

Detailed Description

template<typename Metric, typename GeneratorsCapacieties, typename VerticesDemands>
class paal::data_structures::capacitated_voronoi< Metric, GeneratorsCapacieties, VerticesDemands >::Dist

this class store as a distance:

Definition at line 55 of file capacitated_voronoi.hpp.

Constructor & Destructor Documentation

template<typename Metric , typename GeneratorsCapacieties , typename VerticesDemands >
paal::data_structures::capacitated_voronoi< Metric, GeneratorsCapacieties, VerticesDemands >::Dist::Dist ( DistI  real,
DistI  distToFullAssign 
)
inline

constructor

Parameters
real
distToFullAssign

Definition at line 66 of file capacitated_voronoi.hpp.

Member Function Documentation

template<typename Metric , typename GeneratorsCapacieties , typename VerticesDemands >
Dist paal::data_structures::capacitated_voronoi< Metric, GeneratorsCapacieties, VerticesDemands >::Dist::operator+ ( Dist  d)
inline

operator+

Parameters
d

Definition at line 132 of file capacitated_voronoi.hpp.

template<typename Metric , typename GeneratorsCapacieties , typename VerticesDemands >
const Dist& paal::data_structures::capacitated_voronoi< Metric, GeneratorsCapacieties, VerticesDemands >::Dist::operator+= ( Dist  d)
inline

operator+=

Parameters
d

Definition at line 121 of file capacitated_voronoi.hpp.

template<typename Metric , typename GeneratorsCapacieties , typename VerticesDemands >
Dist paal::data_structures::capacitated_voronoi< Metric, GeneratorsCapacieties, VerticesDemands >::Dist::operator- ( Dist  d)
inline

operator-

Parameters
d

Definition at line 74 of file capacitated_voronoi.hpp.

template<typename Metric , typename GeneratorsCapacieties , typename VerticesDemands >
Dist paal::data_structures::capacitated_voronoi< Metric, GeneratorsCapacieties, VerticesDemands >::Dist::operator- ( )
inline

unary -operator

Returns

Definition at line 143 of file capacitated_voronoi.hpp.

template<typename Metric , typename GeneratorsCapacieties , typename VerticesDemands >
bool paal::data_structures::capacitated_voronoi< Metric, GeneratorsCapacieties, VerticesDemands >::Dist::operator== ( Dist  d) const
inline

operator==

Parameters
d

Definition at line 97 of file capacitated_voronoi.hpp.

template<typename Metric , typename GeneratorsCapacieties , typename VerticesDemands >
bool paal::data_structures::capacitated_voronoi< Metric, GeneratorsCapacieties, VerticesDemands >::Dist::operator> ( Dist  d) const
inline

operator>

Parameters
d

Definition at line 107 of file capacitated_voronoi.hpp.

Friends And Related Function Documentation

template<typename Metric , typename GeneratorsCapacieties , typename VerticesDemands >
Dist operator+ ( DistI  di,
Dist  d 
)
friend

Dist + scalar (interpreted as real distance)

Parameters
di
d
Returns

Definition at line 155 of file capacitated_voronoi.hpp.

template<typename Metric , typename GeneratorsCapacieties , typename VerticesDemands >
template<typename Stream >
Stream& operator<< ( Stream &  s,
Dist  d 
)
friend

operator<<

Template Parameters
Stream
Parameters
s
d
Returns

Definition at line 169 of file capacitated_voronoi.hpp.


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