cHistogramBase Class Reference
[Statistical data collection]

#include <chistogram.h>

Inheritance diagram for cHistogramBase:

cDensityEstBase cStdDev cStatistic cOwnedObject cNamedObject cObject cHistogram cVarHistogram cDoubleHistogram cLongHistogram

List of all members.


Detailed Description

Base class for histogram classes.

It adds a vector of counters to cDensityEstBase.

Public Member Functions

Constructors, destructor, assignment.
 cHistogramBase (const cHistogramBase &r)
 cHistogramBase (const char *name, int numcells)
virtual ~cHistogramBase ()
cHistogramBaseoperator= (const cHistogramBase &res)
Redefined cObject member functions.
virtual void parsimPack (cCommBuffer *buffer)
virtual void parsimUnpack (cCommBuffer *buffer)
Redefined member functions from cStatistic and its subclasses.
virtual void clearResult ()
virtual void transform ()
virtual int getNumCells () const
virtual void saveToFile (FILE *) const
virtual void loadFromFile (FILE *)
New member functions.
virtual void setNumCells (int numcells)


Constructor & Destructor Documentation

cHistogramBase::cHistogramBase ( const cHistogramBase r  )  [inline]

Copy constructor.

cHistogramBase::cHistogramBase ( const char *  name,
int  numcells 
)

Constructor.

virtual cHistogramBase::~cHistogramBase (  )  [virtual]

Destructor.


Member Function Documentation

cHistogramBase& cHistogramBase::operator= ( const cHistogramBase res  ) 

Assignment operator.

The name member is not copied; see cNamedObject's operator=() for more details.

virtual void cHistogramBase::parsimPack ( cCommBuffer buffer  )  [virtual]

Serializes the object into an MPI send buffer.

Used by the simulation kernel for parallel execution. See cObject for more details.

Reimplemented from cDensityEstBase.

Reimplemented in cHistogram, and cVarHistogram.

virtual void cHistogramBase::parsimUnpack ( cCommBuffer buffer  )  [virtual]

Deserializes the object from an MPI receive buffer Used by the simulation kernel for parallel execution.

See cObject for more details.

Reimplemented from cDensityEstBase.

Reimplemented in cHistogram, and cVarHistogram.

virtual void cHistogramBase::clearResult (  )  [virtual]

Clears the results collected so far.

Reimplemented from cDensityEstBase.

Reimplemented in cVarHistogram.

virtual void cHistogramBase::transform (  )  [virtual]

Transforms the table of pre-collected values into an internal histogram structure.

Implements cDensityEstBase.

Reimplemented in cVarHistogram.

virtual int cHistogramBase::getNumCells (  )  const [virtual]

Returns the number of histogram cells used.

Implements cDensityEstBase.

virtual void cHistogramBase::saveToFile ( FILE *   )  const [virtual]

Writes the contents of the object into a text file.

Reimplemented from cDensityEstBase.

Reimplemented in cHistogram, and cVarHistogram.

virtual void cHistogramBase::loadFromFile ( FILE *   )  [virtual]

Reads the object data from a file, in the format written out by saveToFile().

Reimplemented from cDensityEstBase.

Reimplemented in cHistogram, and cVarHistogram.

virtual void cHistogramBase::setNumCells ( int  numcells  )  [virtual]

Sets the number of cells.

Cannot be called when the cells have been set up already.


The documentation for this class was generated from the following file:

Generated on Wed Apr 3 14:40:28 2013 for OMNeT++ Simulation Library by  doxygen 1.5.5