X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FFunctors%2FRegionGrow%2FTautology.h;fp=lib%2Ffpa%2FFunctors%2FRegionGrow%2FTautology.h;h=94fc0dbbb4fc54a3553c93cd722ad912278559c6;hb=bd89a1af0c14ed2ac0afeca923103de54283cbaf;hp=0000000000000000000000000000000000000000;hpb=a8ac405fe1422bc0792a810f7f0693096a22c20e;p=FrontAlgorithms.git diff --git a/lib/fpa/Functors/RegionGrow/Tautology.h b/lib/fpa/Functors/RegionGrow/Tautology.h new file mode 100644 index 0000000..94fc0db --- /dev/null +++ b/lib/fpa/Functors/RegionGrow/Tautology.h @@ -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 + +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$