DGtal 1.4.0
Loading...
Searching...
No Matches
CPointPredicate.h
1
17#pragma once
18
31#if defined(CPointPredicate_RECURSES)
32#error Recursive header files inclusion detected in CPointPredicate.h
33#else // defined(CPointPredicate_RECURSES)
35#define CPointPredicate_RECURSES
36
37#if !defined CPointPredicate_h
39#define CPointPredicate_h
40
42// Inclusions
43#include <iostream>
44#include "DGtal/base/Common.h"
45
46#include "DGtal/base/CPredicate.h"
47
49
50// @since 0.8 In DGtal::concepts
51namespace DGtal {
52 namespace concepts {
53
55 // class CPointPredicate
79 template <typename T>
80 struct CPointPredicate: CPredicate<T, typename T::Point>
81 {
82 // ----------------------- Concept checks ------------------------------
83 public:
84 typedef typename T::Point Point;
85
87
88 // ------------------------- Private Datas --------------------------------
89 private:
90 // ------------------------- Internals ------------------------------------
91 private:
92
93
94 }; // end of concept CPointPredicate
95} // namespace concepts
96} // namespace DGtal
97
98// //
100
101#endif // !defined CPointPredicate_h
102
103#undef CPointPredicate_RECURSES
104#endif // else defined(CPointPredicate_RECURSES)
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: Defines a predicate on a point.
BOOST_CONCEPT_ASSERT((CUnaryFunctor< T, Point, bool >))
Aim: Defines a predicate function, ie. a functor mapping a domain into the set of booleans.
Definition CPredicate.h:94
Aim: Defines a unary functor, which associates arguments to results.