Histogram Class Reference

#include <Histogram.H>

Collaboration diagram for Histogram:

Collaboration graph
[legend]
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

Detailed Description

Definition at line 28 of file Histogram.H.


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 ( int  t  )  throw ()

Definition at line 29 of file Histogram.C.

References NEW_PTRFREE_ARRAY.

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

Here is the caller graph for this function:

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

void Histogram::SetHistoMap ( histo_map_t  map_func  )  [inline]

Definition at line 84 of file read_timing.C.

References histo_map.

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

Definition at line 90 of file read_timing.C.

References histo_map.

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

Definition at line 101 of file read_timing.C.

References Table< K, V >::Iterator::Next(), and SimpleKey< T >::Val().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 127 of file read_timing.C.

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

Here is the call graph for this function:


Member Data Documentation

int Histogram::numVals [private]

Definition at line 43 of file Histogram.H.

int Histogram::gran [private]

Definition at line 44 of file Histogram.H.

int Histogram::numBuckets [private]

Definition at line 45 of file Histogram.H.

int* Histogram::bucket [private]

Definition at line 46 of file Histogram.H.

int Histogram::firstBucket [private]

Definition at line 47 of file Histogram.H.

histo_map_t Histogram::histo_map [private]

Definition at line 71 of file read_timing.C.

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

IntIntTbl Histogram::tbl [private]

Definition at line 72 of file read_timing.C.

Referenced by operator+=().


The documentation for this class was generated from the following files:
Generated on Fri May 25 00:57:19 2007 for Vesta by  doxygen 1.5.1