]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/Base/Functors/RegionGrow/Tautology.h
11d016eccf149fb62792e760abdcc8d64364efe8
[FrontAlgorithms.git] / lib / fpa / Base / Functors / RegionGrow / Tautology.h
1 #ifndef __fpa__Base__Functors__RegionGrow__Tautology__h__
2 #define __fpa__Base__Functors__RegionGrow__Tautology__h__
3
4 #include <fpa/Base/Functors/RegionGrow/Base.h>
5
6 namespace fpa
7 {
8   namespace Base
9   {
10     namespace Functors
11     {
12       namespace RegionGrow
13       {
14         /**
15          */
16         template< class _TVertex, class _TOutput >
17         class Tautology
18           : public Base< _TVertex, _TOutput >
19         {
20         public:
21           typedef Tautology                       Self;
22           typedef Base< _TVertex, _TOutput >      Superclass;
23           typedef itk::SmartPointer< Self >       Pointer;
24           typedef itk::SmartPointer< const Self > ConstPointer;
25
26           typedef typename Superclass::TOutput TOutput;
27           typedef typename Superclass::TVertex TVertex;
28
29         public:
30           itkNewMacro( Self );
31           itkTypeMacro( Tautology, Base );
32
33         public:
34           virtual TOutput Evaluate( const TVertex& a, const TVertex& b ) const override
35             {
36               return( this->m_InsideValue );
37             }
38
39         protected:
40           Tautology( )
41             : Superclass( )
42             { }
43           virtual ~Tautology( )
44             { }
45
46         private:
47           // Purposely not defined
48           Tautology( const Self& other );
49           Self& operator=( const Self& other );
50         };
51
52       } // ecapseman
53
54     } // ecapseman
55
56   } // ecapseman
57
58 } // ecapseman
59
60 #endif // __fpa__Base__Functors__RegionGrow__Tautology__h__
61
62 // eof - $RCSfile$