remove leading underscores from isolator interface

This commit is contained in:
Luis Peñaranda 2013-09-19 16:15:23 -03:00
parent 44117e0ae2
commit 7481e18eae
1 changed files with 11 additions and 11 deletions

View File

@ -69,10 +69,10 @@ public:
/// The RealRootIsolator provides isolating intervals for the real /// The RealRootIsolator provides isolating intervals for the real
/// roots of the polynomial /// roots of the polynomial
RS_real_root_isolator(const Polynomial& p = Polynomial(Coefficient(0))) : RS_real_root_isolator(const Polynomial& p = Polynomial(Coefficient(0))) :
_m_polynomial(p) input_polynomial(p)
//, _m_interval_given(false) //, interval_given(false)
{ {
_m_real_roots=RS::isolator<Polynomial>()(p); real_roots=RS::isolator<Polynomial>()(p);
} }
// @LUIS: add constructor from interval (maybe some time in the future) // @LUIS: add constructor from interval (maybe some time in the future)
@ -81,12 +81,12 @@ public: // functions
//! Returns the defining polynomial. //! Returns the defining polynomial.
Polynomial polynomial() const { Polynomial polynomial() const {
return _m_polynomial; return input_polynomial;
} }
//! Returns the number of real roots. //! Returns the number of real roots.
int number_of_real_roots() const { int number_of_real_roots() const {
return _m_real_roots.size(); return real_roots.size();
} }
/// Returns true if the isolating interval is degenerated to a /// Returns true if the isolating interval is degenerated to a
@ -97,7 +97,7 @@ public: // functions
/// If is_exact_root(i) is true, /// If is_exact_root(i) is true,
/// then right_bound(int i) equals \f$root_i\f$. \n /// then right_bound(int i) equals \f$root_i\f$. \n
bool is_exact_root(int i) const { bool is_exact_root(int i) const {
return(_m_real_roots[i].inf()==_m_real_roots[i].sup()); return(real_roots[i].inf()==real_roots[i].sup());
} }
public: public:
@ -116,7 +116,7 @@ public:
Bound left_bound(int i) const { Bound left_bound(int i) const {
CGAL_assertion(i >= 0); CGAL_assertion(i >= 0);
CGAL_assertion(i < this->number_of_real_roots()); CGAL_assertion(i < this->number_of_real_roots());
return _m_real_roots[i].inf(); return real_roots[i].inf();
} }
/// Returns \f${r_i}\f$ the right bound of the isolating interval /// Returns \f${r_i}\f$ the right bound of the isolating interval
@ -134,19 +134,19 @@ public:
Bound right_bound(int i) const { Bound right_bound(int i) const {
CGAL_assertion(i >= 0); CGAL_assertion(i >= 0);
CGAL_assertion(i < this->number_of_real_roots()); CGAL_assertion(i < this->number_of_real_roots());
return _m_real_roots[i].sup(); return real_roots[i].sup();
} }
private: private:
//! the input polynomial //! the input polynomial
Polynomial _m_polynomial; Polynomial input_polynomial;
//! the solutions //! the solutions
std::vector<Interval> _m_real_roots; std::vector<Interval> real_roots;
//! restricted interval? //! restricted interval?
// TODO bool _m_interval_given; // TODO bool interval_given;
}; };