DGtal 1.4.0
Loading...
Searching...
No Matches
CPointFunctor.h
1
17#pragma once
18
30#if defined(CPointFunctor_RECURSES)
31#error Recursive header files inclusion detected in CPointFunctor.h
32#else // defined(CPointFunctor_RECURSES)
34#define CPointFunctor_RECURSES
35
36#if !defined CPointFunctor_h
38#define CPointFunctor_h
39
41// Inclusions
42#include <iostream>
43#include "DGtal/base/Common.h"
44#include "DGtal/base/CUnaryFunctor.h"
46
47namespace DGtal
48{
49 namespace concepts
50 {
52 // class CPointFunctor
87 template <typename T>
88 struct CPointFunctor : CUnaryFunctor<T, typename T::Point, typename T::Value>
89 {
90 // ----------------------- Concept checks ------------------------------
91 public:
92 typedef typename T::Point Point;
93 typedef typename T::Value Value;
94
95 // ------------------------- Private Datas --------------------------------
96 private:
97 // ------------------------- Internals ------------------------------------
98 private:
99
100 }; // end of concept CPointFunctor
101 }
102} // namespace DGtal
103
104// //
106
107#endif // !defined CPointFunctor_h
108
109#undef CPointFunctor_RECURSES
110#endif // else defined(CPointFunctor_RECURSES)
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: Defines a functor on points.
Aim: Defines a unary functor, which associates arguments to results.