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

mv fct to Frame

parent 361f184c
No related branches found
No related tags found
No related merge requests found
......@@ -109,6 +109,11 @@ bool Frame::operator==(const Frame& o) const
return true;
}
std::vector<const Scale*> Frame::clonedAxes() const
{
return m_axes.cloned_vector();
}
bool Frame::hasSameSizes(const Frame& o) const
{
if (rank() != o.rank())
......
......@@ -75,6 +75,10 @@ public:
//! Returns true if both Frame%s have same rank, and all axes are equal.
bool operator==(const Frame&) const;
#ifndef SWIG
std::vector<const Scale*> clonedAxes() const;
#endif // SWIG
protected:
OwningVector<const Scale> m_axes;
......
......@@ -23,8 +23,3 @@ ICoordSystem::ICoordSystem(std::vector<const Scale*>&& axes)
}
ICoordSystem::~ICoordSystem() = default;
std::vector<const Scale*> ICoordSystem::clonedAxes() const
{
return m_axes.cloned_vector();
}
......@@ -31,8 +31,6 @@ public:
ICoordSystem* clone() const override = 0;
virtual std::string nameOfAxis(size_t i_axis) const = 0;
std::vector<const Scale*> clonedAxes() const;
};
#endif // BORNAGAIN_DEVICE_COORD_ICOORDSYSTEM_H
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