35 #if defined(BasicPointPredicates_RECURSES)
36 #error Recursive header files inclusion detected in BasicPointPredicates.h
37 #else // defined(BasicPointPredicates_RECURSES)
39 #define BasicPointPredicates_RECURSES
41 #if !defined BasicPointPredicates_h
43 #define BasicPointPredicates_h
48 #include "DGtal/base/Common.h"
49 #include "DGtal/base/BasicBoolFunctors.h"
50 #include "DGtal/base/CPredicate.h"
51 #include "DGtal/base/ConstAlias.h"
52 #include "DGtal/kernel/CPointFunctor.h"
53 #include "DGtal/kernel/CPointPredicate.h"
69 template <
typename TPo
int,
bool boolCst>
90 template <
typename TPo
int>
103 template <
typename TPo
int>
117 template <
typename TPo
int>
146 template <
typename TPo
int>
174 template <
typename TPo
int>
183 const Point & upperBound );
206 template <
typename TPo
intPredicate>
211 typedef typename PointPredicate::Point
Point;
237 template <
typename TPo
int>
273 template <
typename TPointPredicate1,
typename TPointPredicate2,
279 typedef typename PointPredicate1::Point
Point;
280 typedef typename PointPredicate2::Point
Point2;
313 template <
typename TPo
intPredicate1,
typename TPo
intPredicate2>
318 typedef typename PointPredicate1::Point
Point;
319 typedef typename PointPredicate2::Point
Point2;
337 template <
typename TPo
intPredicate1,
typename TPo
intPredicate2>
342 typedef typename PointPredicate1::Point
Point;
343 typedef typename PointPredicate2::Point
Point2;
369 template <
typename TPo
intFunctor,
typename TPredicate>
377 typedef typename PointFunctor::Point
Point;
404 #include "DGtal/kernel/BasicPointPredicates.ih"
409 #endif // !defined BasicPointPredicates_h
411 #undef BasicPointPredicates_RECURSES
412 #endif // else defined(BasicPointPredicates_RECURSES)
const PointFunctor * myFun
alias of the PointFunctor.
Aim: The predicate returns true when the point predicate given at construction return false...
Point myPoint
Reference point.
bool operator()(const Point &p) const
bool operator()(const Point &p) const
BOOST_CONCEPT_ASSERT((concepts::CPointPredicate< PointPredicate >))
Aim: The predicate returns true when the point is within the given bounds.
BinaryPointPredicate(ConstAlias< PointPredicate1 > pred1, ConstAlias< PointPredicate2 > pred2, ConstAlias< TBinaryFunctor > boolFunctor)
PointPredicate2::Point Point2
TPointPredicate2 PointPredicate2
IsLowerPointPredicate(const Point &upperBound)
TPointPredicate1 PointPredicate1
Aim: The predicate returns true when the point given as argument equals the reference point given at ...
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
bool operator()(const Point &p) const
const PointPredicate2 * myPred2
TPointPredicate1 PointPredicate1
bool operator()(const Point &p) const
const AndBoolFct2 * myBoolFunctor
IsUpperPointPredicate(const Point &lowerBound)
NotPointPredicate(ConstAlias< PointPredicate > pred)
TPointFunctor PointFunctor
TPointPredicate PointPredicate
const TBinaryFunctor * myBoolFunctor
aliasing pointer to the binary functor.
PointPredicate1::Point Point
TPointPredicate2 PointPredicate2
Aim: The predicate returns true when the point is above (or equal) the given lower bound...
PointPredicate::Point Point
boost::function2< bool, bool, bool > BoolFunctor2
Aim: Defines a unary functor, which associates arguments to results.
EqualPointPredicate(const Point &aPoint)
PointPredicate1::Point Point
PointPredicate2::Point Point2
Aim: The predicate that returns always false.
IsWithinPointPredicate(const Point &lowerBound, const Point &upperBound)
Aim: Defines a predicate on a point.
PointFunctorPredicate(ConstAlias< PointFunctor > aFun, ConstAlias< Predicate > aPred)
BOOST_STATIC_ASSERT((boost::is_same< Point, Point2 >::value))
PointPredicate2::Point Point2
bool operator()(const Point &p) const
PointFunctor::Point Point
TPointPredicate1 PointPredicate1
Go to http://www.sgi.com/tech/stl/BinaryFunction.html.
bool operator()(const Point &p) const
bool operator()(const Point &p) const
DGtal is the top-level namespace which contains all DGtal functions and types.
Point myUpperBound
the upper bound.
const OrBoolFct2 * myBoolFunctor
PointPredicate1::Point Point
const PointPredicate2 * myPred2
aliasing pointer to the right predicate.
const PointPredicate * myPred
The PointPredicate that is inversed.
Aim: The predicate that returns always the same value boolCst.
TPointPredicate2 PointPredicate2
Point myLowerBound
the lower bound.
Point myLowerBound
the upper bound.
BOOST_CONCEPT_ASSERT((concepts::CPointFunctor< TPointFunctor >))
const PointPredicate1 * myPred1
Aim: Defines a functor on points.
Aim: The predicate returns true when the point is below (or equal) the given upper bound...
Aim: The predicate returns true when the given binary functor returns true for the two PointPredicate...
const PointPredicate1 * myPred1
aliasing pointer to the left predicate.
BOOST_CONCEPT_ASSERT((concepts::CPointPredicate< PointPredicate1 >))
Aim: The predicate that returns always true.
const PointPredicate1 * myPred1
bool operator()(const Point &p) const
Point myUpperBound
the lower bound.
const PointPredicate2 * myPred2
Aim: The predicate returns true when the predicate returns true for the value assigned to a given poi...
const Predicate * myPred
alias of the predicate.