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

Span: rm unused operators

parent 18f70251
No related branches found
No related tags found
1 merge request!1174IFormFactor and children: replace BottomZ, TopZ by spanZ
......@@ -40,18 +40,3 @@ Span Span::enclosingInterval(const Span& left, const Span& right)
{
return {std::min(left.zBottom(), right.zBottom()), std::max(left.zTop(), right.zTop())};
}
bool operator==(const Span& left, const Span& right)
{
return (left.zBottom() == right.zBottom() && left.zTop() == right.zTop());
}
bool operator!=(const Span& left, const Span& right)
{
return !(left == right);
}
std::ostream& operator<<(std::ostream& ostr, const Span& limits)
{
return ostr << "Lower: " << limits.zBottom() << ", Upper: " << limits.zTop();
}
......@@ -38,8 +38,6 @@ public:
double zBottom() const { return m_zmin; }
double zTop() const { return m_zmax; }
double zTopOr0() const { return std::isfinite(m_zmax) ? m_zmax : 0; }
double thicknessOr0() const { return isFinite() ? m_zmax - m_zmin : 0; }
bool contains(double z) const { return m_zmin <= z && z <= m_zmax; }
......@@ -56,10 +54,5 @@ private:
double m_zmax;
};
bool operator==(const Span& left, const Span& right);
bool operator!=(const Span& left, const Span& right);
std::ostream& operator<<(std::ostream& ostr, const Span& limits);
#endif // BORNAGAIN_BASE_TYPES_SPAN_H
#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