BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
ICloneable Class Referenceabstract

Description

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

Child classes of ICloneable must provide clone().

Definition at line 23 of file ICloneable.h.

Inheritance diagram for ICloneable:
[legend]

Public Member Functions

 ICloneable ()=default
 
 ICloneable (const ICloneable &)=delete
 
 ICloneable (ICloneable &&)=default
 
virtual ~ICloneable ()=default
 
virtual ICloneableclone () const =0
 
virtual void transferToCPP ()
 Used for Python overriding of clone (see swig/tweaks.py) More...
 

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 ScanResolution, ISpecularScan, IChiSquaredModule, ObjectiveMetric, IBackground, IRotation, ISampleNode, IParticle, IFormFactor, Lattice2D, IProfile2D, IProfile1D, IPeakShape, IInterference, IReParticle, IRangedDistribution, IDistribution1D, IResolutionFunction2D, IDetectorResolution, IShape2D, IDetector, ICoordSystem, CoordSystem1D, IFootprintFactor, QzScan, AlphaScan, ChiSquaredModule, RQ4Metric, meanRelativeDifferenceMetric, LogMetric, PoissonLikeMetric, Chi2Metric, PoissonBackground, ConstantBackground, GaussSphere, FuzzySphere, RotationEuler, RotationZ, RotationY, RotationX, IdentityRotation, ParticleCoreShell, ParticleComposition, Particle, MesoCrystal, Crystal, MultiLayer, Layer, HexagonalLattice2D, SquareLattice2D, BasicLattice2D, LayerRoughness, LayerInterface, TruncatedSpheroid, TruncatedSphere, TruncatedCube, Spheroid, Sphere, SawtoothRippleLorentz, SawtoothRippleGauss, SawtoothRippleBox, Pyramid6, Pyramid4, Pyramid3, Pyramid2, Prism6, Prism3, PlatonicTetrahedron, PlatonicOctahedron, LongBoxLorentz, LongBoxGauss, Icosahedron, HorizontalCylinder, HollowSphere, HemiEllipsoid, EllipsoidalCylinder, Dodecahedron, Cylinder, CosineRippleLorentz, CosineRippleGauss, CosineRippleBox, Cone, CantellatedCube, Box, Bipyramid4, BarLorentz, BarGauss, Profile2DVoigt, Profile2DCone, Profile2DGate, Profile2DGauss, Profile2DCauchy, Profile1DVoigt, Profile1DCosine, Profile1DTriangle, Profile1DGate, Profile1DGauss, Profile1DCauchy, MisesGaussPeakShape, MisesFisherGaussPeakShape, LorentzFisherPeakShape, GaussFisherPeakShape, IsotropicLorentzPeakShape, IsotropicGaussPeakShape, ParticleLayout, InterferenceTwin, InterferenceRadialParaCrystal, InterferenceNone, InterferenceHardDisk, InterferenceFinite3DLattice, InterferenceFinite2DLattice, Interference3DLattice, Interference2DSuperLattice, Interference2DParaCrystal, Interference2DLattice, Interference1DLattice, ReParticle, ReMesocrystal, ReCoreShell, ReCompound, RangedDistributionCosine, RangedDistributionLogNormal, RangedDistributionGaussian, RangedDistributionLorentz, RangedDistributionGate, DistributionTrapezoid, DistributionCosine, DistributionLogNormal, DistributionGaussian, DistributionLorentz, DistributionGate, ResolutionFunction2DGaussian, ConvolutionDetectorResolution, Rectangle, Polygon, HorizontalLine, VerticalLine, Line, InfinitePlane, Ellipse, SphericalDetector, RectangularDetector, DepthProbeCoordinates, OffspecCoordinates, ImageCoords, SphericalCoords, WavenumberReflectometryCoordinates, AngularReflectometryCoordinates, FootprintSquare, and FootprintGauss.

◆ transferToCPP()

virtual void ICloneable::transferToCPP ( )
inlinevirtual

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

Definition at line 32 of file ICloneable.h.


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