DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CConstImage.h
1 
17 #pragma once
18 
28 #if defined(CConstImageRECURSES)
29 #error Recursive header files inclusion detected in CConstImage.h
30 #else // defined(CConstImageRECURSES)
31 
32 #define CConstImageRECURSES
33 
34 #if !defined CConstImage_h
35 
36 #define CConstImage_h
37 
38 #include <boost/concept_check.hpp>
39 #include <boost/concept/assert.hpp>
40 #include <boost/concept/requires.hpp>
41 
42 #include "DGtal/kernel/CPointFunctor.h"
43 #include "DGtal/kernel/domains/CDomain.h"
44 #include "DGtal/base/CConstBidirectionalRangeFromPoint.h"
45 #include "DGtal/base/CLabel.h"
46 #include "DGtal/images/CTrivialConstImage.h"
47 
48 namespace DGtal
49 {
50 
52  // struct CConstImage
121  template <typename I>
123  {
124 
125  public:
126 
127  //Inner types
128  typedef typename I::Domain Domain;
130 
131  typedef typename I::ConstRange ConstRange;
133 
135  {
136  ConceptUtils::sameType(i.domain(), d);
137  ConceptUtils::sameType(i.constRange(), r);
138  }
139 
140  private:
141  I i;
144 
145  };
146 } // namespace DGtal
147 
148 // //
150 
151 #endif // !defined CConstImage_h
152 
153 #undef CConstImageRECURSES
154 #endif // else defined(CConstImageRECURSES)