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

itkCorrespondenceDataStructureIterator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkCorrespondenceDataStructureIterator.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003/09/10 14:29:05 $
00007   Version:   $Revision: 1.2 $
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 __itkCorrespondenceDataStructureIterator_h
00018 #define __itkCorrespondenceDataStructureIterator_h
00019 
00020 namespace itk
00021 {
00022 
00028 template<class TStructureType>
00029 class CorrespondenceDataStructureIterator {
00030 public:
00032   typedef CorrespondenceDataStructureIterator Self;
00033 
00035   static unsigned int GetIteratorDimension() 
00036   {return TStructureType::dim;}
00037 
00039   bool IsAtEnd();
00040 
00042   void operator++(){GoToNext();}
00043 
00045   void operator++(int){GoToNext();}
00046 
00048   void GoToNext();
00049 
00051   void GoToNextBaseGroup();
00052 
00054   void Reset();
00055   
00057   CorrespondenceDataStructureIterator(TStructureType *StructurePtr);
00058 
00060   virtual ~CorrespondenceDataStructureIterator();
00061 
00062   typedef typename TStructureType::CorrespondingListType CorrespondingListType;
00063   typedef typename TStructureType::ItemType ItemType;
00064   typedef typename TStructureType::SecondaryNodeListType SecondaryNodeListType;
00065   typedef typename TStructureType::NodeListType NodeListType;
00066 
00067   typedef typename CorrespondingListType::iterator CorrespondingListIterator;
00068   typedef typename SecondaryNodeListType::iterator SecondaryNodeListIterator;
00069   typedef typename NodeListType::iterator NodeListIterator;
00070 
00072   CorrespondingListType * GetCorrespondingListPointer(){return m_CorrespondingListPointer;}
00073 
00074   CorrespondingListIterator m_CorrespondingListIterator;
00075   SecondaryNodeListIterator m_SecondaryListIterator;
00076   typename  TStructureType::NodeListType::iterator m_NodeListIterator;
00077 
00078 protected:
00079 
00081   bool m_IsAtEnd;
00082   TStructureType * m_Structure;
00083   ItemType * m_CorrespondingNodePointer;
00084   CorrespondingListType * m_CorrespondingListPointer;
00085   SecondaryNodeListType * m_SecondaryListPointer;
00086   NodeListType * m_NodeListPointer;
00087 };
00088 
00089 } // end namespace itk
00090 
00091 #ifndef ITK_MANUAL_INSTANTIATION
00092 #include "itkCorrespondenceDataStructureIterator.txx"
00093 #endif
00094 
00095 #endif 

Generated at Wed May 24 22:59:48 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000