00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkInputFunctionBase.h,v $ 00005 Language: C++ 00006 Date: $Date: 2005/08/02 19:17:37 $ 00007 Version: $Revision: 1.1 $ 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 00018 #ifndef _itkInputFunctionBase_h 00019 #define _itkInputFunctionBase_h 00020 00021 #include "itkFunctionBase.h" 00022 00023 namespace itk 00024 { 00025 namespace Statistics 00026 { 00027 00028 template<class TVector, class TOutput> 00029 class InputFunctionBase : public FunctionBase<TVector, TOutput> 00030 { 00031 public: 00032 00034 typedef InputFunctionBase Self; 00035 typedef FunctionBase<TVector, TOutput> Superclass; 00036 typedef SmartPointer<Self> Pointer; 00037 typedef SmartPointer<const Self> ConstPointer; 00038 00040 itkTypeMacro(InputFunctionBase, FunctionBase); 00041 00043 typedef TVector InputVectorType; 00044 00046 typedef TOutput OutputType; 00047 00049 virtual OutputType Evaluate(const InputVectorType& input) const = 0; 00050 00051 virtual void SetSize(long) = 0; 00052 00053 protected: 00054 00055 InputFunctionBase() {}; 00056 virtual~InputFunctionBase() {}; 00057 00059 virtual void PrintSelf( std::ostream& os, Indent indent ) const 00060 { 00061 os << indent << "InputFunctionBase(" << this << ")" << std::endl; 00062 Superclass::PrintSelf( os, indent ); 00063 } 00064 00065 private: 00066 00067 InputFunctionBase(const Self&); //purposely not implemented 00068 void operator=(const Self&); //purposely not implemented 00069 00070 };//class 00071 00072 } // end namespace Statistics 00073 } // end namespace itk 00074 00075 #endif 00076