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

Metrics Class Reference

A Metrics object contain all the AvgMeasure and DstMeasure objects. More...

#include <measure.h>

Inheritance diagram for Metrics:

Object List of all members.

Public Member Functions

 Metrics ()
 Create an empty Metrics object.

 ~Metrics ()
 Do nothing.

void addSample (std::string m, sample_t x, unsigned int id)
 Add a sample to an averaged measure.

void addSample (std::string m, sample_t x, unsigned int id, unsigned int bin)
 Add a sample to a distribution measure.

void setBinSize (std::string m, sample_t binSize)
 Set the bin size of a distribution measure.

void setDistLower (std::string m, sample_t distLower)
 Set the lower bound of a distribution measure.

std::map< std::string, AvgMeasure > & getAvgMeasures ()
 Return the set of average measures.

std::map< std::string, DstMeasure > & getDstMeasures ()
 Return the set of distribution measures.

void dump (std::ostream &os)
 Debug function to dump the content of the Metrics object into a stream.


Private Attributes

std::map< std::string, AvgMeasureavgMeasures
std::map< std::string, DstMeasuredstMeasures

Detailed Description

A Metrics object contain all the AvgMeasure and DstMeasure objects.


The documentation for this class was generated from the following files:
Generated on Tue May 30 08:09:56 2006 for ns2measure by doxygen 1.3.7