BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
RealSpace::GeometricID::Key Struct Reference

Public Member Functions

 Key (BaseShape, float=0.0f, float=0.0f, float=0.0f)
 
bool operator== (Key const &) const
 

Public Attributes

BaseShape id
 
float p1
 
float p2
 
float p3
 

Detailed Description

Definition at line 52 of file geometry_inc.h.

Constructor & Destructor Documentation

◆ Key()

RealSpace::GeometricID::Key::Key ( BaseShape  id_,
float  p1_ = 0.0f,
float  p2_ = 0.0f,
float  p3_ = 0.0f 
)

Definition at line 27 of file geometry_inc.cpp.

28  : id(id_), p1(p1_), p2(p2_), p3(p3_)
29 {
30 }

Member Function Documentation

◆ operator==()

bool RealSpace::GeometricID::Key::operator== ( Key const &  other) const

Definition at line 32 of file geometry_inc.cpp.

33 {
34  return id == other.id && p1 == other.p1 && p2 == other.p2;
35 }

References id, p1, and p2.

Member Data Documentation

◆ id

BaseShape RealSpace::GeometricID::Key::id

Definition at line 57 of file geometry_inc.h.

Referenced by RealSpace::Geometry::Geometry(), and operator==().

◆ p1

float RealSpace::GeometricID::Key::p1

Definition at line 58 of file geometry_inc.h.

Referenced by RealSpace::Geometry::Geometry(), and operator==().

◆ p2

float RealSpace::GeometricID::Key::p2

Definition at line 58 of file geometry_inc.h.

Referenced by RealSpace::Geometry::Geometry(), and operator==().

◆ p3

float RealSpace::GeometricID::Key::p3

Definition at line 58 of file geometry_inc.h.

Referenced by RealSpace::Geometry::Geometry().


The documentation for this struct was generated from the following files: