DGtal  0.9.2
CCellFunctor.h
1 
17 #pragma once
18 
33 #if defined(CCellFunctor_RECURSES)
34 #error Recursive header files inclusion detected in CCellFunctor.h
35 #else // defined(CCellFunctor_RECURSES)
36 
37 #define CCellFunctor_RECURSES
38 
39 #if !defined CCellFunctor_h
40 
41 #define CCellFunctor_h
42 
44 // Inclusions
45 #include <iostream>
46 #include "DGtal/base/Common.h"
47 #include "DGtal/base/CUnaryFunctor.h"
49 
50 // @since 0.8 In DGtal::concepts (and in DGtal/topology)
51 namespace DGtal {
52  namespace concepts {
53 
55  // class CCellFunctor
88  template <typename T>
89  struct CCellFunctor
90  {
91  // ----------------------- Concept checks ------------------------------
92  public:
93  typedef typename T::Cell Cell;
94  typedef typename T::Quantity Quantity;
95 
97 
99  {
101  }
103  {
104  }
105 
106  // ------------------------- Private Datas --------------------------------
107  private:
108  // ------------------------- Internals ------------------------------------
109  private:
110  T myT;
111  }; // end of concept CCellFunctor
112  }
113 } // namespace DGtal
114 
115 // //
117 
118 #endif // !defined CCellFunctor_h
119 
120 #undef CCellFunctor_RECURSES
121 #endif // else defined(CCellFunctor_RECURSES)
BOOST_CONCEPT_ASSERT((CUnaryFunctor< T, Cell, Quantity >))
Aim: Defines a functor on cells.
Definition: CCellFunctor.h:89
Aim: Defines a unary functor, which associates arguments to results.
Definition: CUnaryFunctor.h:89
BOOST_CONCEPT_USAGE(CCellFunctor)
Definition: CCellFunctor.h:98
void check_const_constraints() const
Definition: CCellFunctor.h:102
DGtal is the top-level namespace which contains all DGtal functions and types.