16 #error no need to expose this header to Swig
20 #ifndef BORNAGAIN_CORE_ELEMENT_DEPTHPROBEELEMENT_H
21 #define BORNAGAIN_CORE_ELEMENT_DEPTHPROBEELEMENT_H
46 std::is_assignable<std::valarray<double>,
typename std::decay<T>::type>::value,
47 "Error in DepthProbeElement::setIntensities: wrong type of input data.");
Defines basic vectors in Z^3, R^3, C^3.
const IAxis * m_z_positions
positions (lower z corresponds to a greater depth)
void swapContent(DepthProbeElement &other)
double m_alpha_i
the wavelength and the incident angle of the beam
void setIntensities(T &&intensities)
void setCalculationFlag(bool calculation_flag)
Set calculation flag (if it's false, zero intensity is assigned to the element)
const IAxis * getZPositions() const
double wavelength() const
bool isCalculated() const
DepthProbeElement(double wavelength, double alpha_i, const IAxis *z_positions)
std::valarray< double > m_intensities
simulated intensity for the set of z positions
DepthProbeElement & operator=(const DepthProbeElement &other)
void setZPositions(const IAxis *z_positions)
const std::valarray< double > & getIntensities() const
Interface for one-dimensional axes.