KWStyle - itkCorrespondingList.h
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkCorrespondingList.h.html,v $
5   Language:  C++
6   Date:      $Date: 2006/01/17 19:15:34 $
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 __itkCorrespondingList_h
18 #define __itkCorrespondingList_h
19
20 #include <list>
21 #include "itkCorrespondingList.h"
22
23 namespace itk
24 {
25
26 /**
27  * \class CorrespondingList
28  * \brief Part of the itkCorrespondenceDataStructure.
29  *
30  *
31  * 
32  * */
33
34 template <typename TItemType, int VCliqueSize>
35 class CorrespondingList : public std::list< TItemType >
36 {
37 public:
38
39   /** Get the number of items stored in the blox. */
40   unsigned long int GetSize()
41     {return this->size(); }
42
43   /** Set and Get functions for thesecondary indices in the base node clique. */
44   int GetIndex(int i){return m_Index[i];}
45   void SetIndex(int i, int value){m_Index[i] = value;}
46
47   /** Constructor */
48   CorrespondingList();
49
50   /** Destructor */
51   ~CorrespondingList();
52
53 private:
54   
55   /** Array to hold secondary indices of the base node clique */
56   int m_Index[VCliqueSize];
57 };
58
59 // end namespace itk
60
61 #ifndef ITK_MANUAL_INSTANTIATION
62 #include "itkCorrespondingList.txx"
63 #endif
64
65 #endif
66

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