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

rm unused copy=

parent eb7fe05f
No related branches found
No related tags found
1 merge request!232Cleanup in context of Simulation, Computation; *Element now inherits from IElement
......@@ -53,25 +53,7 @@ DepthProbeElement::DepthProbeElement(DepthProbeElement&& other) noexcept
DepthProbeElement::~DepthProbeElement() = default;
DepthProbeElement& DepthProbeElement::operator=(const DepthProbeElement& other)
{
if (this != &other) {
DepthProbeElement tmp(other);
tmp.swapContent(*this);
}
return *this;
}
kvector_t DepthProbeElement::getKi() const
{
return vecOfLambdaAlphaPhi(m_wavelength, m_alpha_i, phi_i_0);
}
void DepthProbeElement::swapContent(DepthProbeElement& other)
{
std::swap(m_wavelength, other.m_wavelength);
std::swap(m_alpha_i, other.m_alpha_i);
m_intensities.swap(other.m_intensities);
std::swap(m_z_positions, other.m_z_positions);
std::swap(m_calculation_flag, other.m_calculation_flag);
}
......@@ -34,7 +34,7 @@ public:
~DepthProbeElement();
DepthProbeElement& operator=(const DepthProbeElement& other);
DepthProbeElement& operator=(const DepthProbeElement& other) = delete;
double wavelength() const { return m_wavelength; }
double getAlphaI() const { return m_alpha_i; }
......@@ -60,8 +60,6 @@ public:
bool isCalculated() const { return m_calculation_flag; }
private:
void swapContent(DepthProbeElement& other);
double m_wavelength, m_alpha_i; //!< the wavelength and the incident angle of the beam
std::valarray<double> m_intensities; //!< simulated intensity for the set of z positions
const IAxis* m_z_positions; //!< positions (lower z corresponds to a greater depth)
......
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