BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
ZLimits.h File Reference

Description

Defines class ZLimits.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file ZLimits.h.

Include dependency graph for ZLimits.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ZLimits
 An interval. Limits are of type double, and may be infinite. Used for the z-coordinate, especially when slicing form factors. More...
 

Macros

#define BORNAGAIN_RESAMPLE_SLICE_ZLIMITS_H
 

Functions

bool operator!= (const ZLimits &left, const ZLimits &right)
 
std::ostream & operator<< (std::ostream &ostr, const ZLimits &limits)
 
bool operator== (const ZLimits &left, const ZLimits &right)
 

Macro Definition Documentation

◆ BORNAGAIN_RESAMPLE_SLICE_ZLIMITS_H

#define BORNAGAIN_RESAMPLE_SLICE_ZLIMITS_H

Definition at line 21 of file ZLimits.h.

Function Documentation

◆ operator!=()

bool operator!= ( const ZLimits left,
const ZLimits right 
)

Definition at line 47 of file ZLimits.cpp.

48 {
49  return !(left == right);
50 }

◆ operator<<()

std::ostream& operator<< ( std::ostream &  ostr,
const ZLimits limits 
)

Definition at line 52 of file ZLimits.cpp.

53 {
54  return ostr << "Lower: " << limits.zBottom() << ", Upper: " << limits.zTop();
55 }
double zBottom() const
Definition: ZLimits.h:39
double zTop() const
Definition: ZLimits.h:40

References ZLimits::zBottom(), and ZLimits::zTop().

Here is the call graph for this function:

◆ operator==()

bool operator== ( const ZLimits left,
const ZLimits right 
)

Definition at line 42 of file ZLimits.cpp.

43 {
44  return (left.zBottom() == right.zBottom() && left.zTop() == right.zTop());
45 }

References ZLimits::zBottom(), and ZLimits::zTop().

Here is the call graph for this function: