40 |
ReferenceCounting<MultiLinearExpressionSum> __multiLinearExpression; |
ReferenceCounting<MultiLinearExpressionSum> __multiLinearExpression; |
41 |
const FormType __formType; |
const FormType __formType; |
42 |
|
|
43 |
std::ostream& put(std::ostream& os) |
std::ostream& put(std::ostream& os) const |
44 |
{ |
{ |
45 |
switch(__formType) { |
switch(__formType) { |
46 |
case oneD: { |
case oneD: { |
131 |
ListType __listPlus; |
ListType __listPlus; |
132 |
ListType __listMinus; |
ListType __listMinus; |
133 |
|
|
134 |
std::ostream& put(std::ostream& os) |
std::ostream& put(std::ostream& os) const |
135 |
{ |
{ |
136 |
bool first = true; |
bool first = true; |
137 |
|
|
138 |
for (ListType::iterator i = __listPlus.begin(); |
for (ListType::const_iterator i = __listPlus.begin(); |
139 |
i != __listPlus.end(); ++i) { |
i != __listPlus.end(); ++i) { |
140 |
if (!first) { |
if (!first) { |
141 |
os << '+'; |
os << '+'; |
145 |
os << *(*i); |
os << *(*i); |
146 |
} |
} |
147 |
|
|
148 |
for (ListType::iterator i = __listMinus.begin(); |
for (ListType::const_iterator i = __listMinus.begin(); |
149 |
i != __listMinus.end(); ++i) { |
i != __listMinus.end(); ++i) { |
150 |
os << '-' << *(*i); |
os << '-' << *(*i); |
151 |
} |
} |