]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/Base/Functors/RegionGrow/Tautology.h
a024b598f47e883330432844a6e97b609efca427
[FrontAlgorithms.git] / lib / fpa / Base / Functors / RegionGrow / Tautology.h
1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
5
6 #ifndef __fpa__Base__Functors__RegionGrow__Tautology__h__
7 #define __fpa__Base__Functors__RegionGrow__Tautology__h__
8
9 #include <itkFunctionBase.h>
10
11 namespace fpa
12 {
13   namespace Base
14   {
15     namespace Functors
16     {
17       namespace RegionGrow
18       {
19         /**
20          */
21         template< class _TValue >
22         class Tautology
23           : public itk::FunctionBase< _TValue, bool >
24         {
25         public:
26           typedef Tautology                          Self;
27           typedef itk::FunctionBase< _TValue, bool > Superclass;
28           typedef itk::SmartPointer< Self >          Pointer;
29           typedef itk::SmartPointer< const Self >    ConstPointer;
30
31         public:
32           itkNewMacro( Self );
33           itkTypeMacro(
34             fpa::Base::Functors::RegionGrow::Tautology,
35             itk::FunctionBase
36             );
37
38         public:
39           virtual bool Evaluate( const _TValue& input ) const override
40             {
41               return( true );
42             }
43
44         protected:
45           Tautology( )
46             : Superclass( )
47             {
48             }
49           virtual ~Tautology( )
50             {
51             }
52
53         private:
54           // Purposely not implemented
55           Tautology( const Self& other );
56           Self& operator=( const Self& other );
57         };
58
59       } // ecapseman
60
61     } // ecapseman
62
63   } // ecapseman
64
65 } // ecapseman
66
67 #endif // __fpa__Base__Functors__RegionGrow__Tautology__h__
68
69 // eof - $RCSfile$