BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
InterferenceFunctionNone.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Sample/Aggregate/InterferenceFunctionNone.h
6 //! @brief Defines class InterferenceFunctionNone.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_SAMPLE_AGGREGATE_INTERFERENCEFUNCTIONNONE_H
16 #define BORNAGAIN_SAMPLE_AGGREGATE_INTERFERENCEFUNCTIONNONE_H
17 
19 
20 //! Default interference function (i.e. absence of any interference).
21 //! @ingroup interference
22 
24 public:
26 
27  InterferenceFunctionNone* clone() const final;
28 
29  void accept(INodeVisitor* visitor) const final { visitor->visit(this); }
30 
31 private:
32  double iff_without_dw(const kvector_t q) const final;
33 };
34 
35 #endif // BORNAGAIN_SAMPLE_AGGREGATE_INTERFERENCEFUNCTIONNONE_H
Defines and implements the interface class IInterferenceFunction.
Abstract base class of interference functions.
Visitor interface to visit ISampleNode objects.
Definition: INodeVisitor.h:146
Default interference function (i.e.
InterferenceFunctionNone * clone() const final
Returns a clone of this ISampleNode object.
void accept(INodeVisitor *visitor) const final
Calls the INodeVisitor's visit method.
double iff_without_dw(const kvector_t q) const final
Calculates the structure factor without Debye-Waller factor.