BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
IAbstractParticle.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Sample/Particle/IAbstractParticle.cpp
6 //! @brief Defines interface IAParticle.
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 
16 
17 IAbstractParticle::IAbstractParticle(const NodeMeta& meta, const std::vector<double>& PValues)
18  : ISampleNode(meta, PValues)
19 {
20 }
21 
23 {
24  visitor->visit(this);
25 }
Defines interface IAbstractParticle.
virtual void accept(INodeVisitor *visitor) const
Calls the INodeVisitor's visit method.
IAbstractParticle()=default
Visitor interface to visit ISampleNode objects.
Definition: INodeVisitor.h:146
virtual void visit(const BasicLattice2D *)
Definition: INodeVisitor.h:151
Abstract base class for sample components and properties related to scattering.
Definition: ISampleNode.h:28
Metadata of one model node.
Definition: INode.h:38