ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-4/src/types/PolynomialBendType.hpp
(Generate patch)

Comparing branches/new_design/OOPSE-4/src/types/PolynomialBendType.hpp (file contents):
Revision 1746 by tim, Wed Nov 17 06:37:56 2004 UTC vs.
Revision 1800 by tim, Tue Nov 30 04:14:43 2004 UTC

# Line 32 | Line 32
32  
33   #ifndef TYPES_POLYNOMIALBENDTYPE_HPP
34   #define TYPES_POLYNOMIALBENDTYPE_HPP
35 + #include <iostream>
36  
36 namespace oopse {
37
37   #include "math/Polynomial.hpp"
38   #include "types/BendType.hpp"
39 +
40 + namespace oopse {
41 +
42   /**
43   * @class PolynomialBendType PolynomialBendType.hpp "types/PolynomialBendType.hpp"
44   * @todo documentation
# Line 44 | Line 46 | class PolynomialBendType : public BendType{
46   class PolynomialBendType : public BendType{
47  
48      public:
49 <        PolynomialBendType() {}
48 <        PolynomialBendType(double theta, const std::vector<int>& power,
49 <            const std::vector<double>& coeff) : BendType(theta){
50 <        }
49 >        PolynomialBendType(double theta) : BendType(theta) {}
50  
51          void setCoefficient(int power, double coefficient) {
52              polynomial_.setCoefficient(power, coefficient);
# Line 72 | Line 71 | std::ostream& operator <<(std::ostream& os, Polynomial
71   };
72  
73   std::ostream& operator <<(std::ostream& os, PolynomialBendType& pbt) {
74 <    typename DoublePolynomial::PolynomialIterator i;
74 >    typename DoublePolynomial::const_iterator i;
75  
76      i = pbt.polynomial_.begin();
77      

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines