KWStyle - itkSecondaryNodeList.h
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkSecondaryNodeList.h.html,v $
5   Language:  C++
6   Date:      $Date: 2006/01/17 19:15:47 $
7   Version:   $Revision: 1.4 $
8
9   Copyright (c) Insight Software Consortium. All rights reserved.
10   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11
12      This software is distributed WITHOUT ANY WARRANTY; without even 
13      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14      PURPOSE.  See the above copyright notices for more information.
15
16 =========================================================================*/
17 #ifndef __itkSecondaryNodeList_h
18 #define __itkSecondaryNodeList_h
19
20 #include <list>
21
22 namespace itk
23 {
24
25 /**
26  * \class SecondaryNodeList
27  * \brief Stores corresponding lists of nodes with pointers to
28  * the contained items. 
29  * 
30  * */
31
32 template <typename TItemType, int VCliqueSize>
33 class SecondaryNodeList : public std::list<TItemType>
34 {
35 public:
36
37   /** Pointer to the medial node. */
38 IVP,IVR   TItemType * ItemPointer;
39
40   /** Set the medial node pointer for the corresponding node. */
41   void SetNodePointer(TItemType* itemPointer) {ItemPointer = itemPointer;}
42
43   /** Get the number of items stored in the list. */
44   unsigned long int GetSize() {return this->size();}
45
46   //return the index of the base node in the clique
47   int GetIndex() {return m_Index;}
48   void SetIndex(int value) {m_Index = value;}
49
50   SecondaryNodeList();
51   ~SecondaryNodeList();
52
53 private:
54   
55   int m_Index;
56
57 };
58
59
60 // end namespace itk
61
62 #ifndef ITK_MANUAL_INSTANTIATION
63 #include "itkSecondaryNodeList.txx"
64 #endif
65
66 #endif
67

Generated by KWStyle 1.0b on Tuesday January,17 at 02:14:45PM
© Kitware Inc.