18 #ifndef itkBitwiseOpsFunctors_h
19 #define itkBitwiseOpsFunctors_h
33 template<
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1 >
34 class ITK_TEMPLATE_EXPORT
AND
47 return !( *
this != other );
50 inline TOutput
operator()(
const TInput1 & A,
const TInput2 & B)
const
52 return static_cast< TOutput
>( A & B );
61 template<
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1 >
62 class ITK_TEMPLATE_EXPORT
OR
75 return !( *
this != other );
78 inline TOutput
operator()(
const TInput1 & A,
const TInput2 & B)
const
80 return static_cast< TOutput
>( A | B );
89 template<
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1 >
90 class ITK_TEMPLATE_EXPORT
XOR
103 return !( *
this != other );
106 inline TOutput
operator()(
const TInput1 & A,
const TInput2 & B)
const
108 return static_cast< TOutput
>( A ^ B );
117 template<
class TInput,
class TOutput >
131 return !( *
this != other );
136 return static_cast<TOutput
>( ~A );
TOutput operator()(const TInput &A) const
bool operator==(const XOR &other) const
bool operator==(const BitwiseNot &other) const
bool operator==(const AND &other) const
TOutput operator()(const TInput1 &A, const TInput2 &B) const
bool operator!=(const AND &) const
Performs the C++ unary bitwise NOT operator.
bool operator==(const OR &other) const
TOutput operator()(const TInput1 &A, const TInput2 &B) const
bool operator!=(const XOR &) const
bool operator!=(const OR &) const
TOutput operator()(const TInput1 &A, const TInput2 &B) const
bool operator!=(const BitwiseNot &) const