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

itkConditionalIterator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkConditionalIterator.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/09/11 19:39:03 $
00007   Version:   $Revision: 1.8 $
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 __itkConditionalIterator_h
00018 #define __itkConditionalIterator_h
00019 
00020 #include "itkIndex.h"
00021 #include "itkConditionalConstIterator.h"
00022 
00023 namespace itk
00024 {
00025 
00035 template<class TImage>
00036 class ConditionalIterator : public ConditionalConstIterator<TImage>
00037 {
00038 public:
00040   typedef ConditionalIterator Self;
00041 
00046   itkStaticConstMacro(NDimensions, unsigned int, TImage::ImageDimension);
00047 
00049   typedef typename TImage::IndexType  IndexType;
00050 
00052   typedef typename TImage::SizeType    SizeType;
00053 
00055   typedef typename TImage::RegionType    RegionType;
00056 
00058   typedef TImage   ImageType;
00059 
00061   typedef typename TImage::InternalPixelType   InternalPixelType;
00062 
00064   typedef typename TImage::PixelType   PixelType;
00065   
00068   Self &operator=(const Self& it)
00069   {
00070     m_Image = it.m_Image;     // copy the smart pointer
00071     m_Region = it.m_Region;   // copy the region
00072   }
00073   
00075   ConditionalIterator();
00076 
00078   virtual ~ConditionalIterator();
00079 };
00080 
00081 } // end namespace itk
00082 
00083 #ifndef ITK_MANUAL_INSTANTIATION
00084 #include "itkConditionalIterator.txx"
00085 #endif
00086 
00087 #endif 

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