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

Element copy c'tors: use implicit ones

parent 97520244
No related branches found
No related tags found
1 merge request!1364normalize copy c'tors; simplify coord system c'tors (require ki only where needed)
......@@ -35,8 +35,6 @@ DiffuseElement::DiffuseElement(double wavelength, double alpha_i, double phi_i,
{
}
DiffuseElement::DiffuseElement(DiffuseElement&& other) noexcept = default;
DiffuseElement::~DiffuseElement() = default;
void DiffuseElement::setFluxes(const Fluxes* fluxes_in, const Fluxes* fluxes_out)
......
......@@ -37,7 +37,7 @@ public:
const SpinMatrix& analyzer, bool isSpecular_, const Fluxes* fluxes_in = nullptr,
const Fluxes* fluxes_out = nullptr);
DiffuseElement(const DiffuseElement&) = delete;
DiffuseElement(DiffuseElement&&) noexcept;
DiffuseElement(DiffuseElement&&) noexcept = default;
~DiffuseElement();
void setFluxes(const Fluxes* fluxes_in, const Fluxes* fluxes_out);
......
......@@ -53,8 +53,6 @@ SpecularElement::SpecularElement(size_t i_out, bool computable, double weight, d
{
}
SpecularElement::SpecularElement(SpecularElement&& other) noexcept = default;
SpecularElement::~SpecularElement() = default;
std::vector<complex_t> SpecularElement::produceKz(const SliceStack& slices)
......
......@@ -41,7 +41,7 @@ public:
bool computable);
SpecularElement(const SpecularElement& other) = delete;
SpecularElement(SpecularElement&& other) noexcept;
SpecularElement(SpecularElement&& other) noexcept = default;
~SpecularElement();
......
......@@ -29,19 +29,6 @@ Slice::Slice(const ZLimits& zRange, Material material, const R3& B_field,
{
}
Slice::Slice(const Slice& other)
: Slice(other.m_zRange, other.m_material, other.m_B_field, other.m_top_roughness)
{
}
Slice::Slice(Slice&& other)
: m_zRange{other.m_zRange}
, m_material{std::move(other.m_material)}
, m_B_field{other.m_B_field}
, m_top_roughness{other.m_top_roughness}
{
}
Slice::~Slice() = default;
void Slice::setMaterial(const Material& material)
......
......@@ -30,8 +30,6 @@ class Slice {
public:
Slice(const ZLimits& zRange, Material material, const R3& B_field,
const LayerRoughness* roughness);
Slice(const Slice& other);
Slice(Slice&& other);
~Slice();
void setMaterial(const Material& material);
......
......@@ -16,8 +16,6 @@
#include "Base/Util/Assert.h"
#include <algorithm>
SliceStack::SliceStack(const SliceStack& other) = default;
void SliceStack::addTopSlice(double zbottom, const Material& material)
{
this->emplace_back(Slice(ZLimits(zbottom, ZLimits::inf), material, {}, nullptr));
......
......@@ -39,7 +39,6 @@ public:
: m_roughness_model(roughness_model)
{
}
SliceStack(const SliceStack& other);
void addTopSlice(double zbottom, const Material& material);
void addSlice(double thickness, const Material& material,
......
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