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

itkDefaultPixelAccessor.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkDefaultPixelAccessor.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-10-07 12:05:28 $
00007   Version:   $Revision: 1.12 $
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 __itkDefaultPixelAccessor_h
00018 #define __itkDefaultPixelAccessor_h
00019 
00020 #include "itkMacro.h"
00021 
00022 namespace itk
00023 {
00024 
00052 template <class TType>
00053 class ITK_EXPORT DefaultPixelAccessor  
00054 {
00055 public:
00056 
00057   DefaultPixelAccessor() {}
00058   virtual ~DefaultPixelAccessor() {}
00059 
00062   typedef TType ExternalType;
00063 
00066   typedef TType InternalType;
00067 
00069   inline void Set(TType & output, const TType & input) const
00070     {output = input;}
00071 
00073   inline TType & Get( TType & input ) const
00074     {return input;}
00075 
00077   inline const TType & Get( const TType & input ) const
00078     {return input;}
00079 
00080 };
00081 
00082   
00083 } // end namespace itk
00084 
00085 #endif
00086 

Generated at Tue Sep 15 02:45:34 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000