DGtal
0.6.devel
Main Page
Related Pages
Modules
Namespaces
Data Structures
Examples
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
src
DGtal
base
BasicBoolFunctions.ih
1
30
31
#include <cstdlib>
33
35
// IMPLEMENTATION of inline methods.
37
38
//------------------------------------------------------------------------------
39
inline
40
bool
41
DGtal::TrueBoolFct0::operator()
()
const
42
{
return
true
; }
43
//------------------------------------------------------------------------------
44
inline
45
bool
46
DGtal::FalseBoolFct0::operator()
()
const
47
{
return
false
; }
48
//------------------------------------------------------------------------------
49
inline
50
bool
51
DGtal::IdentityBoolFct1::operator()
(
bool
b )
const
52
{
return
b; }
53
//------------------------------------------------------------------------------
54
inline
55
bool
56
DGtal::NotBoolFct1::operator()
(
bool
b )
const
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
Generated on Wed Dec 19 2012 19:10:19 for DGtal by
1.8.1.1