/[ff3d]/ff3d/language/MultiLinearExpression.hpp
ViewVC logotype

Diff of /ff3d/language/MultiLinearExpression.hpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by delpinux, Mon Feb 17 16:32:52 2003 UTC revision 1.2 by delpinux, Sun May 4 18:09:01 2003 UTC
# Line 58  private: Line 58  private:
58    FunctionListType __functionList;    FunctionListType __functionList;
59    RealListType __realList;    RealListType __realList;
60    
61    std::ostream& put(std::ostream& os)    std::ostream& put(std::ostream& os) const
62    {    {
63      bool notFirst = false;      bool notFirst = false;
64      for (LinearListType::iterator i = __linearList.begin();      for (LinearListType::const_iterator i = __linearList.begin();
65           i != __linearList.end(); ++i) {           i != __linearList.end(); ++i) {
66        if (notFirst) {        if (notFirst) {
67          os << '*';          os << '*';
# Line 71  private: Line 71  private:
71        os << (*(*i));        os << (*(*i));
72      }      }
73    
74      for (FunctionListType::iterator i = __functionList.begin();      for (FunctionListType::const_iterator i = __functionList.begin();
75           i != __functionList.end(); ++i) {           i != __functionList.end(); ++i) {
76        if (notFirst) {        if (notFirst) {
77          os << '*';          os << '*';
# Line 81  private: Line 81  private:
81        os << (*(*i));        os << (*(*i));
82      }      }
83    
84      for (RealListType::iterator i = __realList.begin();      for (RealListType::const_iterator i = __realList.begin();
85           i != __realList.end(); ++i) {           i != __realList.end(); ++i) {
86        if (notFirst) {        if (notFirst) {
87          os << '*';          os << '*';
# Line 664  private: Line 664  private:
664    ListType __listPlus;    ListType __listPlus;
665    ListType __listMinus;    ListType __listMinus;
666    
667    std::ostream& put(std::ostream& os)    std::ostream& put(std::ostream& os) const
668    {    {
669      bool first = true;      bool first = true;
670    
671      for (ListType::iterator i = __listPlus.begin();      for (ListType::const_iterator i = __listPlus.begin();
672           i != __listPlus.end(); ++i) {           i != __listPlus.end(); ++i) {
673        if (!first) {        if (!first) {
674          os << '+';          os << '+';
# Line 678  private: Line 678  private:
678        os << *(*i);        os << *(*i);
679    
680      }      }
681      for (ListType::iterator i = __listMinus.begin();      for (ListType::const_iterator i = __listMinus.begin();
682           i != __listMinus.end(); ++i) {           i != __listMinus.end(); ++i) {
683        os << '-' << *(*i);        os << '-' << *(*i);
684      }      }

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26