]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/Base/Functors/TautologyFunction.h
Major refactoring
[FrontAlgorithms.git] / lib / fpa / Base / Functors / TautologyFunction.h
1 #ifndef __FPA__BASE__FUNCTORS__TAUTOLOGYFUNCTION__H__
2 #define __FPA__BASE__FUNCTORS__TAUTOLOGYFUNCTION__H__
3
4 #include <itkFunctionBase.h>
5
6 namespace fpa
7 {
8   namespace Base
9   {
10     namespace Functors
11     {
12       /**
13        */
14       template< class V >
15       class TautologyFunction
16         : public itk::FunctionBase< V, bool >
17       {
18       public:
19         typedef TautologyFunction               Self;
20         typedef itk::FunctionBase< V, bool >    Superclass;
21         typedef itk::SmartPointer< Self >       Pointer;
22         typedef itk::SmartPointer< const Self > ConstPointer;
23
24       public:
25         itkNewMacro( Self );
26         itkTypeMacro( TautologyFunction, itkFunctionBase );
27
28       public:
29         virtual bool Evaluate( const V& input ) const
30           { return( true ); }
31
32       protected:
33         TautologyFunction( )
34           : Superclass( )
35           { }
36         virtual ~TautologyFunction( )
37           { }
38
39       private:
40         // Purposely not implemented
41         TautologyFunction( const Self& );
42         void operator=( const Self& );
43       };
44
45     } // ecapseman
46
47   } // ecapseman
48
49 } // ecapseman
50
51 #endif // __FPA__BASE__FUNCTORS__TAUTOLOGYFUNCTION__H__
52
53 // eof - $RCSfile$