BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ICloneable Class Referenceabstract
Inheritance diagram for ICloneable:
Collaboration diagram for ICloneable:

Public Member Functions

 ICloneable ()=default
 
virtual ~ICloneable ()=default
 
 ICloneable (const ICloneable &)=delete
 
 ICloneable (ICloneable &&)=default
 
virtual ICloneableclone () const =0
 
virtual void transferToCPP ()
 

Detailed Description

Interface for polymorphic classes that should not be copied, except by explicit cloning.

Child classes of ICloneable must provide clone().

Definition at line 24 of file ICloneable.h.

Constructor & Destructor Documentation

◆ ICloneable() [1/3]

ICloneable::ICloneable ( )
default

◆ ~ICloneable()

virtual ICloneable::~ICloneable ( )
virtualdefault

◆ ICloneable() [2/3]

ICloneable::ICloneable ( const ICloneable )
delete

◆ ICloneable() [3/3]

ICloneable::ICloneable ( ICloneable &&  )
default

Member Function Documentation

◆ clone()

virtual ICloneable* ICloneable::clone ( ) const
pure virtual

Implemented in ISample, IFormFactorDecorator, IFormFactorBorn, IFormFactor, IParticle, IClusteredParticles, RangedDistribution, ScanResolution, IDetector2D, IDetector, Simulation2D, UnitConverter1D, ISpecularScan, ObjectiveMetric, FormFactorSphereLogNormalRadius, FormFactorSphereGaussianRadius, FormFactorGaussSphere, FormFactorDecoratorRotation, FormFactorDecoratorPositionFactor, FormFactorDecoratorMaterial, ParticleDistribution, ParticleCoreShell, ParticleComposition, Particle, MesoCrystal, FormFactorWeighted, FormFactorCrystal, FormFactorCoreShell, Crystal, Layer, FormFactorTruncatedSpheroid, FormFactorTruncatedSphere, FormFactorTruncatedCube, FormFactorTetrahedron, FormFactorSawtoothRippleLorentz, FormFactorSawtoothRippleGauss, FormFactorSawtoothRippleBox, FormFactorPyramid, FormFactorPrism6, FormFactorPrism3, FormFactorLongBoxLorentz, FormFactorLongBoxGauss, FormFactorIcosahedron, FormFactorHollowSphere, FormFactorHemiEllipsoid, FormFactorFullSpheroid, FormFactorFullSphere, FormFactorEllipsoidalCylinder, FormFactorDot, FormFactorDodecahedron, FormFactorCylinder, FormFactorCuboctahedron, FormFactorCosineRippleLorentz, FormFactorCosineRippleGauss, FormFactorCosineRippleBox, FormFactorCone6, FormFactorCone, FormFactorCantellatedCube, FormFactorBox, FormFactorAnisoPyramid, FTDistribution1DVoigt, FTDistribution1DCosine, FTDistribution1DTriangle, FTDistribution1DGate, FTDistribution1DGauss, FTDistribution1DCauchy, InterferenceFunctionTwin, InterferenceFunctionRadialParaCrystal, InterferenceFunctionNone, InterferenceFunctionHardDisk, InterferenceFunctionFinite3DLattice, InterferenceFunctionFinite2DLattice, InterferenceFunction3DLattice, InterferenceFunction2DSuperLattice, InterferenceFunction2DParaCrystal, InterferenceFunction2DLattice, InterferenceFunction1DLattice, PoissonNoiseBackground, ConstantBackground, FormFactorDWBAPol, FormFactorDWBA, FormFactorBAPol, MisesGaussPeakShape, MisesFisherGaussPeakShape, LorentzFisherPeakShape, GaussFisherPeakShape, IsotropicLorentzPeakShape, IsotropicGaussPeakShape, RangedDistributionCosine, RangedDistributionLogNormal, RangedDistributionGaussian, RangedDistributionLorentz, RangedDistributionGate, anonymous_namespace{ScanResolution.cpp}::ScanEmptyResolution, anonymous_namespace{ScanResolution.cpp}::ScanVectorAbsoluteResolution, anonymous_namespace{ScanResolution.cpp}::ScanVectorRelativeResolution, anonymous_namespace{ScanResolution.cpp}::ScanSingleAbsoluteResolution, anonymous_namespace{ScanResolution.cpp}::ScanSingleRelativeResolution, SphericalDetector, SpecularDetector1D, RectangularDetector, IsGISAXSDetector, FootprintSquare, FootprintGauss, SpecularSimulation, OffSpecSimulation, GISASSimulation, DepthProbeSimulation, UnitConverterQSpec, UnitConverterConvSpec, QSpecScan, AngularSpecScan, RQ4Metric, RelativeDifferenceMetric, LogMetric, PoissonLikeMetric, Chi2Metric, MultiLayer, ParticleLayout, FormFactorBarLorentz, FormFactorBarGauss, FTDistribution2DVoigt, FTDistribution2DCone, FTDistribution2DGate, FTDistribution2DGauss, FTDistribution2DCauchy, DistributionTrapezoid, DistributionCosine, DistributionLogNormal, DistributionGaussian, DistributionLorentz, DistributionGate, DepthProbeConverter, OffSpecularConverter, RectangularConverter, SphericalConverter, IRotation, IAbstractParticle, Lattice2D, IPeakShape, ILayout, IFTDistribution2D, IFTDistribution1D, IFTDecayFunction2D, IFTDecayFunction1D, IInterferenceFunction, IDistribution1D, IUnitConverter, IResolutionFunction2D, IDetectorResolution, IShape2D, IChiSquaredModule, IFootprintFactor, Simulation, IBackground, LayerRoughness, LayerInterface, RotationEuler, RotationZ, RotationY, RotationX, IdentityRotation, HexagonalLattice, SquareLattice, BasicLattice, FTDecayFunction2DVoigt, FTDecayFunction2DGauss, FTDecayFunction2DCauchy, FTDecayFunction1DVoigt, FTDecayFunction1DTriangle, FTDecayFunction1DGauss, FTDecayFunction1DCauchy, ParameterPool, ResolutionFunction2DGaussian, ConvolutionDetectorResolution, Rectangle, Polygon, HorizontalLine, VerticalLine, Line, InfinitePlane, Ellipse, ChiSquaredModule, and RegionOfInterest.

◆ transferToCPP()

virtual void ICloneable::transferToCPP ( )
inlinevirtual

Used for Python overriding of clone (see swig/tweaks.py)

Definition at line 34 of file ICloneable.h.


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