Commit b6902e49 authored by Fab's avatar Fab
Browse files

add explicit instantiation operator

parent 9107c740
......@@ -41,6 +41,18 @@ gkg::Diffusoid::~Diffusoid()
}
gkg::Diffusoid& gkg::Diffusoid::operator = ( const gkg::Diffusoid& other )
{
_orientationSet = other._orientationSet;
_so3Interpolator = other._so3Interpolator;
_magnitudes = other._magnitudes;
return *this;
}
void gkg::Diffusoid::setMagnitudes( const std::vector< float >& magnitudes )
{
......@@ -356,6 +368,3 @@ void gkg::Diffusoid::getReconstructionMatrix(
"gkg::Matrix& reconstructionMatrix)" );
}
......@@ -29,6 +29,8 @@ class Diffusoid
Diffusoid( const Diffusoid& other );
virtual ~Diffusoid();
Diffusoid& operator = ( const Diffusoid& other );
virtual void setMagnitudes( const std::vector< float >& attenuations );
virtual void setOrientationSet( const OrientationSet* orientationSet );
......
......@@ -34,7 +34,4 @@ void gkg::Diffusoid::addSymmetricalMesh(
}
#endif
......@@ -66,6 +66,19 @@ gkg::OrientationDistributionFunction::~OrientationDistributionFunction()
}
gkg::OrientationDistributionFunction&
gkg::OrientationDistributionFunction::operator = (
const gkg::OrientationDistributionFunction& other )
{
_basisType = other._basisType;
_orientationSet = other._orientationSet;
return *this;
}
gkg::OrientationDistributionFunction::BasisType
gkg::OrientationDistributionFunction::getBasisType() const
{
......
......@@ -41,6 +41,9 @@ class OrientationDistributionFunction : public DiffusionFeature
other );
virtual ~OrientationDistributionFunction();
OrientationDistributionFunction& operator = (
const OrientationDistributionFunction& other );
BasisType getBasisType() const;
std::string getBasisTypeName() const;
void setBasisType( BasisType basisType );
......
......@@ -133,6 +133,21 @@ gkg::ProbabilityDensityFunction::~ProbabilityDensityFunction()
}
gkg::ProbabilityDensityFunction&
gkg::ProbabilityDensityFunction::operator = (
const gkg::ProbabilityDensityFunction& other )
{
_basisType = other._basisType;
_outputMultipleShellSampling = other._outputMultipleShellSampling;
_outputCartesianGridSize = other._outputCartesianGridSize;
_outputCartesianGridResolution = other._outputCartesianGridResolution;
return *this;
}
gkg::ProbabilityDensityFunction::BasisType
gkg::ProbabilityDensityFunction::getBasisType() const
{
......
......@@ -41,6 +41,9 @@ class ProbabilityDensityFunction : public DiffusionFeature
virtual ~ProbabilityDensityFunction();
ProbabilityDensityFunction& operator = (
const ProbabilityDensityFunction& other );
BasisType getBasisType() const;
std::string getBasisTypeName() const;
void setBasisType( BasisType basisType );
......
......@@ -137,6 +137,21 @@ gkg::ProbabilityDensityFunction::~ProbabilityDensityFunction()
}
gkg::ProbabilityDensityFunction&
gkg::ProbabilityDensityFunction::operator = (
const gkg::ProbabilityDensityFunction& other )
{
_basisType = other._basisType;
_outputMultipleShellSampling = other._outputMultipleShellSampling;
_outputCartesianGridSize = other._outputCartesianGridSize;
_outputCartesianGridResolution = other._outputCartesianGridResolution;
return *this;
}
gkg::ProbabilityDensityFunction::BasisType
gkg::ProbabilityDensityFunction::getBasisType() const
{
......
......@@ -41,6 +41,9 @@ class ProbabilityDensityFunction : public DiffusionFeature
virtual ~ProbabilityDensityFunction();
ProbabilityDensityFunction& operator = (
const ProbabilityDensityFunction& other );
BasisType getBasisType() const;
std::string getBasisTypeName() const;
void setBasisType( BasisType basisType );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment