wxArt2D
Public Member Functions | Protected Attributes | List of all members
a2dProfilerMean Class Reference

to find minimum and maximum values and sum of all values encountered in some pice of code. More...

#include <prflcntmean.h>

Inheritance diagram for a2dProfilerMean:
Inheritance graph
[legend]
Collaboration diagram for a2dProfilerMean:
Collaboration graph
[legend]

Public Member Functions

 a2dProfilerMean (wxString idIn)
 
void Cnt (double val)
 
- Public Member Functions inherited from a2dProfiler
 a2dProfiler (const wxString &idIn)
 constructor
 
 ~a2dProfiler ()
 destructor
 

Protected Attributes

int cnt
 
double sum
 
double min
 
double max
 
- Protected Attributes inherited from a2dProfiler
wxString id
 

Additional Inherited Members

- Static Public Member Functions inherited from a2dProfiler
static void OpenPrflFile ()
 opens the profiling data file, if not yet open.
 
- Static Protected Attributes inherited from a2dProfiler
static int nmbrActv
 Number of aktive PrflCnt ( the last one closes the file. )
 
static wxFFile prflFile
 

Detailed Description

to find minimum and maximum values and sum of all values encountered in some pice of code.

Zusammenfassung der Anwendungsdetails der Klasse a2dProfilerMean

a2dProfilerMean dient dazu die Verteilung bestimmter Werte zu ermitteln. Die Anwendung ist denkbar einfach. An geeigneter Stelle fügt man folgendes Makro ein:

PRFL_CNT_HSTG(HstgName,HstgWert,HstgMin,HstgMax);

HstgMin und HstgMax sind die Grenzwerte für die Aufzeichnung. HstgWert ist der aktuelle Wert. HstgName dient zur Identifikation und muß ein gültiger C-Identifier sein. Dem Identifier wird das Präfix prfl_ vorgestellt. Mit diesem Präfix muß er in der Funktion eindeutig sein. Der Identifier sollte nicht länger als 20 Zeichen sein

Die Profileinformation wird am Programmende automatisch in die Datei Profile.txt gesichert.

Profiling ist nur eingeschaltet, wenn das macro PRFL_ENBL definiert ist oder wenn die Datei PrflEnbl.h includiert wird.

siehe auch: prflTmr.h prflCnt.h prfl.h

Definition at line 58 of file prflcntmean.h.


The documentation for this class was generated from the following files:
a2dProfilerMean Class Reference -- Sun Oct 12 2014 17:04:46 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation