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

StatCount Class Reference

#include <StatCount.H>

List of all members.

Public Types

enum  troubleEnd_t { troubleHigh, troubleLow }

Public Member Functions

 StatCount () throw ()
void SetHistoMap (const char *name, int(*map)(int)) throw ()
void SetReportCount (unsigned int reportCount)
void SetTroubleEnd (troubleEnd_t end)
void AddReportMask (Basics::RegExp *mask)
void AddVal (int val, const Stat::Location *loc) throw ()
void Merge (const StatCount &sc) throw ()
bool IsEmpty () const throw ()
int MinVal () const throw ()
int MaxVal () const throw ()
float MeanVal () const throw ()
Basics::int64 SumTotal () const throw ()
void Print (std::ostream &os, int indent, bool printHisto, bool printMinLoc, bool printMaxLoc, bool printMean=true) const throw ()
void PrintHisto (std::ostream &os, int indent) const throw ()
void PrintTrouble (std::ostream &os, int indent) const throw ()

Private Types

typedef std::list< toubleLoc_t,
Basics::Allocator< toubleLoc_t > > 
troubleSet_t

Private Member Functions

 StatCount (const StatCount &)
bool MoreTrouble (int val1, int val2)
void AddTroubleEntry (int val, const Stat::Location *loc)
void PruneTroubleEntries ()

Private Attributes

int numVals
int minVal
int maxVal
Basics::int64 total
IntIntTbl tbl
const Stat::LocationminLoc
const Stat::LocationmaxLoc
const char * histoMapName
int(* histoMap )(int)
troubleEnd_t troubleEnd
unsigned int reportCount
bool reportCount_set
troubleSet_t troubleSet
TextIntTbl troubleCounts
RegExpSeq troubleMasks

Classes

struct  toubleLoc_t


Member Typedef Documentation

typedef std::list<toubleLoc_t, Basics::Allocator<toubleLoc_t> > StatCount::troubleSet_t [private]
 

Definition at line 161 of file StatCount.H.


Member Enumeration Documentation

enum StatCount::troubleEnd_t
 

Enumeration values:
troubleHigh 
troubleLow 

Definition at line 70 of file StatCount.H.


Constructor & Destructor Documentation

StatCount::StatCount  )  throw ()
 

Definition at line 46 of file StatCount.C.

References histoMap.

StatCount::StatCount const StatCount  )  [private]
 


Member Function Documentation

void StatCount::AddReportMask Basics::RegExp mask  )  [inline]
 

Definition at line 76 of file StatCount.H.

References Sequence< Elem, elem_ptrfree >::addhi(), and troubleMasks.

Referenced by main().

void StatCount::AddTroubleEntry int  val,
const Stat::Location loc
[private]
 

Definition at line 61 of file StatCount.C.

References Table< K, V >::Default::Get(), Stat::Location::get_sourceFunc(), MoreTrouble(), Table< K, V >::Default::Put(), troubleCounts, and troubleSet.

void StatCount::AddVal int  val,
const Stat::Location loc
throw ()
 

Definition at line 113 of file StatCount.C.

Referenced by PKFileObj::Search(), MPKFileObj::Search(), DirObj::Search(), and CFPObj::Search().

bool StatCount::IsEmpty  )  const throw () [inline]
 

Definition at line 89 of file StatCount.H.

References numVals.

int StatCount::MaxVal  )  const throw ()
 

Definition at line 230 of file StatCount.C.

References maxVal.

float StatCount::MeanVal  )  const throw ()
 

Definition at line 236 of file StatCount.C.

References numVals, and total.

void StatCount::Merge const StatCount sc  )  throw ()
 

Definition at line 165 of file StatCount.C.

References Table< K, V >::Iterator::Next().

int StatCount::MinVal  )  const throw ()
 

Definition at line 224 of file StatCount.C.

References minVal.

bool StatCount::MoreTrouble int  val1,
int  val2
[private]
 

