DGtal  1.5.beta
CPredicate.h
1 
17 #pragma once
18 
31 #if defined(CPredicate_RECURSES)
32 #error Recursive header files inclusion detected in CPredicate.h
33 #else // defined(CPredicate_RECURSES)
35 #define CPredicate_RECURSES
36 
37 #if !defined CPredicate_h
39 #define CPredicate_h
40 
42 // Inclusions
43 #include <iostream>
44 #include "DGtal/base/Common.h"
45 #include "DGtal/base/CUnaryFunctor.h"
47 
48 namespace DGtal
49 {
50  namespace concepts
51  {
53  // class CPredicate
92  template <typename T, typename TElement>
93  struct CPredicate : CUnaryFunctor<T,TElement,bool>
94  {
95  // ----------------------- Concept checks ------------------------------
96  public:
97  typedef TElement Element;
98 
99  // ------------------------- Private Datas --------------------------------
100  private:
103  bool myBool;
104  // ------------------------- Internals ------------------------------------
105  private:
106 
107  }; // end of concept CPredicate
108  } // namespace concepts
109 } // namespace DGtal
110 
111 // //
113 
114 #endif // !defined CPredicate_h
115 
116 #undef CPredicate_RECURSES
117 #endif // else defined(CPredicate_RECURSES)
DGtal is the top-level namespace which contains all DGtal functions and types.
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.
Definition: CUnaryFunctor.h:90