BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
ZLimits.cpp 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.cpp.

Include dependency graph for ZLimits.cpp:

Go to the source code of this file.

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)
 

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: