00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkFEMInitialization.h,v $ 00005 Language: C++ 00006 Date: $Date: 2002/08/27 14:36:20 $ 00007 Version: $Revision: 1.2 $ 00008 00009 Copyright (c) 2002 Insight 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 00018 #ifndef __itkFEMInitialization_h 00019 #define __itkFEMInitialization_h 00020 00029 namespace itk { 00030 namespace fem { 00031 00032 00033 00034 00044 class FEMInitialization 00045 { 00046 static unsigned int count; 00047 public: 00048 FEMInitialization(); 00049 ~FEMInitialization(); 00050 }; 00051 00052 /* 00053 * Trigger constructor and destructor calls in each compilation unit. 00054 * Unnamed namespace are used to avoid name collisions. 00055 */ 00056 namespace { 00057 static FEMInitialization FEMInitialization_var; 00058 } 00059 00060 00061 00062 00063 }} // end namespace itk::fem 00064 00065 #endif // #ifndef __itkFEMInitialization_h