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: 2002/01/15 18:56:32 $
00007   Version:   $Revision: 1.6 $
00008 
00009   Copyright (c) 2002 Insight 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 
00059   typedef TType ExternalType ;
00060 
00063   typedef TType InternalType ;
00064 
00066   inline void Set(TType & output, const TType & input) const
00067     {output = input;}
00068 
00070   inline TType & Get( TType & input ) const
00071     {return input;}
00072 
00074   inline const TType & Get( const TType & input ) const
00075     {return input;}
00076   
00077 };
00078 
00079   
00080 } // end namespace itk
00081   
00082 
00083 #endif
00084 

Generated at Fri May 21 01:14:37 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000