16 #error no need to expose this header to Swig
20 #ifndef BORNAGAIN_SAMPLE_SPECULAR_ISPECULARSTRATEGY_H
21 #define BORNAGAIN_SAMPLE_SPECULAR_ISPECULARSTRATEGY_H
45 using coeffs_t = std::vector<std::unique_ptr<const ILayerRTCoefficients>>;
50 const std::vector<complex_t>& kz)
const = 0;
52 virtual std::variant<complex_t, Eigen::Matrix2cd>
53 computeTopLayerR(
const std::vector<Slice>& slices,
const std::vector<complex_t>& kz)
const = 0;
Include to deal with Eigen alignment centrally.
Defines basic vectors in Z^3, R^3, C^3.
Interface to access reflection/transmission coefficients.
Interface for the Fresnel computations, both in the scalar and magnetic case.
virtual std::variant< complex_t, Eigen::Matrix2cd > computeTopLayerR(const std::vector< Slice > &slices, const std::vector< complex_t > &kz) const =0
virtual ~ISpecularStrategy()=default
virtual coeffs_t Execute(const std::vector< Slice > &slices, const kvector_t &k) const =0
virtual coeffs_t Execute(const std::vector< Slice > &slices, const std::vector< complex_t > &kz) const =0
ISpecularStrategy(const ISpecularStrategy &other)=delete
ISpecularStrategy()=default
std::vector< std::unique_ptr< const ILayerRTCoefficients > > coeffs_t
Data structure containing the data of a single slice, for calculating the Fresnel coefficients.