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