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

fix guards; doxy class comments

parent 22e8ef1a
No related branches found
No related tags found
No related merge requests found
...@@ -12,13 +12,14 @@ ...@@ -12,13 +12,14 @@
// //
// ************************************************************************************************ // ************************************************************************************************
#ifndef BORNAGAIN_SAMPLE_SCATTERING_COMPUTEBA_H #ifndef BORNAGAIN_SAMPLE_FFCOMPUTE_COMPUTEBA_H
#define BORNAGAIN_SAMPLE_SCATTERING_COMPUTEBA_H #define BORNAGAIN_SAMPLE_FFCOMPUTE_COMPUTEBA_H
#include "Sample/FFCompute/IComputeFF.h" #include "Sample/FFCompute/IComputeFF.h"
#include <memory> #include <memory>
//! Evaluates the scalar Born form factor. //! Provides scalar form factor evaluation in Born Approximation for given IFormFactor.
//! @ingroup formfactors_internal //! @ingroup formfactors_internal
class ComputeBA final : public IComputeFF class ComputeBA final : public IComputeFF
...@@ -33,4 +34,4 @@ public: ...@@ -33,4 +34,4 @@ public:
complex_t evaluate(const WavevectorInfo& wavevectors) const override; complex_t evaluate(const WavevectorInfo& wavevectors) const override;
}; };
#endif // BORNAGAIN_SAMPLE_SCATTERING_COMPUTEBA_H #endif // BORNAGAIN_SAMPLE_FFCOMPUTE_COMPUTEBA_H
...@@ -12,14 +12,14 @@ ...@@ -12,14 +12,14 @@
// //
// ************************************************************************************************ // ************************************************************************************************
#ifndef BORNAGAIN_SAMPLE_SCATTERING_COMPUTEBAPOL_H #ifndef BORNAGAIN_SAMPLE_FFCOMPUTE_COMPUTEBAPOL_H
#define BORNAGAIN_SAMPLE_SCATTERING_COMPUTEBAPOL_H #define BORNAGAIN_SAMPLE_FFCOMPUTE_COMPUTEBAPOL_H
#include "Sample/FFCompute/IComputeFF.h" #include "Sample/FFCompute/IComputeFF.h"
#include "Sample/Scattering/IFormFactor.h" #include "Sample/Scattering/IFormFactor.h"
#include <memory> #include <memory>
//! Evaluates the matrix BA term in a polarized IFormFactor. //! Provides polarized form factor evaluation in Born Approximation for given IFormFactor.
//! @ingroup formfactors_internal //! @ingroup formfactors_internal
...@@ -38,4 +38,4 @@ public: ...@@ -38,4 +38,4 @@ public:
Eigen::Matrix2cd evaluatePol(const WavevectorInfo& wavevectors) const override; Eigen::Matrix2cd evaluatePol(const WavevectorInfo& wavevectors) const override;
}; };
#endif // BORNAGAIN_SAMPLE_SCATTERING_COMPUTEBAPOL_H #endif // BORNAGAIN_SAMPLE_FFCOMPUTE_COMPUTEBAPOL_H
...@@ -12,15 +12,16 @@ ...@@ -12,15 +12,16 @@
// //
// ************************************************************************************************ // ************************************************************************************************
#ifndef BORNAGAIN_SAMPLE_SCATTERING_COMPUTEDWBA_H #ifndef BORNAGAIN_SAMPLE_FFCOMPUTE_COMPUTEDWBA_H
#define BORNAGAIN_SAMPLE_SCATTERING_COMPUTEDWBA_H #define BORNAGAIN_SAMPLE_FFCOMPUTE_COMPUTEDWBA_H
#include "Sample/FFCompute/IComputeFF.h" #include "Sample/FFCompute/IComputeFF.h"
#include <memory> #include <memory>
class ILayerRTCoefficients; class ILayerRTCoefficients;
//! Evaluates the coherent sum of the four DWBA terms in a scalar IFormFactor. //! Provides scalar DWBA computation for given IFormFactor.
//! @ingroup formfactors_internal //! @ingroup formfactors_internal
class ComputeDWBA final : public IComputeFF class ComputeDWBA final : public IComputeFF
...@@ -31,7 +32,7 @@ public: ...@@ -31,7 +32,7 @@ public:
ComputeDWBA* clone() const override; ComputeDWBA* clone() const override;
//! Calculates and returns a form factor calculation in DWBA //! Returns the coherent sum of the four DWBA terms for scalar scattering.
complex_t evaluate(const WavevectorInfo& wavevectors) const override; complex_t evaluate(const WavevectorInfo& wavevectors) const override;
void setSpecularInfo(std::unique_ptr<const ILayerRTCoefficients> p_in_coeffs, void setSpecularInfo(std::unique_ptr<const ILayerRTCoefficients> p_in_coeffs,
...@@ -44,4 +45,4 @@ private: ...@@ -44,4 +45,4 @@ private:
std::unique_ptr<const ILayerRTCoefficients> m_out_coeffs; std::unique_ptr<const ILayerRTCoefficients> m_out_coeffs;
}; };
#endif // BORNAGAIN_SAMPLE_SCATTERING_COMPUTEDWBA_H #endif // BORNAGAIN_SAMPLE_FFCOMPUTE_COMPUTEDWBA_H
...@@ -43,8 +43,7 @@ ComputeDWBAPol* ComputeDWBAPol::clone() const ...@@ -43,8 +43,7 @@ ComputeDWBAPol* ComputeDWBAPol::clone() const
complex_t ComputeDWBAPol::evaluate(const WavevectorInfo&) const complex_t ComputeDWBAPol::evaluate(const WavevectorInfo&) const
{ {
throw Exceptions::NotImplementedException( throw std::runtime_error("Bug: forbidden call of ComputeDWBAPol::evaluate");
"ComputeDWBAPol::evaluate: should never be called for matrix interactions");
} }
Eigen::Matrix2cd ComputeDWBAPol::evaluatePol(const WavevectorInfo& wavevectors) const Eigen::Matrix2cd ComputeDWBAPol::evaluatePol(const WavevectorInfo& wavevectors) const
......
...@@ -12,15 +12,15 @@ ...@@ -12,15 +12,15 @@
// //
// ************************************************************************************************ // ************************************************************************************************
#ifndef BORNAGAIN_SAMPLE_SCATTERING_COMPUTEDWBAPOL_H #ifndef BORNAGAIN_SAMPLE_FFCOMPUTE_COMPUTEDWBAPOL_H
#define BORNAGAIN_SAMPLE_SCATTERING_COMPUTEDWBAPOL_H #define BORNAGAIN_SAMPLE_FFCOMPUTE_COMPUTEDWBAPOL_H
#include "Sample/FFCompute/IComputeFF.h" #include "Sample/FFCompute/IComputeFF.h"
#include <memory> #include <memory>
class ILayerRTCoefficients; class ILayerRTCoefficients;
//! Evaluates the coherent sum of the 16 matrix DWBA terms in a polarized IFormFactor. //! Provides polarized DWBA computation for given IFormFactor.
//! @ingroup formfactors_internal //! @ingroup formfactors_internal
...@@ -32,10 +32,10 @@ public: ...@@ -32,10 +32,10 @@ public:
ComputeDWBAPol* clone() const override; ComputeDWBAPol* clone() const override;
//! Throws not-implemented exception //! Throws not-implemented exception.
complex_t evaluate(const WavevectorInfo& wavevectors) const override; complex_t evaluate(const WavevectorInfo& wavevectors) const override;
//! Calculates and returns a polarized form factor calculation in DWBA //! Returns the coherent sum of the four DWBA terms for polarized scattering.
Eigen::Matrix2cd evaluatePol(const WavevectorInfo& wavevectors) const override; Eigen::Matrix2cd evaluatePol(const WavevectorInfo& wavevectors) const override;
void setSpecularInfo(std::unique_ptr<const ILayerRTCoefficients> p_in_coeffs, void setSpecularInfo(std::unique_ptr<const ILayerRTCoefficients> p_in_coeffs,
...@@ -48,4 +48,4 @@ private: ...@@ -48,4 +48,4 @@ private:
std::unique_ptr<const ILayerRTCoefficients> m_out_coeffs; std::unique_ptr<const ILayerRTCoefficients> m_out_coeffs;
}; };
#endif // BORNAGAIN_SAMPLE_SCATTERING_COMPUTEDWBAPOL_H #endif // BORNAGAIN_SAMPLE_FFCOMPUTE_COMPUTEDWBAPOL_H
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
// //
// ************************************************************************************************ // ************************************************************************************************
#ifndef BORNAGAIN_SAMPLE_SCATTERING_ICOMPUTEFF_H #ifndef BORNAGAIN_SAMPLE_FFCOMPUTE_ICOMPUTEFF_H
#define BORNAGAIN_SAMPLE_SCATTERING_ICOMPUTEFF_H #define BORNAGAIN_SAMPLE_FFCOMPUTE_ICOMPUTEFF_H
#include "Base/Types/Complex.h" #include "Base/Types/Complex.h"
#include <Eigen/Core> #include <Eigen/Core>
...@@ -25,6 +25,12 @@ class IRotation; ...@@ -25,6 +25,12 @@ class IRotation;
class Material; class Material;
class WavevectorInfo; class WavevectorInfo;
//! Abstract base class for form factor evaluations.
//!
//! Wraps an IFormFactor, and provides functions evaluate or evaluatePol.
//! @ingroup formfactors_internal
class IComputeFF class IComputeFF
{ {
...@@ -54,4 +60,4 @@ protected: ...@@ -54,4 +60,4 @@ protected:
std::unique_ptr<IFormFactor> m_ff; std::unique_ptr<IFormFactor> m_ff;
}; };
#endif // BORNAGAIN_SAMPLE_SCATTERING_ICOMPUTEFF_H #endif // BORNAGAIN_SAMPLE_FFCOMPUTE_ICOMPUTEFF_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