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

+ const

parent fa971e64
No related branches found
No related tags found
1 merge request!1173various minor simplifications in particle context
...@@ -59,15 +59,14 @@ public: ...@@ -59,15 +59,14 @@ public:
virtual complex_t formfactor_at_bottom(C3 q) const; virtual complex_t formfactor_at_bottom(C3 q) const;
private: private:
std::unique_ptr<const IFormFactor> m_ff; const std::unique_ptr<const IFormFactor> m_ff;
std::unique_ptr<const Material> m_material;
std::unique_ptr<const Material> m_ambient_material;
const std::unique_ptr<const R3> m_position;
const std::unique_ptr<const RotMatrix> m_rotMatrix;
ReParticle(const std::optional<size_t>& i_layer, IFormFactor* ff, const Material* material, ReParticle(const std::optional<size_t>& i_layer, IFormFactor* ff, const Material* material,
const Material* ambient_material, const R3* position, const RotMatrix* rotMatrix); const Material* ambient_material, const R3* position, const RotMatrix* rotMatrix);
std::unique_ptr<const Material> m_material;
std::unique_ptr<const Material> m_ambient_material;
std::unique_ptr<const R3> m_position;
std::unique_ptr<const RotMatrix> m_rotMatrix;
}; };
#endif // BORNAGAIN_RESAMPLE_PARTICLE_REPARTICLE_H #endif // BORNAGAIN_RESAMPLE_PARTICLE_REPARTICLE_H
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment