DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SurfelSetPredicate.ih
1 
30 
31 #include <cstdlib>
33 
35 // IMPLEMENTATION of inline methods.
37 
39 // ----------------------- Standard services ------------------------------
40 
41 //------------------------------------------------------------------------------
42 template <typename TSurfelSet, typename TSurfel>
43 inline
46  : mySet( &aSet )
47 {
48 }
49 //------------------------------------------------------------------------------
50 template <typename TSurfelSet, typename TSurfel>
51 inline
54  : mySet( other.mySet )
55 {
56 }
57 //------------------------------------------------------------------------------
58 template <typename TSurfelSet, typename TSurfel>
59 inline
63 {
64  mySet = other.mySet;
65  return *this;
66 }
67 //------------------------------------------------------------------------------
68 template <typename TSurfelSet, typename TSurfel>
69 inline
70 bool
72 ::operator()( const Surfel & s ) const
73 {
74  return mySet->find( s ) != mySet->end();
75 }
76 //------------------------------------------------------------------------------
77 
78 // //
80 
81