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

Description

Defines and implements class Material.

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 Material.h.

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

Go to the source code of this file.

Classes

class  Material
 A wrapper for underlying material implementation. More...
 

Functions

bool operator!= (const Material &left, const Material &right)
 Comparison operator for material wrapper (inequality check) More...
 
bool operator== (const Material &left, const Material &right)
 Comparison operator for material wrapper (equality check) More...
 

Function Documentation

◆ operator!=()

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

Comparison operator for material wrapper (inequality check)

Definition at line 133 of file Material.cpp.

134 {
135  return !(left == right);
136 }

◆ operator==()

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

Comparison operator for material wrapper (equality check)

Definition at line 120 of file Material.cpp.

121 {
122  if (left.materialName() != right.materialName())
123  return false;
124  if (left.magnetization() != right.magnetization())
125  return false;
126  if (left.materialData() != right.materialData())
127  return false;
128  if (left.typeID() != right.typeID())
129  return false;
130  return true;
131 }
R3 magnetization() const
Get the magnetization (in A/m)
Definition: Material.cpp:78
std::string materialName() const
Returns the name of material.
Definition: Material.cpp:68
MATERIAL_TYPES typeID() const
Returns the type of underlying material implementation.
Definition: Material.cpp:73
complex_t materialData() const
Returns delta + i beta.
Definition: Material.cpp:83

References Material::magnetization(), Material::materialData(), Material::materialName(), and Material::typeID().

Here is the call graph for this function: