DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
CPointPredicate.h
1
16
17
#pragma once
18
30
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
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 Data --------------------------------
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::concepts
Aim: Gathers several functions useful for concept checks.
Definition
CPositiveIrreducibleFraction.h:54
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::concepts::CPointPredicate
Aim: Defines a predicate on a point.
Definition
CPointPredicate.h:81
DGtal::concepts::CPointPredicate::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((CUnaryFunctor< T, Point, bool >))
DGtal::concepts::CPointPredicate::Point
T::Point Point
Definition
CPointPredicate.h:84
DGtal::concepts::CPredicate
Aim: Defines a predicate function, ie. a functor mapping a domain into the set of booleans.
Definition
CPredicate.h:94
DGtal::concepts::CUnaryFunctor
Aim: Defines a unary functor, which associates arguments to results.
Definition
CUnaryFunctor.h:90
src
DGtal
kernel
CPointPredicate.h
Generated on
for DGtal by
1.18.0