DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SurfelSetPredicate.h
1 
17 #pragma once
18 
31 #if defined(SurfelSetPredicate_RECURSES)
32 #error Recursive header files inclusion detected in SurfelSetPredicate.h
33 #else // defined(SurfelSetPredicate_RECURSES)
34 
35 #define SurfelSetPredicate_RECURSES
36 
37 #if !defined SurfelSetPredicate_h
38 
39 #define SurfelSetPredicate_h
40 
42 // Inclusions
43 #include <iostream>
44 #include "DGtal/base/Common.h"
45 #include "DGtal/kernel/BasicPointPredicates.h"
47 
48 namespace DGtal
49 {
50 
52  // template class SurfelSetPredicate
60  template < typename TSurfelSet,
61  typename TSurfel = typename TSurfelSet::Surfel >
63  {
64  // ----------------------- Standard services ------------------------------
65  public:
66  typedef TSurfelSet SurfelSet;
67  typedef TSurfel Surfel;
68 
73  SurfelSetPredicate ( const SurfelSet & aSet );
74 
79  SurfelSetPredicate ( const SurfelSetPredicate & other );
80 
87 
92  bool operator()( const Surfel & s ) const;
93 
94  // ------------------------- Hidden services ------------------------------
95  protected:
96 
102 
103  // ------------------------- Internals ------------------------------------
104  private:
105  const SurfelSet* mySet;
106 
107  }; // end of struct SurfelSetPredicate
108 
109 
110 } // namespace DGtal
111 
112 
114 // Includes inline functions.
115 #include "DGtal/topology/SurfelSetPredicate.ih"
116 
117 // //
119 
120 #endif // !defined SurfelSetPredicate_h
121 
122 #undef SurfelSetPredicate_RECURSES
123 #endif // else defined(SurfelSetPredicate_RECURSES)