All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Types | Public Member Functions | Protected Types | Protected Attributes | Static Protected Attributes | List of all members
paal::data_structures::rectangle_array_metric< DistanceTypeParam > Class Template Reference

Metric implementation on 2 dimensional array distance calls on this metric are valid opnly when x < N and y < M (N and M given in the constructor) when we know that only certain calls occurs it might be worthwhile to use this metric More...

#include <basic_metrics.hpp>

Inheritance diagram for paal::data_structures::rectangle_array_metric< DistanceTypeParam >:
paal::data_structures::array_metric< DistanceTypeParam >

Public Types

typedef DistanceTypeParam DistanceType
 
typedef int VertexType
 

Public Member Functions

 rectangle_array_metric (int N=0, int M=0)
 constructor More...
 
DistanceType operator() (const VertexType &v, const VertexType &w) const
 operator(), valid only when v < N and w < M More...
 
DistanceType & operator() (const VertexType &v, const VertexType &w)
 operator(), valid only when v < N and w < M, nonconst version More...
 
template<typename OtherMetrics , typename XRange , typename YRange >
 rectangle_array_metric (const OtherMetrics &other, XRange &&xrange, YRange &&yrange)
 constructor from another metric More...
 
rectangle_array_metricoperator= (const rectangle_array_metric &am)
 operator= More...
 
bool operator== (const rectangle_array_metric &other) const
 operator==
 

Protected Types

typedef boost::multi_array
< DistanceType, DIM_NR
matrix_type
 

Protected Attributes

matrix_type m_matrix
 matrix with data
 

Static Protected Attributes

static const int DIM_NR = 2
 dimention of multi array
 

Detailed Description

template<typename DistanceTypeParam>
class paal::data_structures::rectangle_array_metric< DistanceTypeParam >

Metric implementation on 2 dimensional array distance calls on this metric are valid opnly when x < N and y < M (N and M given in the constructor) when we know that only certain calls occurs it might be worthwhile to use this metric

Template Parameters
DistanceTypeParam

Definition at line 38 of file basic_metrics.hpp.

Constructor & Destructor Documentation

template<typename DistanceTypeParam>
paal::data_structures::rectangle_array_metric< DistanceTypeParam >::rectangle_array_metric ( int  N = 0,
int  M = 0 
)
inline

constructor

Parameters
N
M

Definition at line 48 of file basic_metrics.hpp.

template<typename DistanceTypeParam>
template<typename OtherMetrics , typename XRange , typename YRange >
paal::data_structures::rectangle_array_metric< DistanceTypeParam >::rectangle_array_metric ( const OtherMetrics &  other,
XRange &&  xrange,
YRange &&  yrange 
)
inline

constructor from another metric

Template Parameters
OtherMetrics
Parameters
other
xrange
yrange

Definition at line 84 of file basic_metrics.hpp.

Member Function Documentation

template<typename DistanceTypeParam>
DistanceType paal::data_structures::rectangle_array_metric< DistanceTypeParam >::operator() ( const VertexType &  v,
const VertexType &  w 
) const
inline

operator(), valid only when v < N and w < M

Parameters
v
w
Returns

Definition at line 59 of file basic_metrics.hpp.

template<typename DistanceTypeParam>
DistanceType& paal::data_structures::rectangle_array_metric< DistanceTypeParam >::operator() ( const VertexType &  v,
const VertexType &  w 
)
inline

operator(), valid only when v < N and w < M, nonconst version

Parameters
v
w
Returns

Definition at line 71 of file basic_metrics.hpp.

template<typename DistanceTypeParam>
rectangle_array_metric& paal::data_structures::rectangle_array_metric< DistanceTypeParam >::operator= ( const rectangle_array_metric< DistanceTypeParam > &  am)
inline

operator=

Parameters
am
Returns

Definition at line 106 of file basic_metrics.hpp.


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