DGtal
1.3.beta
src
DGtal
kernel
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)
34
35
#define CPointPredicate_RECURSES
36
37
#if !defined CPointPredicate_h
38
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
51
namespace
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
86
BOOST_CONCEPT_ASSERT
((
CUnaryFunctor<T,Point,bool>
));
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
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::concepts::CPointPredicate::Point
T::Point Point
Definition:
CPointPredicate.h:84
DGtal::concepts::CPointPredicate
Aim: Defines a predicate on a point.
Definition:
CPointPredicate.h:80
DGtal::concepts::CPredicate
Aim: Defines a predicate function, ie. a functor mapping a domain into the set of booleans.
Definition:
CPredicate.h:93
Point
MyPointD Point
Definition:
testClone2.cpp:383
DGtal::concepts::CUnaryFunctor
Aim: Defines a unary functor, which associates arguments to results.
Definition:
CUnaryFunctor.h:89
DGtal::concepts::CPointPredicate::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((CUnaryFunctor< T, Point, bool >))
Generated on Mon Jun 20 2022 18:23:27 for DGtal by
1.8.17