KWStyle - itkSimpleDataObjectDecorator.txx
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkSimpleDataObjectDecorator.txx.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   Portions of this code are covered under the VTK copyright.
13   See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
14
15      This software is distributed WITHOUT ANY WARRANTY; without even 
16      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
17 IND *****PURPOSE.  See the above copyright notices for more information.
18
19 =========================================================================*/
20 DEF #ifndef _itkSimpleDataObjectDecorator_txx
21 DEF #define _itkSimpleDataObjectDecorator_txx
22
23 #include "itkSimpleDataObjectDecorator.h"
24
25 namespace itk
26 {
27
28 /**
29  *
30  */
31 template<class T>
32 SimpleDataObjectDecorator<T>
33 ::SimpleDataObjectDecorator() 
34 {
35   m_Component = ComponentType(); // initialize here to avoid Purify UMR
36 }
37
38
39 /**
40  *
41  */
42 template<class T>
43 SimpleDataObjectDecorator<T>
44 ::~SimpleDataObjectDecorator()
45 {
46 }
47
48
49 /**
50  *
51  */
52 template<class T>
53 void
54 SimpleDataObjectDecorator<T>
55 ::Set(const T& val)
56 {
57   if (m_Component != val)
58     {
59     m_Component = val;
60     this->Modified();
61     }
62 }
63
64 /**
65  *
66  */
67 template<class T>
68 void 
69 SimpleDataObjectDecorator<T>
70 ::PrintSelf(std::ostream& os, Indent indent) const
71 {
72   Superclass::PrintSelf(os,indent);
73
74   os << indent << "Component: " << typeid(m_Component).name() << std::endl;
75 }
76
77 // end namespace itk
78
79 #endif
80

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