X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FPipeline%2FFunctor.h;fp=lib%2FcpPlugins%2FPipeline%2FFunctor.h;h=0000000000000000000000000000000000000000;hb=2e142df11d6f312a2a2b5097b8da73571ed523e8;hp=96255b7f2b18c2e78777cc056931b0b34059484e;hpb=61b3659afe961ed248f30e26f9ca8f28fcfafddc;p=cpPlugins.git diff --git a/lib/cpPlugins/Pipeline/Functor.h b/lib/cpPlugins/Pipeline/Functor.h deleted file mode 100644 index 96255b7..0000000 --- a/lib/cpPlugins/Pipeline/Functor.h +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef __cpPlugins__Pipeline__Functor__h__ -#define __cpPlugins__Pipeline__Functor__h__ - -#include - -// ------------------------------------------------------------------------- -namespace cpPlugins -{ - namespace Pipeline - { - /** - */ - class cpPlugins_EXPORT Functor - : public ProcessObject - { - public: - typedef Functor Self; - typedef ProcessObject Superclass; - typedef itk::SmartPointer< Self > Pointer; - typedef itk::SmartPointer< const Self > ConstPointer; - - public: - itkTypeMacro( Functor, ProcessObject ); - cpPlugins_Id_Macro( Functor, Object ); - - public: - virtual void Instantiate( itk::LightObject* filter ) = 0; - - template< class _TFunctor > - _TFunctor* GetFunctor( ) - { - return( - dynamic_cast< _TFunctor* >( this->m_Functor.GetPointer( ) ) - ); - } - - template< class _TFunctor > - const _TFunctor* GetFunctor( ) const - { - return( - dynamic_cast< const _TFunctor* >( this->m_Functor.GetPointer( ) ) - ); - } - - protected: - Functor( ); - virtual ~Functor( ); - - private: - // Purposely not implemented - Functor( const Self& ); - Self& operator=( const Self& ); - - protected: - itk::LightObject::Pointer m_Functor; - }; - - } // ecapseman - -} // ecapseman - -#endif // __cpPlugins__Pipeline__Functor__h__ - -// eof - $RCSfile$