|
[yoda-svn] r273 - trunk/include/YODAblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu Aug 18 10:49:53 BST 2011
Author: mkawalec Date: Thu Aug 18 10:49:52 2011 New Revision: 273 Log: Removed some additional unneeded non-consts. Modified: trunk/include/YODA/Axis2D.h trunk/include/YODA/Histo2D.h Modified: trunk/include/YODA/Axis2D.h ============================================================================== --- trunk/include/YODA/Axis2D.h Thu Aug 18 10:40:37 2011 (r272) +++ trunk/include/YODA/Axis2D.h Thu Aug 18 10:49:52 2011 (r273) @@ -195,45 +195,44 @@ /// Get the total number of bins - size_t numBinsTotal() const { + const size_t numBinsTotal() const { return _bins.size(); } /// Get the number of bins along X axis - size_t numBinsX() const { + const size_t numBinsX() const { return _binHashSparse.second.size()/2; } /// Get the number of bins along Y axis - size_t numBinsY() const { + const size_t numBinsY() const { return _binHashSparse.first.size()/2; } /// Get the value of the lowest x-edge on the axis - double lowEdgeX() const { + const double lowEdgeX() const { return _lowEdgeX; } /// Get the value of the highest x-edge on the axis - double highEdgeX() const { + const double highEdgeX() const { return _highEdgeX; } /// Get the value of the lowest y-edge on the axis - double lowEdgeY() const { + const double lowEdgeY() const { return _lowEdgeY; } /// Get the value of the highest y-edge on the axis - double highEdgeY() const { + const double highEdgeY() const { return _highEdgeY; } - /// Get the bins (non-const version) Bins& bins() { return _bins; @@ -244,10 +243,6 @@ return _bins; } - /// Get the outflows (non-const version) - vector<vector<Dbn2D> >& outflows() { - return _outflows; - } /// Get the outflows (const version) const vector<vector<Dbn2D> >& outflows() const { return _outflows; Modified: trunk/include/YODA/Histo2D.h ============================================================================== --- trunk/include/YODA/Histo2D.h Thu Aug 18 10:40:37 2011 (r272) +++ trunk/include/YODA/Histo2D.h Thu Aug 18 10:49:52 2011 (r273) @@ -194,26 +194,6 @@ return _axis.getBinIndex(coordX, coordY); } - // /// Underflow (const version) - // const Dbn2D& underflow() const { - // return _axis.underflow(); - // } - - // /// Return underflow (non-const version) - // Dbn2D& underflow() { - // return _axis.underflow(); - // } - - // /// Return overflow (const version) - // const Dbn2D& overflow() const { - // return _axis.overflow(); - // } - - // /// Return overflow (non-const version) - // Dbn2D& overflow() { - // return _axis.overflow(); - // } - /// Return a total number of bins in Histo(non-const version) size_t numBinsTotal() { return _axis.numBinsTotal(); @@ -223,21 +203,11 @@ return _axis.numBinsTotal(); } - /// Return number of bins along X axis (non-const version) - size_t numBinsX() { - return _axis.numBinsX(); - } - /// Return number of bins along X axis (const version) const size_t numBinsX() const { return _axis.numBinsX(); } - /// Return the number of bins along Y axis (non-const version) - size_t numBinsY() { - return _axis.numBinsY(); - } - /// Return the number of bins along Y axis (const version) const size_t numBinsY() const{ return _axis.numBinsY();
More information about the yoda-svn mailing list |