DGtal  1.4.beta
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)
35 #define SurfelSetPredicate_RECURSES
36 
37 #if !defined SurfelSetPredicate_h
39 #define SurfelSetPredicate_h
40 
42 // Inclusions
43 #include <iostream>
44 #include "DGtal/base/Common.h"
45 #include "DGtal/base/ConstAlias.h"
46 #include "DGtal/kernel/BasicPointPredicates.h"
48 
49 // @since 0.8 In DGtal::functors
50 namespace DGtal {
51  namespace functors {
52 
54  // template class SurfelSetPredicate
62  template < typename TSurfelSet,
63  typename TSurfel = typename TSurfelSet::Surfel >
65  {
66  // ----------------------- Standard services ------------------------------
67  public:
68  typedef TSurfelSet SurfelSet;
69  typedef TSurfel Surfel;
70 
76 
82 
89 
94  bool operator()( const Surfel & s ) const;
95 
96  // ------------------------- Hidden services ------------------------------
97  protected:
98 
104 
105  // ------------------------- Internals ------------------------------------
106  private:
107  const SurfelSet* mySet;
108 
109  }; // end of struct SurfelSetPredicate
110 
111 
112 } // namespace functors
113 } // namespace DGtal
114 
115 
117 // Includes inline functions.
118 #include "DGtal/topology/SurfelSetPredicate.ih"
119 
120 // //
122 
123 #endif // !defined SurfelSetPredicate_h
124 
125 #undef SurfelSetPredicate_RECURSES
126 #endif // else defined(SurfelSetPredicate_RECURSES)
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Definition: ConstAlias.h:187
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: The predicate returning true iff the point is in the domain given at construction.
bool operator()(const Surfel &s) const
SurfelSetPredicate(ConstAlias< SurfelSet > aSet)
SurfelSetPredicate(const SurfelSetPredicate &other)
SurfelSetPredicate & operator=(const SurfelSetPredicate &other)