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

itkInputFunctionBase.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkInputFunctionBase.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-01-24 21:33:49 $
00007   Version:   $Revision: 1.4 $
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 TMeasurementVector, class TTargetVector>
00029 class InputFunctionBase : public FunctionBase<TMeasurementVector, TTargetVector>
00030 {
00031 public:
00032 
00034   typedef InputFunctionBase                               Self;
00035   typedef FunctionBase<TMeasurementVector, TTargetVector> Superclass;
00036   typedef SmartPointer<Self>                              Pointer;
00037   typedef SmartPointer<const Self>                        ConstPointer;
00038 
00040   itkTypeMacro(InputFunctionBase, FunctionBase);
00041 
00043   typedef TMeasurementVector InputVectorType;
00044 
00046   typedef TTargetVector OutputType;
00047 
00049   virtual OutputType Evaluate(const InputVectorType& input) const = 0;
00050 
00051   virtual void SetSize(unsigned int) = 0;
00052 
00053 protected:
00054 
00055   InputFunctionBase() {};
00056   ~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     }
00065 
00066 private:
00067 
00068   InputFunctionBase(const Self&); //purposely not implemented
00069   void operator=(const Self&); //purposely not implemented
00070 
00071 };//class
00072 
00073 } // end namespace Statistics
00074 } // end namespace itk
00075 
00076 #endif
00077 

Generated at Mon Jul 12 2010 18:50:31 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000