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

Histogram Class Reference

#include <Histogram.H>

List of all members.

Public Types

typedef unsigned int(* histo_map_t )(unsigned int)

Public Member Functions

 Histogram (int gran) throw ()
void AddVal (int t) throw ()
void Print (std::ostream &os, int width=78) const throw ()
 Histogram (histo_map_t map_func)
 Histogram ()
void SetHistoMap (histo_map_t map_func)
void AddVal (unsigned int val)
void PrintHisto (ostream &out) const throw ()
Histogramoperator+= (const Histogram &other)

Private Attributes

int numVals
int gran
int numBuckets
int * bucket
int firstBucket
histo_map_t histo_map
IntIntTbl tbl


Member Typedef Documentation

typedef unsigned int(* Histogram::histo_map_t)(unsigned int)
 

Definition at line 69 of file read_timing.C.


Constructor & Destructor Documentation

Histogram::Histogram int  gran  )  throw () [inline]
 

Definition at line 30 of file Histogram.H.

Histogram::Histogram histo_map_t  map_func  )  [inline]
 

Definition at line 75 of file read_timing.C.

Histogram::Histogram  )  [inline]
 

Definition at line 79 of file read_timing.C.


Member Function Documentation

void Histogram::AddVal unsigned int  val  )  [inline]
 

Definition at line 90 of file read_timing.C.

References Table< K, V >::Default::Get(), histo_map, Table< K, V >::Default::Put(), and tbl.

void Histogram::AddVal int  t  )  throw ()
 

Definition at line 29 of file Histogram.C.

References NEW_PTRFREE_ARRAY.

Referenced by Proc_Totals::add_call(), and main().

Histogram& Histogram::operator+= const Histogram other  )  [inline]
 

Definition at line 127 of file read_timing.C.

References Table< K, V >::Default::Get(), Table< K, V >::Iterator::Next(), Table< K, V >::Default::Put(), and tbl.

void Histogram::Print std::ostream &  os,
int  width = 78
const throw ()
 

Definition at line 63 of file Histogram.C.

References max().

void Histogram::PrintHisto ostream &  out  )  const throw () [inline]
 

Definition at line 101 of file read_timing.C.

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

Referenced by main().

void Histogram::SetHistoMap histo_map_t  map_func  )  [inline]
 

Definition at line 84 of file read_timing.C.

References histo_map.


Member Data Documentation

int* Histogram::bucket [private]
 

Definition at line 46 of file Histogram.H.

int Histogram::firstBucket [private]
 

Definition at line 47 of file Histogram.H.

int Histogram::gran [private]
 

Definition at line 44 of file Histogram.H.

histo_map_t Histogram::histo_map [private]
 

Definition at line 71 of file read_timing.C.

Referenced by AddVal(), and SetHistoMap().

int Histogram::numBuckets [private]
 

Definition at line 45 of file Histogram.H.

int Histogram::numVals [private]
 

Definition at line 43 of file Histogram.H.

IntIntTbl Histogram::tbl [private]
 

Definition at line 72 of file read_timing.C.

Referenced by AddVal(), operator+=(), and PrintHisto().


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