BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
An interval. Limits are of type double, and may be infinite. Used for the z-coordinate, especially when slicing form factors.
Public Member Functions | |
ZLimits () | |
ZLimits (double _min, double _max) | |
bool | isFinite () const |
double | thickness () const |
double | thicknessOr0 () const |
double | zBottom () const |
double | zTop () const |
double | zTopOr0 () const |
Static Public Member Functions | |
static ZLimits | enclosingInterval (const ZLimits &left, const ZLimits &right) |
Returns the union of two ZLimits (the minimal interval that contains both input intervals). More... | |
Static Public Attributes | |
static constexpr double | inf = std::numeric_limits<double>::infinity() |
Private Attributes | |
double | m_zmax |
double | m_zmin |
ZLimits::ZLimits | ( | ) |
Definition at line 27 of file ZLimits.cpp.
ZLimits::ZLimits | ( | double | _min, |
double | _max | ||
) |
Returns the union of two ZLimits (the minimal interval that contains both input intervals).
Definition at line 37 of file ZLimits.cpp.
References zBottom(), and zTop().
Referenced by Compute::Slicing::zSpan().
bool ZLimits::isFinite | ( | ) | const |
Definition at line 32 of file ZLimits.cpp.
References m_zmax, and m_zmin.
Referenced by thicknessOr0().
|
inline |
|
inline |
Definition at line 43 of file ZLimits.h.
References isFinite(), m_zmax, and m_zmin.
Referenced by Slice::thicknessOr0().
|
inline |
Definition at line 39 of file ZLimits.h.
References m_zmin.
Referenced by enclosingInterval(), operator<<(), operator==(), and Slice::zBottom().
|
inline |
Definition at line 40 of file ZLimits.h.
References m_zmax.
Referenced by enclosingInterval(), operator<<(), operator==(), and Slice::zTop().
|
inline |
|
staticconstexpr |
Definition at line 45 of file ZLimits.h.
Referenced by SliceStack::addSlice(), and SliceStack::addTopSlice().
|
private |
Definition at line 53 of file ZLimits.h.
Referenced by isFinite(), thickness(), thicknessOr0(), zTop(), and zTopOr0().
|
private |
Definition at line 52 of file ZLimits.h.
Referenced by isFinite(), thickness(), thicknessOr0(), and zBottom().