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

itkSecondaryNodeList.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkSecondaryNodeList.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003/09/10 14:29:25 $
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 __itkSecondaryNodeList_h
00018 #define __itkSecondaryNodeList_h
00019 
00020 #include <list>
00021 
00022 namespace itk
00023 {
00024 
00032 template <typename TItemType, int VCliqueSize>
00033 class SecondaryNodeList : public std::list<TItemType>
00034 {
00035 public:
00036 
00038   TItemType * ItemPointer;
00039 
00041   void SetNodePointer(TItemType* itemPointer) {ItemPointer = itemPointer;}
00042 
00044   unsigned long int GetSize() {return this->size();}
00045 
00046   //return the index of the base node in the clique
00047   int GetIndex() {return m_Index;}
00048   void SetIndex(int value) {m_Index = value;}
00049 
00050   SecondaryNodeList();
00051   ~SecondaryNodeList();
00052 
00053 private:
00054   
00055   int m_Index;
00056 
00057 };
00058 
00059 
00060 } // end namespace itk
00061 
00062 #ifndef ITK_MANUAL_INSTANTIATION
00063 #include "itkSecondaryNodeList.txx"
00064 #endif
00065 
00066 #endif
00067 

Generated at Mon Mar 12 02:54:05 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000