BornAgain  1.18.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 scattering at grazing incidence
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  : ISample(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 ISample objects.
Definition: INodeVisitor.h:149
virtual void visit(const BasicLattice *)
Definition: INodeVisitor.h:154
Pure virtual base class for sample components and properties related to scattering.
Definition: ISample.h:28
Metadata of one model node.
Definition: INode.h:37