]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Functors/RegionGrow/Tautology.h
...
[FrontAlgorithms.git] / lib / fpa / Functors / RegionGrow / Tautology.h
diff --git a/lib/fpa/Functors/RegionGrow/Tautology.h b/lib/fpa/Functors/RegionGrow/Tautology.h
new file mode 100644 (file)
index 0000000..94fc0db
--- /dev/null
@@ -0,0 +1,63 @@
+// =========================================================================
+// @author Leonardo Florez Valencia
+// @email florez-l@javeriana.edu.co
+// =========================================================================
+#ifndef __fpa__Functors__RegionGrow__Tautology__h__
+#define __fpa__Functors__RegionGrow__Tautology__h__
+
+#include <itkFunctionBase.h>
+
+namespace fpa
+{
+  namespace Functors
+  {
+    namespace RegionGrow
+    {
+      /**
+       */
+      template< class _TValue >
+      class Tautology
+        : public itk::FunctionBase< _TValue, bool >
+      {
+      public:
+        typedef _TValue TValue;
+        typedef itk::FunctionBase< TValue, bool > Superclass;
+        typedef Tautology                         Self;
+        typedef itk::SmartPointer< Self >         Pointer;
+        typedef itk::SmartPointer< const Self >   ConstPointer;
+
+      public:
+        itkNewMacro( Self );
+        itkTypeMacro(
+          fpa::Functors::RegionGrow::Tautology, itk::FunctionBase
+          );
+
+      public:
+        virtual bool Evaluate( const TValue& v ) const override
+          {
+            return( true );
+          }
+
+      protected:
+        Tautology( )
+          : Superclass( )
+          {
+          }
+        virtual ~Tautology( )
+          {
+          }
+
+      private:
+        // Purposely not implemented.
+        Tautology( const Self& other );
+        Self& operator=( const Self& other );
+      };
+
+    } // ecapseman
+
+  } // ecapseman
+
+} // ecapseman
+
+#endif // __fpa__Functors__RegionGrow__Tautology__h__
+// eof - $RCSfile$