Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkResourceProbesCollectorBase.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkResourceProbesCollectorBase.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-11-04 23:42:46 $
00007   Version:   $Revision: 1.3 $
00008 
00009   Copyright (c) Insight Software 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 #ifndef __itkResourceProbesCollectorBase_h
00018 #define __itkResourceProbesCollectorBase_h
00019 
00020 #include "itkConfigure.h"
00021 
00022 #include "itkResourceProbe.h"
00023 #include "itkMemoryUsageObserver.h"
00024 
00025 namespace itk
00026 {
00027   
00037 template <class TProbe>
00038 class ITK_EXPORT ResourceProbesCollectorBase 
00039 {
00040 public:
00041   typedef std::string               IdType;
00042   typedef std::map<IdType,TProbe>   MapType;
00043   
00045   virtual ~ResourceProbesCollectorBase();
00046 
00049   virtual void Start( const char * name );
00050 
00052   virtual void Stop( const char * name );
00053 
00055   virtual void Report( std::ostream & os = std::cout ) const;
00056 
00058   virtual void Clear(void);
00059 
00060 protected:
00061   MapType   m_Probes;
00062 };
00063 
00064 } // end namespace itk
00065 
00066 #ifndef ITK_MANUAL_INSTANTIATION
00067 #include "itkResourceProbesCollectorBase.txx"
00068 #endif
00069 
00070 #endif //__itkResourceProbesCollectorBase_h
00071 

Generated at Sat Feb 28 13:27:10 2009 for ITK by doxygen 1.5.6 written by Dimitri van Heesch, © 1997-2000