BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
FootprintSquareItem Class Reference

Description

Definition at line 44 of file FootprintItems.h.

Inheritance diagram for FootprintSquareItem:
[legend]
Collaboration diagram for FootprintSquareItem:
[legend]

Public Member Functions

 FootprintSquareItem (double value=0.0)
 
std::unique_ptr< IFootprintFactor > createFootprint () const override
 
void serialize (Streamer &s) override
 

Constructor & Destructor Documentation

◆ FootprintSquareItem()

FootprintSquareItem::FootprintSquareItem ( double  value = 0.0)
explicit

Definition at line 42 of file FootprintItems.cpp.

43 {
44  m_squareFootprintValue.init("Width ratio", "The ratio of beam and sample full widths", value,
45  Unit::unitless, 3, RealLimits::nonnegative(), "ratio");
46 }
@ unitless

References unitless.

Member Function Documentation

◆ createFootprint()

std::unique_ptr< IFootprintFactor > FootprintSquareItem::createFootprint ( ) const
overridevirtual

Implements FootprintItem.

Definition at line 54 of file FootprintItems.cpp.

55 {
56  return std::make_unique<FootprintSquare>(m_squareFootprintValue);
57 }

◆ serialize()

void FootprintSquareItem::serialize ( Streamer s)
overridevirtual

Reimplemented from FootprintItem.

Definition at line 48 of file FootprintItems.cpp.

49 {
50  s.assertVersion(0);
51  Serialize::rwProperty(s, m_squareFootprintValue);
52 }
void assertVersion(unsigned expectedVersion) const
As reader, throws DeserializationException unless the expected version is read. As writer,...
Definition: Streamer.cpp:26
void rwProperty(Streamer &s, DoubleProperty &d)

References Streamer::assertVersion(), and Serialize::rwProperty().

Here is the call graph for this function:

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