DGtal 0.3.0

CDomainAdjacency.h

Go to the documentation of this file.
00001 
00017 #pragma once
00018 
00031 #if defined(CDomainAdjacency_RECURSES)
00032 #error Recursive header files inclusion detected in CDomainAdjacency.h
00033 #else // defined(CDomainAdjacency_RECURSES)
00034 
00035 #define CDomainAdjacency_RECURSES
00036 
00037 #if !defined CDomainAdjacency_h
00038 
00039 #define CDomainAdjacency_h
00040 
00042 // Inclusions
00043 #include <iostream>
00044 #include "boost/concept_check.hpp"
00045 #include "DGtal/base/Common.h"
00046 #include "DGtal/topology/CAdjacency.h"
00048 
00049 namespace DGtal
00050 {
00051 
00053   // class CDomainAdjacency
00106   template <typename T>
00107   struct CDomainAdjacency : CAdjacency<T>
00108   {
00109     // ----------------------- Concept checks ------------------------------
00110   public:
00111 
00112     typedef typename Adj::Domain Domain;
00113     typedef typename Adj::Predicate Predicate;
00114 
00115     // ------------------------- Private Datas --------------------------------
00116   private:
00117     BOOST_CONCEPT_USAGE( CDomainAdjacency )
00118     {
00119       // check domain()
00120       ConceptUtils::sameType( myDomain, myT.domain() );
00121       // check predicate()
00122       ConceptUtils::sameType( myPredicate, myT.predicate() );
00123     }
00124 
00125     // ------------------------- Internals ------------------------------------
00126   private:
00127     T myT;
00128     Domain myDomain;
00129     Predicate myPredicate;
00130     
00131   }; // end of concept CDomainAdjacency
00132   
00133 } // namespace DGtal
00134 
00135 
00137 // Includes inline functions.
00138 #include "DGtal/topology/CDomainAdjacency.ih"
00139 
00140 //                                                                           //
00142 
00143 #endif // !defined CDomainAdjacency_h
00144 
00145 #undef CDomainAdjacency_RECURSES
00146 #endif // else defined(CDomainAdjacency_RECURSES)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines