KWStyle - itkCorrespondenceDataStructure.txx
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkCorrespondenceDataStructure.txx.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 __itkCorrespondenceDataStructure_txx
18 #define __itkCorrespondenceDataStructure_txx
19
20 #include "itkCorrespondenceDataStructure.h"
21 #include "itkNodeList.h"
22
23 namespace itk
24 {
25 /**
26  * Constructor.
27  */
28 template <typename TItemType, int VCliqueSize>
29 CorrespondenceDataStructure<TItemType, VCliqueSize>
30 ::CorrespondenceDataStructure()
31 {
32   // Initialize NodeList.
33   m_NodeList = new NodeListType();
34 }
35
36 template <typename TItemType, int VCliqueSize>
37 CorrespondenceDataStructure<TItemType, VCliqueSize>
38 ::~CorrespondenceDataStructure()
39 {
40   if (m_NodeList)
41     {
42     // do we need to delete every item in the list as well?
43     delete m_NodeList;
44     m_NodeList = 0;
45     }
46 }
47
48 // end namespace itk
49
50 #endif
51

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