Skip to content
Snippets Groups Projects
Commit cab4b400 authored by Beerwerth, Randolf's avatar Beerwerth, Randolf
Browse files

add typedefs needed for external testing

parent b43ebc88
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ ISpecularStrategy::coeffs_t SpecularMagneticStrategy_v1::Execute(const std::vect
CalculateEigenvalues(slices, k, result);
CalculateTransferAndBoundary(slices, result);
coeffs_t resultConvert;
ISpecularStrategy::coeffs_t resultConvert;
for (auto& coeff : result)
resultConvert.push_back(std::make_unique<MatrixRTCoefficients_v1>(coeff));
......
......@@ -28,11 +28,17 @@ class Slice;
class SpecularMagneticStrategy_v1 : public ISpecularStrategy {
public:
// TODO remove once external test code is not needed anmyore
// for the moment i need them!
using coefficient_type = MatrixRTCoefficients_v1;
using coefficient_pointer_type = std::unique_ptr<const coefficient_type>;
using coeffs_t = std::vector<coefficient_pointer_type>;
//! Computes refraction angle reflection/transmission coefficients
//! for given sliced multilayer and wavevector k
coeffs_t Execute(const std::vector<Slice>& slices, const kvector_t& k) const;
ISpecularStrategy::coeffs_t Execute(const std::vector<Slice>& slices, const kvector_t& k) const;
coeffs_t Execute(const std::vector<Slice>& slices, const std::vector<complex_t>& kz) const;
ISpecularStrategy::coeffs_t Execute(const std::vector<Slice>& slices, const std::vector<complex_t>& kz) const;
}; // class SpecularMagneticStrategy_v1
......
......@@ -31,6 +31,12 @@ class Slice;
//! @ingroup algorithms_internal
class SpecularMagneticStrategy_v2 : public ISpecularStrategy {
public:
// TODO remove once external test code is not needed anmyore
// for the moment i need them!
using coefficient_type = MatrixRTCoefficients_v2;
using coefficient_pointer_type = std::unique_ptr<const coefficient_type>;
using coeffs_t = std::vector<coefficient_pointer_type>;
//! Computes refraction angle reflection/transmission coefficients
//! for given sliced multilayer and wavevector k
ISpecularStrategy::coeffs_t Execute(const std::vector<Slice>& slices, const kvector_t& k) const;
......
......@@ -32,6 +32,12 @@ class Slice;
//! @ingroup algorithms_internal
class SpecularMagneticStrategy : public ISpecularStrategy {
public:
// TODO remove once external test code is not needed anmyore
// for the moment i need them!
using coefficient_type = MatrixRTCoefficients;
using coefficient_pointer_type = std::unique_ptr<const coefficient_type>;
using coeffs_t = std::vector<coefficient_pointer_type>;
//! Computes refraction angle reflection/transmission coefficients
//! for given sliced multilayer and wavevector k
ISpecularStrategy::coeffs_t Execute(const std::vector<Slice>& slices, const kvector_t& k) const;
......
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