Definition at line 286 of file StatCount.C.

References troubleEnd, and troubleHigh.

Referenced by AddTroubleEntry().

void StatCount::Print std::ostream &  os,
int  indent,
bool  printHisto,
bool  printMinLoc,
bool  printMaxLoc,
bool  printMean = true
const throw ()
 

Definition at line 247 of file StatCount.C.

Referenced by Process().

void StatCount::PrintHisto std::ostream &  os,
int  indent
const throw ()
 

Definition at line 307 of file StatCount.C.

References NEW_PTRFREE_ARRAY, Table< K, V >::Iterator::Next(), and IntKey::Val().

void StatCount::PrintTrouble std::ostream &  os,
int  indent
const throw ()
 

Definition at line 345 of file StatCount.C.

References Table< K, V >::Default::Delete().

void StatCount::PruneTroubleEntries  )  [private]
 

Definition at line 81 of file StatCount.C.

References Table< K, V >::Default::Delete(), Table< K, V >::Default::Get(), Stat::Location::get_sourceFunc(), StatCount::toubleLoc_t::loc, Table< K, V >::Default::Put(), reportCount, Table< K, V >::Default::Size(), troubleCounts, and troubleSet.

void StatCount::SetHistoMap const char *  name,
int(*)(int)  map
throw ()
 

Definition at line 55 of file StatCount.C.

void StatCount::SetReportCount unsigned int  reportCount  )  [inline]
 

Definition at line 62 of file StatCount.H.

References reportCount_set.

Referenced by main().

void StatCount::SetTroubleEnd troubleEnd_t  end  )  [inline]
 

Definition at line 71 of file StatCount.H.

References troubleEnd.

Basics::int64 StatCount::SumTotal  )  const throw () [inline]
 

Definition at line 99 of file StatCount.H.

References total.


Member Data Documentation

int(* StatCount::histoMap)(int) [private]
 

Referenced by StatCount().

const char* StatCount::histoMapName [private]
 

Definition at line 134 of file StatCount.H.

const Stat::Location * StatCount::maxLoc [private]
 

Definition at line 131 of file StatCount.H.

int StatCount::maxVal [private]
 

Definition at line 128 of file StatCount.H.

Referenced by MaxVal().

const Stat::Location* StatCount::minLoc [private]
 

Definition at line 131 of file StatCount.H.

int StatCount::minVal [private]
 

Definition at line 127 of file StatCount.H.

Referenced by MinVal().

int StatCount::numVals [private]
 

Definition at line 126 of file StatCount.H.

Referenced by IsEmpty(), and MeanVal().

unsigned int StatCount::reportCount [private]
 

Definition at line 139 of file StatCount.H.

Referenced by PruneTroubleEntries().

bool StatCount::reportCount_set [private]
 

Definition at line 140 of file StatCount.H.

Referenced by SetReportCount().

IntIntTbl StatCount::tbl [private]
 

Definition at line 130 of file StatCount.H.

Basics::int64 StatCount::total [private]
 

Definition at line 129 of file StatCount.H.

Referenced by MeanVal(), and SumTotal().

TextIntTbl StatCount::troubleCounts [private]
 

Definition at line 163 of file StatCount.H.

Referenced by AddTroubleEntry(), and PruneTroubleEntries().

troubleEnd_t StatCount::troubleEnd [private]
 

Definition at line 138 of file StatCount.H.

Referenced by MoreTrouble(), and SetTroubleEnd().

RegExpSeq StatCount::troubleMasks [private]
 

Definition at line 167 of file StatCount.H.

Referenced by AddReportMask().

troubleSet_t StatCount::troubleSet [private]
 

Definition at line 162 of file StatCount.H.

Referenced by AddTroubleEntry(), and PruneTroubleEntries().


The documentation for this class was generated from the following files:
Generated on Mon May 8 00:49:14 2006 for Vesta by  doxygen 1.4.2