DGtal 1.4.0
Loading...
Searching...
No Matches
CMetricSpace.h
1
17#pragma once
18
31#if defined(CMetricSpace_RECURSES)
32#error Recursive header files inclusion detected in CMetricSpace.h
33#else // defined(CMetricSpace_RECURSES)
35#define CMetricSpace_RECURSES
36
37#if !defined CMetricSpace_h
39#define CMetricSpace_h
40
42// Inclusions
43#include <iostream>
44#include "DGtal/base/Common.h"
45#include "DGtal/kernel/CSpace.h"
46#include "DGtal/base/CQuantity.h"
48
49namespace DGtal
50{
51 namespace concepts
52 {
53
55// class CMetricSpace
123template <typename T>
125{
126 // ----------------------- Concept checks ------------------------------
127public:
128 typedef typename T::Point Point;
129 typedef typename T::Space Space;
130 typedef typename T::Value Value;
131 typedef typename T::RawValue RawValue;
132
136
141
143 {
144 // const method dummyConst should take parameter myA of type A and return
145 // something of type B
149 }
150 // ------------------------- Private Datas --------------------------------
151private:
152 T myX; // do not require T to be default constructible.
157 // ------------------------- Internals ------------------------------------
158private:
159
160}; // end of concept CMetricSpace
161 } //namespace concept
162} // namespace DGtal
163
164// //
166
167#endif // !defined CMetricSpace_h
168
169#undef CMetricSpace_RECURSES
170#endif // else defined(CMetricSpace_RECURSES)
void sameType(const T &, const T &)
DGtal is the top-level namespace which contains all DGtal functions and types.
Closest
Definition Common.h:146
Aim: defines the concept of metric spaces.
BOOST_CONCEPT_ASSERT((CQuantity< RawValue >))
BOOST_CONCEPT_ASSERT((CQuantity< Value >))
BOOST_CONCEPT_ASSERT((CSpace< Space >))
Aim: defines the concept of quantity in DGtal.
Definition CQuantity.h:93
Aim: Defines the concept describing a digital space, ie a cartesian product of integer lines.
Definition CSpace.h:106
Go to http://www.sgi.com/tech/stl/Assignable.html.
Definition Boost.dox:32
Go to http://www.sgi.com/tech/stl/CopyConstructible.html.
Definition Boost.dox:34