DGtal
1.1.0
src
DGtal
geometry
volumes
distance
CDigitalMetricSpace.h
1
17
#pragma once
18
31
#if defined(CDigitalMetricSpace_RECURSES)
32
#error Recursive header files inclusion detected in CDigitalMetricSpace.h
33
#else // defined(CDigitalMetricSpace_RECURSES)
34
35
#define CDigitalMetricSpace_RECURSES
36
37
#if !defined CDigitalMetricSpace_h
38
39
#define CDigitalMetricSpace_h
40
42
// Inclusions
43
#include <iostream>
44
#include "DGtal/base/Common.h"
45
#include "DGtal/kernel/CInteger.h"
46
#include "DGtal/geometry/volumes/distance/CMetricSpace.h"
48
49
namespace
DGtal
50
{
51
namespace
concepts
52
{
53
55
// class CDigitalMetricSpace
97
template
<
typename
T>
98
struct
CDigitalMetricSpace
:
concepts::CMetricSpace
<T>
99
{
100
// ----------------------- Concept checks ------------------------------
101
public
:
102
typedef
typename
T::Point
Point
;
103
typedef
typename
T::Space
Space
;
104
typedef
typename
T::Value
Value
;
105
typedef
typename
T::RawValue
RawValue
;
106
107
BOOST_CONCEPT_ASSERT
((
CInteger< Value >
));
108
BOOST_CONCEPT_ASSERT
((
CInteger< RawValue >
));
109
110
111
// ------------------------- Internals ------------------------------------
112
private
:
113
114
};
// end of concept CDigitalMetricSpace
115
116
}
// namespace concepts
117
118
}
// namespace DGtal
119
120
// //
122
123
#endif // !defined CDigitalMetricSpace_h
124
125
#undef CDigitalMetricSpace_RECURSES
126
#endif // else defined(CDigitalMetricSpace_RECURSES)
DGtal::concepts::CInteger
Aim: Concept checking for Integer Numbers. More precisely, this concept is a refinement of both CEucl...
Definition:
CInteger.h:88
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition:
ClosedIntegerHalfPlane.h:49
DGtal::concepts::CDigitalMetricSpace::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((CInteger< RawValue >))
DGtal::concepts::CDigitalMetricSpace::RawValue
T::RawValue RawValue
Definition:
CDigitalMetricSpace.h:105
DGtal::concepts::CDigitalMetricSpace::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((CInteger< Value >))
DGtal::concepts::CDigitalMetricSpace::Value
T::Value Value
Definition:
CDigitalMetricSpace.h:104
DGtal::concepts::CMetricSpace
Aim: defines the concept of metric spaces.
Definition:
CMetricSpace.h:125
DGtal::concepts::CDigitalMetricSpace::Space
T::Space Space
Definition:
CDigitalMetricSpace.h:103
Space
SpaceND< 2 > Space
Definition:
testSimpleRandomAccessRangeFromPoint.cpp:42
DGtal::concepts::CDigitalMetricSpace::Point
T::Point Point
Definition:
CDigitalMetricSpace.h:102
Point
MyPointD Point
Definition:
testClone2.cpp:383
DGtal::concepts::CDigitalMetricSpace
Aim: defines the concept of digital metric spaces.
Definition:
CDigitalMetricSpace.h:99
Value
double Value
Definition:
testSimpleRandomAccessRangeFromPoint.cpp:38
Generated on Fri Oct 9 2020 08:57:45 for DGtal by
1.8.20