Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts
Public Types | Public Member Functions | Protected Attributes

itk::MapFileParser< TMapData > Class Template Reference

#include <itkSmapsFileParser.h>

Inheritance diagram for itk::MapFileParser< TMapData >:
Inheritance graph
[legend]
Collaboration diagram for itk::MapFileParser< TMapData >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef TMapData::MemoryLoadType MemoryLoadType

Public Member Functions

MemoryLoadType GetHeapUsage ()
MemoryLoadType GetMemoryUsage (const char *filter, const char *token="Size")
MemoryLoadType GetStackUsage ()
MemoryLoadType GetTotalMemoryUsage ()
virtual void ReadFile (const std::string &mapFileLocation="")=0
bool Update (void)
virtual ~MapFileParser ()

Protected Attributes

TMapData m_MapData
std::string m_MapFilePath

Detailed Description

template<class TMapData>
class itk::MapFileParser< TMapData >

FIXME: Add documentation

Definition at line 209 of file itkSmapsFileParser.h.


Member Typedef Documentation

template<class TMapData>
typedef TMapData::MemoryLoadType itk::MapFileParser< TMapData >::MemoryLoadType

Definition at line 212 of file itkSmapsFileParser.h.


Constructor & Destructor Documentation

template<class TMapData>
virtual itk::MapFileParser< TMapData >::~MapFileParser (  )  [virtual]

Member Function Documentation

template<class TMapData>
MemoryLoadType itk::MapFileParser< TMapData >::GetHeapUsage (  ) 

Returns the heap usage in kB of the process. If no file has been loaded yet, load a default file.

template<class TMapData>
MemoryLoadType itk::MapFileParser< TMapData >::GetMemoryUsage ( const char *  filter,
const char *  token = "Size" 
)

Returns the memory usage in kB of a process segment. If no file has been loaded yet, load a default file.

template<class TMapData>
MemoryLoadType itk::MapFileParser< TMapData >::GetStackUsage (  ) 

Returns the heap usage in kB of the process. If no file has been loaded yet, load a default file.

template<class TMapData>
MemoryLoadType itk::MapFileParser< TMapData >::GetTotalMemoryUsage (  ) 

Returns the total memory usage in kB of a process. If no file has been loaded yet, load a default file.

template<class TMapData>
virtual void itk::MapFileParser< TMapData >::ReadFile ( const std::string &  mapFileLocation = ""  )  [pure virtual]

Load and parse a Map file pointed by mapFileLocation. If mapFileLocation is empty, load the default file Throw an exception is the file can't be opened.

Implemented in itk::SmapsFileParser< TSmapsDataType >, and itk::VMMapFileParser< TVMMapDataType >.

template<class TMapData>
bool itk::MapFileParser< TMapData >::Update ( void   ) 

ReRead the last parsed file to refresh the memory usage. Returns true if read from the default location "".


Member Data Documentation

template<class TMapData>
TMapData itk::MapFileParser< TMapData >::m_MapData [protected]

Definition at line 248 of file itkSmapsFileParser.h.

template<class TMapData>
std::string itk::MapFileParser< TMapData >::m_MapFilePath [protected]

Definition at line 247 of file itkSmapsFileParser.h.


The documentation for this class was generated from the following file:

Generated at Tue Jul 13 2010 00:00:36 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000