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

Description

Definition at line 50 of file ProfileItems.h.

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

Public Member Functions

std::unique_ptr< IProfile1D > createProfile () const override
 
DoubleDescriptor omega () const
 
virtual void serialize (Streamer &s)
 
virtual DoubleDescriptors valueDescriptors () const
 

Protected Attributes

DoubleProperty m_omega
 

Static Private Attributes

static constexpr auto P_OMEGA {"Omega"}
 

Member Function Documentation

◆ createProfile()

std::unique_ptr< IProfile1D > Profile1DGaussItem::createProfile ( ) const
overridevirtual

Implements Profile1DItem.

Definition at line 49 of file ProfileItems.cpp.

50 {
51  return std::make_unique<Profile1DGauss>(omega());
52 }
DoubleDescriptor omega() const

References Profile1DItem::omega().

Here is the call graph for this function:

◆ omega()

◆ serialize()

void Profile1DItem::serialize ( Streamer s)
virtualinherited

Reimplemented in Profile1DVoigtItem.

Definition at line 24 of file ProfileItems.cpp.

25 {
26  s.assertVersion(0);
28 }
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(), Profile1DItem::m_omega, and Serialize::rwProperty().

Here is the call graph for this function:

◆ valueDescriptors()

DoubleDescriptors Profile1DItem::valueDescriptors ( ) const
virtualinherited

Reimplemented in Profile1DVoigtItem.

Definition at line 35 of file ProfileItems.cpp.

36 {
37  return {omega()};
38 }

References Profile1DItem::omega().

Referenced by LayerEditorUtils::doubleDescriptorsOfItem(), and Profile1DVoigtItem::valueDescriptors().

Here is the call graph for this function:

Member Data Documentation

◆ m_omega

DoubleProperty Profile1DItem::m_omega
protectedinherited

◆ P_OMEGA

constexpr auto Profile1DItem::P_OMEGA {"Omega"}
staticconstexprprivateinherited

Definition at line 28 of file ProfileItems.h.


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