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: 2007-01-26 14:28:44 $
00007   Version:   $Revision: 1.4 $
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 
00029 template<class TStructureType>
00030 class CorrespondenceDataStructureIterator {
00031 public:
00033   typedef CorrespondenceDataStructureIterator Self;
00034 
00036   static unsigned int GetIteratorDimension() 
00037     {return TStructureType::dim;}
00038 
00040   bool IsAtEnd();
00041 
00043   void operator++(){GoToNext();}
00044 
00046   void operator++(int){GoToNext();}
00047 
00050   void GoToNext();
00051 
00053   void GoToNextBaseGroup();
00054 
00056   void Reset();
00057 
00059   CorrespondenceDataStructureIterator(TStructureType *StructurePtr);
00060 
00062   virtual ~CorrespondenceDataStructureIterator();
00063 
00064   typedef typename TStructureType::CorrespondingListType CorrespondingListType;
00065   typedef typename TStructureType::ItemType              ItemType;
00066   typedef typename TStructureType::SecondaryNodeListType SecondaryNodeListType;
00067   typedef typename TStructureType::NodeListType          NodeListType;
00068 
00069   typedef typename CorrespondingListType::iterator CorrespondingListIterator;
00070   typedef typename SecondaryNodeListType::iterator SecondaryNodeListIterator;
00071   typedef typename NodeListType::iterator          NodeListIterator;
00072 
00074   CorrespondingListType * GetCorrespondingListPointer()
00075     {return m_CorrespondingListPointer;}
00076 
00077   CorrespondingListIterator                       m_CorrespondingListIterator;
00078   SecondaryNodeListIterator                       m_SecondaryListIterator;
00079   typename TStructureType::NodeListType::iterator m_NodeListIterator;
00080 
00081 protected:
00082 
00084   bool                    m_IsAtEnd;
00085   TStructureType *        m_Structure;
00086   ItemType *              m_CorrespondingNodePointer;
00087   CorrespondingListType * m_CorrespondingListPointer;
00088   SecondaryNodeListType * m_SecondaryListPointer;
00089   NodeListType *          m_NodeListPointer;
00090 };
00091 
00092 } // end namespace itk
00093 
00094 #ifndef ITK_MANUAL_INSTANTIATION
00095 #include "itkCorrespondenceDataStructureIterator.txx"
00096 #endif
00097 
00098 #endif 
00099 

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