DGtal 0.3.0

CBoundedDomain.h

Go to the documentation of this file.
00001 
00017 #pragma once
00018 
00030 #if defined(CBoundedDomain_RECURSES)
00031 #error Recursive header files inclusion detected in CBoundedDomain.h
00032 #else // defined(CBoundedDomain_RECURSES)
00033 
00034 #define CBoundedDomain_RECURSES
00035 
00036 #if !defined CBoundedDomain_h
00037 
00038 #define CBoundedDomain_h
00039 
00041 // Inclusions
00042 #include <iostream>
00043 #include "boost/concept_check.hpp"
00044 #include "DGtal/base/Common.h"
00045 #include "DGtal/utils/ConceptUtils.h"
00046 #include "DGtal/kernel/domains/CDomain.h"
00047 
00049 
00050 namespace DGtal
00051 {
00052 
00054   // class CBoundedDomain
00127   template <typename T>
00128   struct CBoundedDomain: CDomain<T>
00129   {
00130     // ----------------------- Concept checks ------------------------------
00131   public:
00132     
00133     BOOST_CONCEPT_USAGE( CBoundedDomain )
00134     {
00135       // Bounded Domain should have a TagTrue tag to IsBounded type.
00136       ConceptUtils::checkTrue( myIsBounded );
00137     }
00138 
00139   private:
00140     typename T::IsBounded myIsBounded;
00141 
00142 
00143    }; // end of concept CBoundedDomain
00144   
00145 } // namespace DGtal
00146 
00148 
00149 #endif // !defined CBoundedDomain_h
00150 
00151 #undef CBoundedDomain_RECURSES
00152 #endif // else defined(CBoundedDomain_RECURSES)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines