Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members

MaxMem Class Reference

#include <infolines.h>

Collaboration diagram for MaxMem:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

void update (const char *message)
void summary (void)
double getPeak ()
std::string getMessage ()

Static Private Attributes

double _peak = 0.
std::string _message = "No measurements taken"

Member Function Documentation

std::string MaxMem::getMessage  )  [inline, static]
 

Definition at line 145 of file infolines.h.

References _message.

00145 { return _message; }

double MaxMem::getPeak  )  [inline, static]
 

Definition at line 144 of file infolines.h.

References _peak.

00144 { return _peak; }

void MaxMem::summary void   )  [inline, static]
 

Definition at line 140 of file infolines.h.

References _message, and _peak.

00140                              {
00141       cout<<"Maximum memory: "<<_peak<<"Mb which came from \""
00142           <<_message.c_str()<<"\""<<endl;
00143    }

void MaxMem::update const char *  message  )  [inline, static]
 

Definition at line 133 of file infolines.h.

References _message, and _peak.

Referenced by parquetfp::SolveMulti::clusterOnly(), parquetfp::SolveMulti::go(), and parquetfp::Annealer::go().

00133                                            {
00134       double currmem = MemUsage();
00135       if(currmem > _peak) {
00136         _peak = currmem;
00137         _message = message;
00138       }
00139    }


Member Data Documentation

std::string MaxMem::_message = "No measurements taken" [static, private]
 

Definition at line 56 of file infolines.cxx.

Referenced by getMessage(), summary(), and update().

double MaxMem::_peak = 0. [static, private]
 

Definition at line 55 of file infolines.cxx.

Referenced by getPeak(), summary(), and update().


The documentation for this class was generated from the following files:
Generated on Mon Apr 25 01:14:27 2005 for Parquete by doxygen 1.3.2