DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
BasicBoolFunctions.ih
1 
30 
31 #include <cstdlib>
33 
35 // IMPLEMENTATION of inline methods.
37 
38 //------------------------------------------------------------------------------
39 inline
40 bool
42 { return true; }
43 //------------------------------------------------------------------------------
44 inline
45 bool
47 { return false; }
48 //------------------------------------------------------------------------------
49 inline
50 bool
52 { return b; }
53 //------------------------------------------------------------------------------
54 inline
55 bool
57 { return !b; }
58 //------------------------------------------------------------------------------
59 inline
60 bool
61 DGtal::AndBoolFct2::operator()( bool b1, bool b2 ) const
62 { return b1 && b2; }
63 //------------------------------------------------------------------------------
64 inline
65 bool
66 DGtal::OrBoolFct2::operator()( bool b1, bool b2 ) const
67 { return b1 || b2; }
68 //------------------------------------------------------------------------------
69 inline
70 bool
71 DGtal::XorBoolFct2::operator()( bool b1, bool b2 ) const
72 { return b1 != b2; }
73 //------------------------------------------------------------------------------
74 inline
75 bool
76 DGtal::ImpliesBoolFct2::operator()( bool b1, bool b2 ) const
77 { return (! b1 ) || b2; }
78 //------------------------------------------------------------------------------
79 
80 // //
82 
83