ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkImageRegionConstIteratorWithIndex.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkImageRegionConstIteratorWithIndex_h
00019 #define __itkImageRegionConstIteratorWithIndex_h
00020 
00021 #include "itkImageConstIteratorWithIndex.h"
00022 
00023 namespace itk
00024 {
00129 template< typename TImage >
00130 class ITK_EXPORT ImageRegionConstIteratorWithIndex:public ImageConstIteratorWithIndex< TImage >
00131 {
00132 public:
00134   typedef ImageRegionConstIteratorWithIndex     Self;
00135   typedef ImageConstIteratorWithIndex< TImage > Superclass;
00136 
00143   typedef typename Superclass::IndexType             IndexType;
00144   typedef typename Superclass::SizeType              SizeType;
00145   typedef typename Superclass::OffsetType            OffsetType;
00146   typedef typename Superclass::RegionType            RegionType;
00147   typedef typename Superclass::ImageType             ImageType;
00148   typedef typename Superclass::PixelContainer        PixelContainer;
00149   typedef typename Superclass::PixelContainerPointer PixelContainerPointer;
00150   typedef typename Superclass::InternalPixelType     InternalPixelType;
00151   typedef typename Superclass::PixelType             PixelType;
00152   typedef typename Superclass::AccessorType          AccessorType;
00153 
00155   ImageRegionConstIteratorWithIndex():ImageConstIteratorWithIndex< TImage >() {}
00156 
00159   ImageRegionConstIteratorWithIndex(const TImage *ptr,
00160                                     const RegionType & region):
00161     ImageConstIteratorWithIndex< TImage >(ptr, region) {}
00162 
00169   ImageRegionConstIteratorWithIndex(const ImageConstIteratorWithIndex< TImage > & it)
00170   { this->ImageConstIteratorWithIndex< TImage >::operator=(it); }
00171 
00179   Self & operator++();
00180 
00188   Self & operator--();
00189 };
00190 } // end namespace itk
00192 
00193 // Define instantiation macro for this template.
00194 #define ITK_TEMPLATE_ImageRegionConstIteratorWithIndex(_, EXPORT, TypeX, TypeY)                                 \
00195   namespace itk                                                                                                 \
00196   {                                                                                                             \
00197   _( 1 ( class EXPORT ImageRegionConstIteratorWithIndex< ITK_TEMPLATE_1 TypeX > ) )                             \
00198   namespace Templates                                                                                           \
00199   {                                                                                                             \
00200   typedef ImageRegionConstIteratorWithIndex< ITK_TEMPLATE_1 TypeX > ImageRegionConstIteratorWithIndex##TypeY; \
00201   }                                                                                                             \
00202   }
00203 
00204 #if ITK_TEMPLATE_EXPLICIT
00205 #include "Templates/itkImageRegionConstIteratorWithIndex+-.h"
00206 #endif
00207 
00208 #if ITK_TEMPLATE_TXX
00209 #include "itkImageRegionConstIteratorWithIndex.hxx"
00210 #endif
00211 
00212 #endif
00213