Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51712 - in sandbox/SOC/2007/visualization/boost/svg_plot: . detail
From: pbristow_at_[hidden]
Date: 2009-03-11 14:26:51


Author: pbristow
Date: 2009-03-11 14:26:51 EDT (Wed, 11 Mar 2009)
New Revision: 51712
URL: http://svn.boost.org/trac/boost/changeset/51712

Log:
Made unc get functions const to allow use with map.
Text files modified:
   sandbox/SOC/2007/visualization/boost/svg_plot/detail/pair.hpp | 3 ---
   sandbox/SOC/2007/visualization/boost/svg_plot/uncertain.hpp | 16 ++++++++--------
   2 files changed, 8 insertions(+), 11 deletions(-)

Modified: sandbox/SOC/2007/visualization/boost/svg_plot/detail/pair.hpp
==============================================================================
--- sandbox/SOC/2007/visualization/boost/svg_plot/detail/pair.hpp (original)
+++ sandbox/SOC/2007/visualization/boost/svg_plot/detail/pair.hpp 2009-03-11 14:26:51 EDT (Wed, 11 Mar 2009)
@@ -56,9 +56,6 @@
       return os;
   } // std::ostream& operator<<
 
-
-
-
 
   //std::pair<class T1, class T2>& operator=(const pair& rhs)
   //{

Modified: sandbox/SOC/2007/visualization/boost/svg_plot/uncertain.hpp
==============================================================================
--- sandbox/SOC/2007/visualization/boost/svg_plot/uncertain.hpp (original)
+++ sandbox/SOC/2007/visualization/boost/svg_plot/uncertain.hpp 2009-03-11 14:26:51 EDT (Wed, 11 Mar 2009)
@@ -51,10 +51,10 @@
   unc& operator=(const unc& rhs);
 
   // Get and set member functions.
- double value(); //!< Get most likely value, typically the mean.
- float uncertainty(); //!< Get estimate of uncertainty, typically standard deviation.
- short unsigned deg_free(); //!< Get degrees of freedom, usually = number of observations -1;
- short unsigned types(); //!< Get other information about the value.
+ double value() const; //!< Get most likely value, typically the mean.
+ float uncertainty() const; //!< Get estimate of uncertainty, typically standard deviation.
+ short unsigned deg_free() const; //!< Get degrees of freedom, usually = number of observations -1;
+ short unsigned types() const; //!< Get other information about the value.
 
   void value(double);//!< Set most likely value, typically the mean.
   void uncertainty(float);//!< Set estimate of uncertainty, typically standard deviation.
@@ -116,22 +116,22 @@
 }
 
 
-double unc::value() //!< Get most likely value, typically the mean.
+double unc::value() const //!< Get most likely value, typically the mean.
 {
   return value_;
 }
 
-float unc::uncertainty() //!< Get estimate of uncertainty, typically standard deviation.
+float unc::uncertainty() const//!< Get estimate of uncertainty, typically standard deviation.
 {
   return uncertainty_;
 }
 
-short unsigned unc::deg_free() //!< Get degrees of freedom, usually = number of observations -1;
+short unsigned unc::deg_free() const//!< Get degrees of freedom, usually = number of observations -1;
 {
   return deg_free_;
 }
 
-short unsigned unc::types() //!< Get other information about the value.
+short unsigned unc::types() const//!< Get other information about the value.
 {
   return types_;
 }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk