Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkFunctionBase.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkFunctionBase.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-10-16 23:25:41 $
00007   Version:   $Revision: 1.11 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __itkFunctionBase_h
00018 #define __itkFunctionBase_h
00019 
00020 #include "itkObject.h"
00021 #include "itkObjectFactory.h"
00022 
00023 namespace itk
00024 {
00025 
00042 template < class TInput, class TOutput >
00043 class ITK_EXPORT FunctionBase : public Object
00044 {
00045 public:
00046 
00048   typedef FunctionBase                Self;
00049   typedef Object                      Superclass;
00050   typedef SmartPointer<Self>          Pointer;
00051   typedef SmartPointer<const Self>    ConstPointer;
00052 
00054   itkTypeMacro(FunctionBase, Object);
00055 
00057   typedef TInput InputType;
00058 
00060   typedef TOutput OutputType;
00061 
00063   virtual OutputType Evaluate( const InputType& input ) const = 0;
00064 
00065 protected:
00066   FunctionBase(){};
00067   ~FunctionBase(){};
00068 
00069 private:
00070   FunctionBase(const Self& ); //purposely not implemented
00071   void operator=(const Self& ); //purposely not implemented
00072 
00073 };
00074 
00075 } // end namespace itk
00076 
00077 #endif
00078 

Generated at Tue Sep 15 03:01:12 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000