DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CTrivialImage.h
1 
17 #pragma once
18 
28 #if defined(CConstImageRECURSES)
29 #error Recursive header files inclusion detected in CTrivialImage.h
30 #else // defined(CConstImageRECURSES)
31 
32 #define CConstImageRECURSES
33 
34 #if !defined CTrivialImage_h
35 
36 #define CTrivialImage_h
37 
38 #include <boost/concept_check.hpp>
39 #include <boost/concept/assert.hpp>
40 #include <boost/concept/requires.hpp>
41 
42 #include "DGtal/images/CTrivialConstImage.h"
43 
44 namespace DGtal
45 {
46 
48  // struct CTrivialImage
102  template <typename I>
104  {
105 
106  public:
107 
109  {
110  myI.setValue( myPoint, myValue );
111  }
112 
113  private:
114  I myI;
115  typename I::Point myPoint;
116  typename I::Value myValue;
117 
118  };
119 } // namespace DGtal
120 
121 // //
123 
124 #endif // !defined CTrivialImage_h
125 
126 #undef CConstImageRECURSES
127 #endif // else defined(CConstImageRECURSES)