Base class for histogram classes. More...
#include <chistogram.h>
Public Member Functions | |
Constructors, destructor, assignment. | |
cHistogramBase (const cHistogramBase &r) | |
cHistogramBase (const char *name, int numcells) | |
virtual | ~cHistogramBase () |
cHistogramBase & | operator= (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) |
Base class for histogram classes.
It adds a vector of counters to cDensityEstBase.
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::setNumCells | ( | int | numcells | ) | [virtual] |
Sets the number of cells.
Cannot be called when the cells have been set up already.