BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
IElement.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Base/Element/IElement.h
6 //! @brief Defines class DiffuseElement.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_BASE_ELEMENT_IELEMENT_H
21 #define BORNAGAIN_BASE_ELEMENT_IELEMENT_H
22 
24 
25 #include <utility>
26 
27 //! @ingroup simulation
28 
29 class IElement {
30 public:
32  : m_polMatrices(std::move(polMatrices))
33  {
34  }
35 
36  //! Returns polarizer and analyzer matrices.
37  const PolMatrices& polMatrices() const { return m_polMatrices; }
38 
39 protected:
41 };
42 
43 #endif // BORNAGAIN_BASE_ELEMENT_IELEMENT_H
44 #endif // USER_API
Defines class PolarizerPair.
const PolMatrices m_polMatrices
Definition: IElement.h:40
IElement(PolMatrices polMatrices)
Definition: IElement.h:31
const PolMatrices & polMatrices() const
Returns polarizer and analyzer matrices.
Definition: IElement.h:37
Convenience class for handling polarization density matrix and polarization analyzer operator.
Definition: PolMatrices.h:29