Skip to content
Snippets Groups Projects
Commit 0c30c2c0 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

ZLimits: rm operator<<; rm TODO note on operator==

parent 1083d5f0
No related branches found
No related tags found
1 merge request!1174IFormFactor and children: replace BottomZ, TopZ by spanZ
...@@ -22,8 +22,6 @@ bool ZLimits::isFinite() const ...@@ -22,8 +22,6 @@ bool ZLimits::isFinite() const
return !std::isinf(low()) && !std::isinf(hig()); return !std::isinf(low()) && !std::isinf(hig());
} }
// TODO sep22: rm all the following if they remain UNUSED
ZLimits ZLimits::unite(const ZLimits& left, const ZLimits& right) ZLimits ZLimits::unite(const ZLimits& left, const ZLimits& right)
{ {
return {std::min(left.low(), right.low()), std::max(left.hig(), right.hig())}; return {std::min(left.low(), right.low()), std::max(left.hig(), right.hig())};
...@@ -38,8 +36,3 @@ bool operator!=(const ZLimits& left, const ZLimits& right) ...@@ -38,8 +36,3 @@ bool operator!=(const ZLimits& left, const ZLimits& right)
{ {
return !(left == right); return !(left == right);
} }
std::ostream& operator<<(std::ostream& ostr, const ZLimits& limits)
{
return ostr << "Lower: " << limits.low() << ", Upper: " << limits.hig();
}
...@@ -51,10 +51,9 @@ public: ...@@ -51,10 +51,9 @@ public:
static ZLimits unite(const ZLimits& left, const ZLimits& right); static ZLimits unite(const ZLimits& left, const ZLimits& right);
}; };
// used in ZLimitsTest:
bool operator==(const ZLimits& left, const ZLimits& right); bool operator==(const ZLimits& left, const ZLimits& right);
bool operator!=(const ZLimits& left, const ZLimits& right); bool operator!=(const ZLimits& left, const ZLimits& right);
std::ostream& operator<<(std::ostream& ostr, const ZLimits& limits);
#endif // BORNAGAIN_RESAMPLE_SLICE_ZLIMITS_H #endif // BORNAGAIN_RESAMPLE_SLICE_ZLIMITS_H
#endif // USER_API #endif // USER_API
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment