diff --git a/Core/PythonAPI/inc/__call_policies.pypp.hpp b/Core/PythonAPI/inc/__call_policies.pypp.hpp index b31e20b5413618a6720f6151c07ec0cfd0729a62..e5f8bb6a1bf0725c4072ca511a85c0b091532890 100644 --- a/Core/PythonAPI/inc/__call_policies.pypp.hpp +++ b/Core/PythonAPI/inc/__call_policies.pypp.hpp @@ -73,7 +73,7 @@ struct make_addressof_holder{ return bpl::detail::none(); } else{ - size_t addressof_p = size_t( p ); + boost::uint32_t addressof_p = reinterpret_cast< boost::uint32_t >( p ); bpl::object p_address( addressof_p ); return bpl::incref( p_address.ptr() ); } @@ -152,11 +152,6 @@ struct as_tuple_impl{ MemoryManager::deallocate_array( arr ); return bpl::incref( bpl::tuple( list_ ).ptr() ); } - - static PyTypeObject const *get_pytype(){ - return &PyTuple_Type; - } - }; } diff --git a/Core/PythonAPI/src/Beam.pypp.cpp b/Core/PythonAPI/src/Beam.pypp.cpp index e2c8d55743ef22fa11641a03dbf69c5dc931fe7f..f346c78eb1d2179bf5d7226620082197b369c7eb 100644 --- a/Core/PythonAPI/src/Beam.pypp.cpp +++ b/Core/PythonAPI/src/Beam.pypp.cpp @@ -35,11 +35,11 @@ struct Beam_wrapper : Beam, bp::wrapper< Beam > { virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -47,11 +47,11 @@ struct Beam_wrapper : Beam, bp::wrapper< Beam > { virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -59,11 +59,11 @@ struct Beam_wrapper : Beam, bp::wrapper< Beam > { virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -71,11 +71,11 @@ struct Beam_wrapper : Beam, bp::wrapper< Beam > { virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -102,11 +102,11 @@ struct Beam_wrapper : Beam, bp::wrapper< Beam > { virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -114,11 +114,11 @@ struct Beam_wrapper : Beam, bp::wrapper< Beam > { virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -126,11 +126,11 @@ struct Beam_wrapper : Beam, bp::wrapper< Beam > { virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/Crystal.pypp.cpp b/Core/PythonAPI/src/Crystal.pypp.cpp index 980f50fcce0e522a8cea88ee574e6a542ee0d56c..51c6018aa6f32f812c158a790ecac20bdd9af4ea 100644 --- a/Core/PythonAPI/src/Crystal.pypp.cpp +++ b/Core/PythonAPI/src/Crystal.pypp.cpp @@ -28,11 +28,11 @@ struct Crystal_wrapper : Crystal, bp::wrapper< Crystal > { virtual ::Crystal * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->Crystal::clone( ); - } } + ::Crystal * default_clone( ) const { return Crystal::clone( ); } @@ -40,11 +40,11 @@ struct Crystal_wrapper : Crystal, bp::wrapper< Crystal > { virtual ::Crystal * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->Crystal::cloneInvertB( ); - } } + ::Crystal * default_cloneInvertB( ) const { return Crystal::cloneInvertB( ); } @@ -52,11 +52,11 @@ struct Crystal_wrapper : Crystal, bp::wrapper< Crystal > { virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -64,11 +64,11 @@ struct Crystal_wrapper : Crystal, bp::wrapper< Crystal > { virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -76,11 +76,11 @@ struct Crystal_wrapper : Crystal, bp::wrapper< Crystal > { virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -88,11 +88,11 @@ struct Crystal_wrapper : Crystal, bp::wrapper< Crystal > { virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -119,11 +119,11 @@ struct Crystal_wrapper : Crystal, bp::wrapper< Crystal > { virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -131,11 +131,11 @@ struct Crystal_wrapper : Crystal, bp::wrapper< Crystal > { virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -143,11 +143,11 @@ struct Crystal_wrapper : Crystal, bp::wrapper< Crystal > { virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/Detector.pypp.cpp b/Core/PythonAPI/src/Detector.pypp.cpp index 286cff5b79d2a8861c188f1b46e52c2cc7c0c262..b5d25887a535a0f25367bbff3e25514a002df70a 100644 --- a/Core/PythonAPI/src/Detector.pypp.cpp +++ b/Core/PythonAPI/src/Detector.pypp.cpp @@ -35,11 +35,11 @@ struct Detector_wrapper : Detector, bp::wrapper< Detector > { virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -47,11 +47,11 @@ struct Detector_wrapper : Detector, bp::wrapper< Detector > { virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -59,11 +59,11 @@ struct Detector_wrapper : Detector, bp::wrapper< Detector > { virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -71,11 +71,11 @@ struct Detector_wrapper : Detector, bp::wrapper< Detector > { virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -102,11 +102,11 @@ struct Detector_wrapper : Detector, bp::wrapper< Detector > { virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -114,11 +114,11 @@ struct Detector_wrapper : Detector, bp::wrapper< Detector > { virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -126,11 +126,11 @@ struct Detector_wrapper : Detector, bp::wrapper< Detector > { virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -155,7 +155,7 @@ void register_Detector_class(){ } { //::Detector::getAxis - typedef ::IAxis const & ( ::Detector::*getAxis_function_type )( ::size_t ) const; + typedef ::IAxis const & ( ::Detector::*getAxis_function_type )( ::std::size_t ) const; Detector_exposer.def( "getAxis" @@ -176,7 +176,7 @@ void register_Detector_class(){ } { //::Detector::getDimension - typedef ::size_t ( ::Detector::*getDimension_function_type )( ) const; + typedef ::std::size_t ( ::Detector::*getDimension_function_type )( ) const; Detector_exposer.def( "getDimension" diff --git a/Core/PythonAPI/src/FTDistribution2DCauchy.pypp.cpp b/Core/PythonAPI/src/FTDistribution2DCauchy.pypp.cpp index 7178ab3ede9cd4ccdaece1cfd1994efd3a52d8c1..ce3e50e7291369b371ef5f67e3a95521ed50ebae 100644 --- a/Core/PythonAPI/src/FTDistribution2DCauchy.pypp.cpp +++ b/Core/PythonAPI/src/FTDistribution2DCauchy.pypp.cpp @@ -35,11 +35,11 @@ struct FTDistribution2DCauchy_wrapper : FTDistribution2DCauchy, bp::wrapper< FTD virtual ::FTDistribution2DCauchy * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->FTDistribution2DCauchy::clone( ); - } } + ::FTDistribution2DCauchy * default_clone( ) const { return FTDistribution2DCauchy::clone( ); } @@ -47,11 +47,11 @@ struct FTDistribution2DCauchy_wrapper : FTDistribution2DCauchy, bp::wrapper< FTD virtual double evaluate( double qx, double qy ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( qx, qy ); - else{ + else return this->FTDistribution2DCauchy::evaluate( qx, qy ); - } } + double default_evaluate( double qx, double qy ) const { return FTDistribution2DCauchy::evaluate( qx, qy ); } @@ -59,11 +59,11 @@ struct FTDistribution2DCauchy_wrapper : FTDistribution2DCauchy, bp::wrapper< FTD virtual void transformToStarBasis( double qX, double qY, double alpha, double a, double b, double & qa, double & qb ) const { if( bp::override func_transformToStarBasis = this->get_override( "transformToStarBasis" ) ) func_transformToStarBasis( qX, qY, alpha, a, b, qa, qb ); - else{ + else this->FTDistribution2DCauchy::transformToStarBasis( qX, qY, alpha, a, b, qa, qb ); - } } + void default_transformToStarBasis( double qX, double qY, double alpha, double a, double b, double & qa, double & qb ) const { FTDistribution2DCauchy::transformToStarBasis( qX, qY, alpha, a, b, qa, qb ); } @@ -71,11 +71,11 @@ struct FTDistribution2DCauchy_wrapper : FTDistribution2DCauchy, bp::wrapper< FTD virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -83,11 +83,11 @@ struct FTDistribution2DCauchy_wrapper : FTDistribution2DCauchy, bp::wrapper< FTD virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -95,11 +95,11 @@ struct FTDistribution2DCauchy_wrapper : FTDistribution2DCauchy, bp::wrapper< FTD virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -107,11 +107,11 @@ struct FTDistribution2DCauchy_wrapper : FTDistribution2DCauchy, bp::wrapper< FTD virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -138,11 +138,11 @@ struct FTDistribution2DCauchy_wrapper : FTDistribution2DCauchy, bp::wrapper< FTD virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -150,11 +150,11 @@ struct FTDistribution2DCauchy_wrapper : FTDistribution2DCauchy, bp::wrapper< FTD virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -162,11 +162,11 @@ struct FTDistribution2DCauchy_wrapper : FTDistribution2DCauchy, bp::wrapper< FTD virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/FormFactorBox.pypp.cpp b/Core/PythonAPI/src/FormFactorBox.pypp.cpp index 6f8c69dc6de763a7f7a65f7432fef69ed37e6496..f501250e5ed0f61c3296672a908be25c5428387d 100644 --- a/Core/PythonAPI/src/FormFactorBox.pypp.cpp +++ b/Core/PythonAPI/src/FormFactorBox.pypp.cpp @@ -28,11 +28,11 @@ struct FormFactorBox_wrapper : FormFactorBox, bp::wrapper< FormFactorBox > { virtual ::FormFactorBox * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->FormFactorBox::clone( ); - } } + ::FormFactorBox * default_clone( ) const { return FormFactorBox::clone( ); } @@ -40,11 +40,11 @@ struct FormFactorBox_wrapper : FormFactorBox, bp::wrapper< FormFactorBox > { virtual ::complex_t evaluate_for_q( ::cvector_t const & q ) const { if( bp::override func_evaluate_for_q = this->get_override( "evaluate_for_q" ) ) return func_evaluate_for_q( boost::ref(q) ); - else{ + else return this->FormFactorBox::evaluate_for_q( boost::ref(q) ); - } } + ::complex_t default_evaluate_for_q( ::cvector_t const & q ) const { return FormFactorBox::evaluate_for_q( boost::ref(q) ); } @@ -52,11 +52,11 @@ struct FormFactorBox_wrapper : FormFactorBox, bp::wrapper< FormFactorBox > { virtual double getHeight( ) const { if( bp::override func_getHeight = this->get_override( "getHeight" ) ) return func_getHeight( ); - else{ + else return this->FormFactorBox::getHeight( ); - } } + double default_getHeight( ) const { return FormFactorBox::getHeight( ); } @@ -64,11 +64,11 @@ struct FormFactorBox_wrapper : FormFactorBox, bp::wrapper< FormFactorBox > { virtual int getNumberOfStochasticParameters( ) const { if( bp::override func_getNumberOfStochasticParameters = this->get_override( "getNumberOfStochasticParameters" ) ) return func_getNumberOfStochasticParameters( ); - else{ + else return this->FormFactorBox::getNumberOfStochasticParameters( ); - } } + int default_getNumberOfStochasticParameters( ) const { return FormFactorBox::getNumberOfStochasticParameters( ); } @@ -76,11 +76,11 @@ struct FormFactorBox_wrapper : FormFactorBox, bp::wrapper< FormFactorBox > { virtual double getRadius( ) const { if( bp::override func_getRadius = this->get_override( "getRadius" ) ) return func_getRadius( ); - else{ + else return this->FormFactorBox::getRadius( ); - } } + double default_getRadius( ) const { return FormFactorBox::getRadius( ); } @@ -88,11 +88,11 @@ struct FormFactorBox_wrapper : FormFactorBox, bp::wrapper< FormFactorBox > { virtual double getVolume( ) const { if( bp::override func_getVolume = this->get_override( "getVolume" ) ) return func_getVolume( ); - else{ + else return this->FormFactorBox::getVolume( ); - } } + double default_getVolume( ) const { return FormFactorBox::getVolume( ); } @@ -100,11 +100,11 @@ struct FormFactorBox_wrapper : FormFactorBox, bp::wrapper< FormFactorBox > { virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -112,11 +112,11 @@ struct FormFactorBox_wrapper : FormFactorBox, bp::wrapper< FormFactorBox > { virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -124,35 +124,35 @@ struct FormFactorBox_wrapper : FormFactorBox, bp::wrapper< FormFactorBox > { virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } - virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { if( bp::override func_createDistributedFormFactors = this->get_override( "createDistributedFormFactors" ) ) func_createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - else{ + else this->IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - } } - void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + + void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); } virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -160,11 +160,11 @@ struct FormFactorBox_wrapper : FormFactorBox, bp::wrapper< FormFactorBox > { virtual ::complex_t evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - else{ + else return this->IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - } } + ::complex_t default_evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { return IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); } @@ -172,11 +172,11 @@ struct FormFactorBox_wrapper : FormFactorBox, bp::wrapper< FormFactorBox > { virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -184,11 +184,11 @@ struct FormFactorBox_wrapper : FormFactorBox, bp::wrapper< FormFactorBox > { virtual bool isDistributedFormFactor( ) const { if( bp::override func_isDistributedFormFactor = this->get_override( "isDistributedFormFactor" ) ) return func_isDistributedFormFactor( ); - else{ + else return this->IFormFactor::isDistributedFormFactor( ); - } } + bool default_isDistributedFormFactor( ) const { return IFormFactor::isDistributedFormFactor( ); } @@ -196,11 +196,11 @@ struct FormFactorBox_wrapper : FormFactorBox, bp::wrapper< FormFactorBox > { virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -227,11 +227,11 @@ struct FormFactorBox_wrapper : FormFactorBox, bp::wrapper< FormFactorBox > { virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -239,11 +239,11 @@ struct FormFactorBox_wrapper : FormFactorBox, bp::wrapper< FormFactorBox > { virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -251,11 +251,11 @@ struct FormFactorBox_wrapper : FormFactorBox, bp::wrapper< FormFactorBox > { virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -381,8 +381,8 @@ void register_FormFactorBox_class(){ } { //::IFormFactor::createDistributedFormFactors - typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; - typedef void ( FormFactorBox_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; + typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; + typedef void ( FormFactorBox_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; FormFactorBox_exposer.def( "createDistributedFormFactors" diff --git a/Core/PythonAPI/src/FormFactorCone.pypp.cpp b/Core/PythonAPI/src/FormFactorCone.pypp.cpp index 89d0f205559979217b5b29c3eb2b584a78e8673f..919c4006e1111bc7768a25fa6b1e27dd1146d46b 100644 --- a/Core/PythonAPI/src/FormFactorCone.pypp.cpp +++ b/Core/PythonAPI/src/FormFactorCone.pypp.cpp @@ -28,11 +28,11 @@ struct FormFactorCone_wrapper : FormFactorCone, bp::wrapper< FormFactorCone > { virtual ::FormFactorCone * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->FormFactorCone::clone( ); - } } + ::FormFactorCone * default_clone( ) const { return FormFactorCone::clone( ); } @@ -40,11 +40,11 @@ struct FormFactorCone_wrapper : FormFactorCone, bp::wrapper< FormFactorCone > { virtual double getHeight( ) const { if( bp::override func_getHeight = this->get_override( "getHeight" ) ) return func_getHeight( ); - else{ + else return this->FormFactorCone::getHeight( ); - } } + double default_getHeight( ) const { return FormFactorCone::getHeight( ); } @@ -52,11 +52,11 @@ struct FormFactorCone_wrapper : FormFactorCone, bp::wrapper< FormFactorCone > { virtual int getNumberOfStochasticParameters( ) const { if( bp::override func_getNumberOfStochasticParameters = this->get_override( "getNumberOfStochasticParameters" ) ) return func_getNumberOfStochasticParameters( ); - else{ + else return this->FormFactorCone::getNumberOfStochasticParameters( ); - } } + int default_getNumberOfStochasticParameters( ) const { return FormFactorCone::getNumberOfStochasticParameters( ); } @@ -64,11 +64,11 @@ struct FormFactorCone_wrapper : FormFactorCone, bp::wrapper< FormFactorCone > { virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -76,11 +76,11 @@ struct FormFactorCone_wrapper : FormFactorCone, bp::wrapper< FormFactorCone > { virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -88,35 +88,35 @@ struct FormFactorCone_wrapper : FormFactorCone, bp::wrapper< FormFactorCone > { virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } - virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { if( bp::override func_createDistributedFormFactors = this->get_override( "createDistributedFormFactors" ) ) func_createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - else{ + else this->IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - } } - void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + + void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); } virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -124,11 +124,11 @@ struct FormFactorCone_wrapper : FormFactorCone, bp::wrapper< FormFactorCone > { virtual ::complex_t evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - else{ + else return this->IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - } } + ::complex_t default_evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { return IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); } @@ -136,11 +136,11 @@ struct FormFactorCone_wrapper : FormFactorCone, bp::wrapper< FormFactorCone > { virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -148,11 +148,11 @@ struct FormFactorCone_wrapper : FormFactorCone, bp::wrapper< FormFactorCone > { virtual double getRadius( ) const { if( bp::override func_getRadius = this->get_override( "getRadius" ) ) return func_getRadius( ); - else{ + else return this->IFormFactor::getRadius( ); - } } + double default_getRadius( ) const { return IFormFactor::getRadius( ); } @@ -160,11 +160,11 @@ struct FormFactorCone_wrapper : FormFactorCone, bp::wrapper< FormFactorCone > { virtual double getVolume( ) const { if( bp::override func_getVolume = this->get_override( "getVolume" ) ) return func_getVolume( ); - else{ + else return this->IFormFactorBorn::getVolume( ); - } } + double default_getVolume( ) const { return IFormFactorBorn::getVolume( ); } @@ -172,11 +172,11 @@ struct FormFactorCone_wrapper : FormFactorCone, bp::wrapper< FormFactorCone > { virtual bool isDistributedFormFactor( ) const { if( bp::override func_isDistributedFormFactor = this->get_override( "isDistributedFormFactor" ) ) return func_isDistributedFormFactor( ); - else{ + else return this->IFormFactor::isDistributedFormFactor( ); - } } + bool default_isDistributedFormFactor( ) const { return IFormFactor::isDistributedFormFactor( ); } @@ -184,11 +184,11 @@ struct FormFactorCone_wrapper : FormFactorCone, bp::wrapper< FormFactorCone > { virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -215,11 +215,11 @@ struct FormFactorCone_wrapper : FormFactorCone, bp::wrapper< FormFactorCone > { virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -227,11 +227,11 @@ struct FormFactorCone_wrapper : FormFactorCone, bp::wrapper< FormFactorCone > { virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -239,11 +239,11 @@ struct FormFactorCone_wrapper : FormFactorCone, bp::wrapper< FormFactorCone > { virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -326,8 +326,8 @@ void register_FormFactorCone_class(){ } { //::IFormFactor::createDistributedFormFactors - typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; - typedef void ( FormFactorCone_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; + typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; + typedef void ( FormFactorCone_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; FormFactorCone_exposer.def( "createDistributedFormFactors" diff --git a/Core/PythonAPI/src/FormFactorCrystal.pypp.cpp b/Core/PythonAPI/src/FormFactorCrystal.pypp.cpp index ceabdbe2db012d92b98a5543d24e2da3ee599502..d053585eb17e1e6d53c6313ddeaea65f316f863b 100644 --- a/Core/PythonAPI/src/FormFactorCrystal.pypp.cpp +++ b/Core/PythonAPI/src/FormFactorCrystal.pypp.cpp @@ -21,11 +21,11 @@ struct FormFactorCrystal_wrapper : FormFactorCrystal, bp::wrapper< FormFactorCry virtual ::FormFactorCrystal * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->FormFactorCrystal::clone( ); - } } + ::FormFactorCrystal * default_clone( ) const { return FormFactorCrystal::clone( ); } @@ -33,11 +33,11 @@ struct FormFactorCrystal_wrapper : FormFactorCrystal, bp::wrapper< FormFactorCry virtual ::complex_t evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - else{ + else return this->FormFactorCrystal::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - } } + ::complex_t default_evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { return FormFactorCrystal::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); } @@ -45,11 +45,11 @@ struct FormFactorCrystal_wrapper : FormFactorCrystal, bp::wrapper< FormFactorCry virtual ::complex_t evaluate_for_q( ::cvector_t const & q ) const { if( bp::override func_evaluate_for_q = this->get_override( "evaluate_for_q" ) ) return func_evaluate_for_q( boost::ref(q) ); - else{ + else return this->FormFactorCrystal::evaluate_for_q( boost::ref(q) ); - } } + ::complex_t default_evaluate_for_q( ::cvector_t const & q ) const { return FormFactorCrystal::evaluate_for_q( boost::ref(q) ); } @@ -57,11 +57,11 @@ struct FormFactorCrystal_wrapper : FormFactorCrystal, bp::wrapper< FormFactorCry virtual double getVolume( ) const { if( bp::override func_getVolume = this->get_override( "getVolume" ) ) return func_getVolume( ); - else{ + else return this->FormFactorCrystal::getVolume( ); - } } + double default_getVolume( ) const { return FormFactorCrystal::getVolume( ); } @@ -69,11 +69,11 @@ struct FormFactorCrystal_wrapper : FormFactorCrystal, bp::wrapper< FormFactorCry virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -81,11 +81,11 @@ struct FormFactorCrystal_wrapper : FormFactorCrystal, bp::wrapper< FormFactorCry virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -93,35 +93,35 @@ struct FormFactorCrystal_wrapper : FormFactorCrystal, bp::wrapper< FormFactorCry virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } - virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { if( bp::override func_createDistributedFormFactors = this->get_override( "createDistributedFormFactors" ) ) func_createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - else{ + else this->IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - } } - void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + + void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); } virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -129,11 +129,11 @@ struct FormFactorCrystal_wrapper : FormFactorCrystal, bp::wrapper< FormFactorCry virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -141,11 +141,11 @@ struct FormFactorCrystal_wrapper : FormFactorCrystal, bp::wrapper< FormFactorCry virtual double getHeight( ) const { if( bp::override func_getHeight = this->get_override( "getHeight" ) ) return func_getHeight( ); - else{ + else return this->IFormFactor::getHeight( ); - } } + double default_getHeight( ) const { return IFormFactor::getHeight( ); } @@ -153,11 +153,11 @@ struct FormFactorCrystal_wrapper : FormFactorCrystal, bp::wrapper< FormFactorCry virtual int getNumberOfStochasticParameters( ) const { if( bp::override func_getNumberOfStochasticParameters = this->get_override( "getNumberOfStochasticParameters" ) ) return func_getNumberOfStochasticParameters( ); - else{ + else return this->IFormFactor::getNumberOfStochasticParameters( ); - } } + int default_getNumberOfStochasticParameters( ) const { return IFormFactor::getNumberOfStochasticParameters( ); } @@ -165,11 +165,11 @@ struct FormFactorCrystal_wrapper : FormFactorCrystal, bp::wrapper< FormFactorCry virtual double getRadius( ) const { if( bp::override func_getRadius = this->get_override( "getRadius" ) ) return func_getRadius( ); - else{ + else return this->IFormFactor::getRadius( ); - } } + double default_getRadius( ) const { return IFormFactor::getRadius( ); } @@ -177,11 +177,11 @@ struct FormFactorCrystal_wrapper : FormFactorCrystal, bp::wrapper< FormFactorCry virtual bool isDistributedFormFactor( ) const { if( bp::override func_isDistributedFormFactor = this->get_override( "isDistributedFormFactor" ) ) return func_isDistributedFormFactor( ); - else{ + else return this->IFormFactor::isDistributedFormFactor( ); - } } + bool default_isDistributedFormFactor( ) const { return IFormFactor::isDistributedFormFactor( ); } @@ -189,11 +189,11 @@ struct FormFactorCrystal_wrapper : FormFactorCrystal, bp::wrapper< FormFactorCry virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -220,11 +220,11 @@ struct FormFactorCrystal_wrapper : FormFactorCrystal, bp::wrapper< FormFactorCry virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -232,11 +232,11 @@ struct FormFactorCrystal_wrapper : FormFactorCrystal, bp::wrapper< FormFactorCry virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -244,11 +244,11 @@ struct FormFactorCrystal_wrapper : FormFactorCrystal, bp::wrapper< FormFactorCry virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -344,8 +344,8 @@ void register_FormFactorCrystal_class(){ } { //::IFormFactor::createDistributedFormFactors - typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; - typedef void ( FormFactorCrystal_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; + typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; + typedef void ( FormFactorCrystal_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; FormFactorCrystal_exposer.def( "createDistributedFormFactors" diff --git a/Core/PythonAPI/src/FormFactorCylinder.pypp.cpp b/Core/PythonAPI/src/FormFactorCylinder.pypp.cpp index ee19b55f3f5ec2521eb281a363880ec566ce6263..f1ce4e5aaf2706041e61b576b07247901179eaf7 100644 --- a/Core/PythonAPI/src/FormFactorCylinder.pypp.cpp +++ b/Core/PythonAPI/src/FormFactorCylinder.pypp.cpp @@ -28,11 +28,11 @@ struct FormFactorCylinder_wrapper : FormFactorCylinder, bp::wrapper< FormFactorC virtual ::FormFactorCylinder * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->FormFactorCylinder::clone( ); - } } + ::FormFactorCylinder * default_clone( ) const { return FormFactorCylinder::clone( ); } @@ -40,11 +40,11 @@ struct FormFactorCylinder_wrapper : FormFactorCylinder, bp::wrapper< FormFactorC virtual ::complex_t evaluate_for_q( ::cvector_t const & q ) const { if( bp::override func_evaluate_for_q = this->get_override( "evaluate_for_q" ) ) return func_evaluate_for_q( boost::ref(q) ); - else{ + else return this->FormFactorCylinder::evaluate_for_q( boost::ref(q) ); - } } + ::complex_t default_evaluate_for_q( ::cvector_t const & q ) const { return FormFactorCylinder::evaluate_for_q( boost::ref(q) ); } @@ -52,11 +52,11 @@ struct FormFactorCylinder_wrapper : FormFactorCylinder, bp::wrapper< FormFactorC virtual double getHeight( ) const { if( bp::override func_getHeight = this->get_override( "getHeight" ) ) return func_getHeight( ); - else{ + else return this->FormFactorCylinder::getHeight( ); - } } + double default_getHeight( ) const { return FormFactorCylinder::getHeight( ); } @@ -64,11 +64,11 @@ struct FormFactorCylinder_wrapper : FormFactorCylinder, bp::wrapper< FormFactorC virtual int getNumberOfStochasticParameters( ) const { if( bp::override func_getNumberOfStochasticParameters = this->get_override( "getNumberOfStochasticParameters" ) ) return func_getNumberOfStochasticParameters( ); - else{ + else return this->FormFactorCylinder::getNumberOfStochasticParameters( ); - } } + int default_getNumberOfStochasticParameters( ) const { return FormFactorCylinder::getNumberOfStochasticParameters( ); } @@ -76,11 +76,11 @@ struct FormFactorCylinder_wrapper : FormFactorCylinder, bp::wrapper< FormFactorC virtual double getRadius( ) const { if( bp::override func_getRadius = this->get_override( "getRadius" ) ) return func_getRadius( ); - else{ + else return this->FormFactorCylinder::getRadius( ); - } } + double default_getRadius( ) const { return FormFactorCylinder::getRadius( ); } @@ -88,11 +88,11 @@ struct FormFactorCylinder_wrapper : FormFactorCylinder, bp::wrapper< FormFactorC virtual void setHeight( double height ) { if( bp::override func_setHeight = this->get_override( "setHeight" ) ) func_setHeight( height ); - else{ + else this->FormFactorCylinder::setHeight( height ); - } } + void default_setHeight( double height ) { FormFactorCylinder::setHeight( height ); } @@ -100,11 +100,11 @@ struct FormFactorCylinder_wrapper : FormFactorCylinder, bp::wrapper< FormFactorC virtual void setRadius( double radius ) { if( bp::override func_setRadius = this->get_override( "setRadius" ) ) func_setRadius( radius ); - else{ + else this->FormFactorCylinder::setRadius( radius ); - } } + void default_setRadius( double radius ) { FormFactorCylinder::setRadius( radius ); } @@ -112,11 +112,11 @@ struct FormFactorCylinder_wrapper : FormFactorCylinder, bp::wrapper< FormFactorC virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -124,11 +124,11 @@ struct FormFactorCylinder_wrapper : FormFactorCylinder, bp::wrapper< FormFactorC virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -136,35 +136,35 @@ struct FormFactorCylinder_wrapper : FormFactorCylinder, bp::wrapper< FormFactorC virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } - virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { if( bp::override func_createDistributedFormFactors = this->get_override( "createDistributedFormFactors" ) ) func_createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - else{ + else this->IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - } } - void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + + void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); } virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -172,11 +172,11 @@ struct FormFactorCylinder_wrapper : FormFactorCylinder, bp::wrapper< FormFactorC virtual ::complex_t evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - else{ + else return this->IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - } } + ::complex_t default_evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { return IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); } @@ -184,11 +184,11 @@ struct FormFactorCylinder_wrapper : FormFactorCylinder, bp::wrapper< FormFactorC virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -196,11 +196,11 @@ struct FormFactorCylinder_wrapper : FormFactorCylinder, bp::wrapper< FormFactorC virtual double getVolume( ) const { if( bp::override func_getVolume = this->get_override( "getVolume" ) ) return func_getVolume( ); - else{ + else return this->IFormFactorBorn::getVolume( ); - } } + double default_getVolume( ) const { return IFormFactorBorn::getVolume( ); } @@ -208,11 +208,11 @@ struct FormFactorCylinder_wrapper : FormFactorCylinder, bp::wrapper< FormFactorC virtual bool isDistributedFormFactor( ) const { if( bp::override func_isDistributedFormFactor = this->get_override( "isDistributedFormFactor" ) ) return func_isDistributedFormFactor( ); - else{ + else return this->IFormFactor::isDistributedFormFactor( ); - } } + bool default_isDistributedFormFactor( ) const { return IFormFactor::isDistributedFormFactor( ); } @@ -220,11 +220,11 @@ struct FormFactorCylinder_wrapper : FormFactorCylinder, bp::wrapper< FormFactorC virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -251,11 +251,11 @@ struct FormFactorCylinder_wrapper : FormFactorCylinder, bp::wrapper< FormFactorC virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -263,11 +263,11 @@ struct FormFactorCylinder_wrapper : FormFactorCylinder, bp::wrapper< FormFactorC virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -275,11 +275,11 @@ struct FormFactorCylinder_wrapper : FormFactorCylinder, bp::wrapper< FormFactorC virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -409,8 +409,8 @@ void register_FormFactorCylinder_class(){ } { //::IFormFactor::createDistributedFormFactors - typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; - typedef void ( FormFactorCylinder_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; + typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; + typedef void ( FormFactorCylinder_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; FormFactorCylinder_exposer.def( "createDistributedFormFactors" diff --git a/Core/PythonAPI/src/FormFactorDecoratorDebyeWaller.pypp.cpp b/Core/PythonAPI/src/FormFactorDecoratorDebyeWaller.pypp.cpp index 3e1e77bef05143710c17606739baa8a10f81adfc..fd5509dd602e16182dc40a1bc8fde5c75eac4586 100644 --- a/Core/PythonAPI/src/FormFactorDecoratorDebyeWaller.pypp.cpp +++ b/Core/PythonAPI/src/FormFactorDecoratorDebyeWaller.pypp.cpp @@ -28,11 +28,11 @@ struct FormFactorDecoratorDebyeWaller_wrapper : FormFactorDecoratorDebyeWaller, virtual ::FormFactorDecoratorDebyeWaller * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->FormFactorDecoratorDebyeWaller::clone( ); - } } + ::FormFactorDecoratorDebyeWaller * default_clone( ) const { return FormFactorDecoratorDebyeWaller::clone( ); } @@ -40,11 +40,11 @@ struct FormFactorDecoratorDebyeWaller_wrapper : FormFactorDecoratorDebyeWaller, virtual ::complex_t evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - else{ + else return this->FormFactorDecoratorDebyeWaller::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - } } + ::complex_t default_evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { return FormFactorDecoratorDebyeWaller::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); } @@ -52,11 +52,11 @@ struct FormFactorDecoratorDebyeWaller_wrapper : FormFactorDecoratorDebyeWaller, virtual int getNumberOfStochasticParameters( ) const { if( bp::override func_getNumberOfStochasticParameters = this->get_override( "getNumberOfStochasticParameters" ) ) return func_getNumberOfStochasticParameters( ); - else{ + else return this->FormFactorDecoratorDebyeWaller::getNumberOfStochasticParameters( ); - } } + int default_getNumberOfStochasticParameters( ) const { return FormFactorDecoratorDebyeWaller::getNumberOfStochasticParameters( ); } @@ -64,11 +64,11 @@ struct FormFactorDecoratorDebyeWaller_wrapper : FormFactorDecoratorDebyeWaller, virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -76,11 +76,11 @@ struct FormFactorDecoratorDebyeWaller_wrapper : FormFactorDecoratorDebyeWaller, virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -88,35 +88,35 @@ struct FormFactorDecoratorDebyeWaller_wrapper : FormFactorDecoratorDebyeWaller, virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } - virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { if( bp::override func_createDistributedFormFactors = this->get_override( "createDistributedFormFactors" ) ) func_createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - else{ + else this->IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - } } - void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + + void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); } virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -124,11 +124,11 @@ struct FormFactorDecoratorDebyeWaller_wrapper : FormFactorDecoratorDebyeWaller, virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -136,11 +136,11 @@ struct FormFactorDecoratorDebyeWaller_wrapper : FormFactorDecoratorDebyeWaller, virtual double getHeight( ) const { if( bp::override func_getHeight = this->get_override( "getHeight" ) ) return func_getHeight( ); - else{ + else return this->IFormFactorDecorator::getHeight( ); - } } + double default_getHeight( ) const { return IFormFactorDecorator::getHeight( ); } @@ -148,11 +148,11 @@ struct FormFactorDecoratorDebyeWaller_wrapper : FormFactorDecoratorDebyeWaller, virtual double getRadius( ) const { if( bp::override func_getRadius = this->get_override( "getRadius" ) ) return func_getRadius( ); - else{ + else return this->IFormFactorDecorator::getRadius( ); - } } + double default_getRadius( ) const { return IFormFactorDecorator::getRadius( ); } @@ -160,11 +160,11 @@ struct FormFactorDecoratorDebyeWaller_wrapper : FormFactorDecoratorDebyeWaller, virtual double getVolume( ) const { if( bp::override func_getVolume = this->get_override( "getVolume" ) ) return func_getVolume( ); - else{ + else return this->IFormFactorDecorator::getVolume( ); - } } + double default_getVolume( ) const { return IFormFactorDecorator::getVolume( ); } @@ -172,11 +172,11 @@ struct FormFactorDecoratorDebyeWaller_wrapper : FormFactorDecoratorDebyeWaller, virtual bool isDistributedFormFactor( ) const { if( bp::override func_isDistributedFormFactor = this->get_override( "isDistributedFormFactor" ) ) return func_isDistributedFormFactor( ); - else{ + else return this->IFormFactor::isDistributedFormFactor( ); - } } + bool default_isDistributedFormFactor( ) const { return IFormFactor::isDistributedFormFactor( ); } @@ -184,11 +184,11 @@ struct FormFactorDecoratorDebyeWaller_wrapper : FormFactorDecoratorDebyeWaller, virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -215,11 +215,11 @@ struct FormFactorDecoratorDebyeWaller_wrapper : FormFactorDecoratorDebyeWaller, virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -227,11 +227,11 @@ struct FormFactorDecoratorDebyeWaller_wrapper : FormFactorDecoratorDebyeWaller, virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -239,11 +239,11 @@ struct FormFactorDecoratorDebyeWaller_wrapper : FormFactorDecoratorDebyeWaller, virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -327,8 +327,8 @@ void register_FormFactorDecoratorDebyeWaller_class(){ } { //::IFormFactor::createDistributedFormFactors - typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; - typedef void ( FormFactorDecoratorDebyeWaller_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; + typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; + typedef void ( FormFactorDecoratorDebyeWaller_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; FormFactorDecoratorDebyeWaller_exposer.def( "createDistributedFormFactors" diff --git a/Core/PythonAPI/src/FormFactorEllipsoid.pypp.cpp b/Core/PythonAPI/src/FormFactorEllipsoid.pypp.cpp index 2445e215a90c56ed3aad46a50a69d1582da105cc..0a9ca5ce10141af950369b9918a1725a96955d33 100644 --- a/Core/PythonAPI/src/FormFactorEllipsoid.pypp.cpp +++ b/Core/PythonAPI/src/FormFactorEllipsoid.pypp.cpp @@ -28,11 +28,11 @@ struct FormFactorEllipsoid_wrapper : FormFactorEllipsoid, bp::wrapper< FormFacto virtual ::FormFactorEllipsoid * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->FormFactorEllipsoid::clone( ); - } } + ::FormFactorEllipsoid * default_clone( ) const { return FormFactorEllipsoid::clone( ); } @@ -40,11 +40,11 @@ struct FormFactorEllipsoid_wrapper : FormFactorEllipsoid, bp::wrapper< FormFacto virtual ::complex_t evaluate_for_q( ::cvector_t const & q ) const { if( bp::override func_evaluate_for_q = this->get_override( "evaluate_for_q" ) ) return func_evaluate_for_q( boost::ref(q) ); - else{ + else return this->FormFactorEllipsoid::evaluate_for_q( boost::ref(q) ); - } } + ::complex_t default_evaluate_for_q( ::cvector_t const & q ) const { return FormFactorEllipsoid::evaluate_for_q( boost::ref(q) ); } @@ -52,11 +52,11 @@ struct FormFactorEllipsoid_wrapper : FormFactorEllipsoid, bp::wrapper< FormFacto virtual double getHeight( ) const { if( bp::override func_getHeight = this->get_override( "getHeight" ) ) return func_getHeight( ); - else{ + else return this->FormFactorEllipsoid::getHeight( ); - } } + double default_getHeight( ) const { return FormFactorEllipsoid::getHeight( ); } @@ -64,11 +64,11 @@ struct FormFactorEllipsoid_wrapper : FormFactorEllipsoid, bp::wrapper< FormFacto virtual int getNumberOfStochasticParameters( ) const { if( bp::override func_getNumberOfStochasticParameters = this->get_override( "getNumberOfStochasticParameters" ) ) return func_getNumberOfStochasticParameters( ); - else{ + else return this->FormFactorEllipsoid::getNumberOfStochasticParameters( ); - } } + int default_getNumberOfStochasticParameters( ) const { return FormFactorEllipsoid::getNumberOfStochasticParameters( ); } @@ -76,11 +76,11 @@ struct FormFactorEllipsoid_wrapper : FormFactorEllipsoid, bp::wrapper< FormFacto virtual double getRadius( ) const { if( bp::override func_getRadius = this->get_override( "getRadius" ) ) return func_getRadius( ); - else{ + else return this->FormFactorEllipsoid::getRadius( ); - } } + double default_getRadius( ) const { return FormFactorEllipsoid::getRadius( ); } @@ -88,11 +88,11 @@ struct FormFactorEllipsoid_wrapper : FormFactorEllipsoid, bp::wrapper< FormFacto virtual double getVolume( ) const { if( bp::override func_getVolume = this->get_override( "getVolume" ) ) return func_getVolume( ); - else{ + else return this->FormFactorEllipsoid::getVolume( ); - } } + double default_getVolume( ) const { return FormFactorEllipsoid::getVolume( ); } @@ -100,11 +100,11 @@ struct FormFactorEllipsoid_wrapper : FormFactorEllipsoid, bp::wrapper< FormFacto virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -112,11 +112,11 @@ struct FormFactorEllipsoid_wrapper : FormFactorEllipsoid, bp::wrapper< FormFacto virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -124,35 +124,35 @@ struct FormFactorEllipsoid_wrapper : FormFactorEllipsoid, bp::wrapper< FormFacto virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } - virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { if( bp::override func_createDistributedFormFactors = this->get_override( "createDistributedFormFactors" ) ) func_createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - else{ + else this->IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - } } - void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + + void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); } virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -160,11 +160,11 @@ struct FormFactorEllipsoid_wrapper : FormFactorEllipsoid, bp::wrapper< FormFacto virtual ::complex_t evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - else{ + else return this->IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - } } + ::complex_t default_evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { return IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); } @@ -172,11 +172,11 @@ struct FormFactorEllipsoid_wrapper : FormFactorEllipsoid, bp::wrapper< FormFacto virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -184,11 +184,11 @@ struct FormFactorEllipsoid_wrapper : FormFactorEllipsoid, bp::wrapper< FormFacto virtual bool isDistributedFormFactor( ) const { if( bp::override func_isDistributedFormFactor = this->get_override( "isDistributedFormFactor" ) ) return func_isDistributedFormFactor( ); - else{ + else return this->IFormFactor::isDistributedFormFactor( ); - } } + bool default_isDistributedFormFactor( ) const { return IFormFactor::isDistributedFormFactor( ); } @@ -196,11 +196,11 @@ struct FormFactorEllipsoid_wrapper : FormFactorEllipsoid, bp::wrapper< FormFacto virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -227,11 +227,11 @@ struct FormFactorEllipsoid_wrapper : FormFactorEllipsoid, bp::wrapper< FormFacto virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -239,11 +239,11 @@ struct FormFactorEllipsoid_wrapper : FormFactorEllipsoid, bp::wrapper< FormFacto virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -251,11 +251,11 @@ struct FormFactorEllipsoid_wrapper : FormFactorEllipsoid, bp::wrapper< FormFacto virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -381,8 +381,8 @@ void register_FormFactorEllipsoid_class(){ } { //::IFormFactor::createDistributedFormFactors - typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; - typedef void ( FormFactorEllipsoid_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; + typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; + typedef void ( FormFactorEllipsoid_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; FormFactorEllipsoid_exposer.def( "createDistributedFormFactors" diff --git a/Core/PythonAPI/src/FormFactorFullSphere.pypp.cpp b/Core/PythonAPI/src/FormFactorFullSphere.pypp.cpp index bb3d482d9ce52c6842b46124e5f58bd7c90f7532..3815bf9636828ca056e7db45e61e6894e104cad4 100644 --- a/Core/PythonAPI/src/FormFactorFullSphere.pypp.cpp +++ b/Core/PythonAPI/src/FormFactorFullSphere.pypp.cpp @@ -28,11 +28,11 @@ struct FormFactorFullSphere_wrapper : FormFactorFullSphere, bp::wrapper< FormFac virtual ::FormFactorFullSphere * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->FormFactorFullSphere::clone( ); - } } + ::FormFactorFullSphere * default_clone( ) const { return FormFactorFullSphere::clone( ); } @@ -40,11 +40,11 @@ struct FormFactorFullSphere_wrapper : FormFactorFullSphere, bp::wrapper< FormFac virtual ::complex_t evaluate_for_q( ::cvector_t const & q ) const { if( bp::override func_evaluate_for_q = this->get_override( "evaluate_for_q" ) ) return func_evaluate_for_q( boost::ref(q) ); - else{ + else return this->FormFactorFullSphere::evaluate_for_q( boost::ref(q) ); - } } + ::complex_t default_evaluate_for_q( ::cvector_t const & q ) const { return FormFactorFullSphere::evaluate_for_q( boost::ref(q) ); } @@ -52,11 +52,11 @@ struct FormFactorFullSphere_wrapper : FormFactorFullSphere, bp::wrapper< FormFac virtual double getHeight( ) const { if( bp::override func_getHeight = this->get_override( "getHeight" ) ) return func_getHeight( ); - else{ + else return this->FormFactorFullSphere::getHeight( ); - } } + double default_getHeight( ) const { return FormFactorFullSphere::getHeight( ); } @@ -64,11 +64,11 @@ struct FormFactorFullSphere_wrapper : FormFactorFullSphere, bp::wrapper< FormFac virtual int getNumberOfStochasticParameters( ) const { if( bp::override func_getNumberOfStochasticParameters = this->get_override( "getNumberOfStochasticParameters" ) ) return func_getNumberOfStochasticParameters( ); - else{ + else return this->FormFactorFullSphere::getNumberOfStochasticParameters( ); - } } + int default_getNumberOfStochasticParameters( ) const { return FormFactorFullSphere::getNumberOfStochasticParameters( ); } @@ -76,11 +76,11 @@ struct FormFactorFullSphere_wrapper : FormFactorFullSphere, bp::wrapper< FormFac virtual double getRadius( ) const { if( bp::override func_getRadius = this->get_override( "getRadius" ) ) return func_getRadius( ); - else{ + else return this->FormFactorFullSphere::getRadius( ); - } } + double default_getRadius( ) const { return FormFactorFullSphere::getRadius( ); } @@ -88,11 +88,11 @@ struct FormFactorFullSphere_wrapper : FormFactorFullSphere, bp::wrapper< FormFac virtual void setRadius( double radius ) { if( bp::override func_setRadius = this->get_override( "setRadius" ) ) func_setRadius( radius ); - else{ + else this->FormFactorFullSphere::setRadius( radius ); - } } + void default_setRadius( double radius ) { FormFactorFullSphere::setRadius( radius ); } @@ -100,11 +100,11 @@ struct FormFactorFullSphere_wrapper : FormFactorFullSphere, bp::wrapper< FormFac virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -112,11 +112,11 @@ struct FormFactorFullSphere_wrapper : FormFactorFullSphere, bp::wrapper< FormFac virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -124,35 +124,35 @@ struct FormFactorFullSphere_wrapper : FormFactorFullSphere, bp::wrapper< FormFac virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } - virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { if( bp::override func_createDistributedFormFactors = this->get_override( "createDistributedFormFactors" ) ) func_createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - else{ + else this->IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - } } - void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + + void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); } virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -160,11 +160,11 @@ struct FormFactorFullSphere_wrapper : FormFactorFullSphere, bp::wrapper< FormFac virtual ::complex_t evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - else{ + else return this->IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - } } + ::complex_t default_evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { return IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); } @@ -172,11 +172,11 @@ struct FormFactorFullSphere_wrapper : FormFactorFullSphere, bp::wrapper< FormFac virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -184,11 +184,11 @@ struct FormFactorFullSphere_wrapper : FormFactorFullSphere, bp::wrapper< FormFac virtual double getVolume( ) const { if( bp::override func_getVolume = this->get_override( "getVolume" ) ) return func_getVolume( ); - else{ + else return this->IFormFactorBorn::getVolume( ); - } } + double default_getVolume( ) const { return IFormFactorBorn::getVolume( ); } @@ -196,11 +196,11 @@ struct FormFactorFullSphere_wrapper : FormFactorFullSphere, bp::wrapper< FormFac virtual bool isDistributedFormFactor( ) const { if( bp::override func_isDistributedFormFactor = this->get_override( "isDistributedFormFactor" ) ) return func_isDistributedFormFactor( ); - else{ + else return this->IFormFactor::isDistributedFormFactor( ); - } } + bool default_isDistributedFormFactor( ) const { return IFormFactor::isDistributedFormFactor( ); } @@ -208,11 +208,11 @@ struct FormFactorFullSphere_wrapper : FormFactorFullSphere, bp::wrapper< FormFac virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -239,11 +239,11 @@ struct FormFactorFullSphere_wrapper : FormFactorFullSphere, bp::wrapper< FormFac virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -251,11 +251,11 @@ struct FormFactorFullSphere_wrapper : FormFactorFullSphere, bp::wrapper< FormFac virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -263,11 +263,11 @@ struct FormFactorFullSphere_wrapper : FormFactorFullSphere, bp::wrapper< FormFac virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -385,8 +385,8 @@ void register_FormFactorFullSphere_class(){ } { //::IFormFactor::createDistributedFormFactors - typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; - typedef void ( FormFactorFullSphere_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; + typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; + typedef void ( FormFactorFullSphere_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; FormFactorFullSphere_exposer.def( "createDistributedFormFactors" diff --git a/Core/PythonAPI/src/FormFactorFullSpheroid.pypp.cpp b/Core/PythonAPI/src/FormFactorFullSpheroid.pypp.cpp index 18a4a31895f0f37b2d93dc51ad4bbe04ce199666..1e8532d1e79965298716ef14397f6f3262d23bae 100644 --- a/Core/PythonAPI/src/FormFactorFullSpheroid.pypp.cpp +++ b/Core/PythonAPI/src/FormFactorFullSpheroid.pypp.cpp @@ -28,11 +28,11 @@ struct FormFactorFullSpheroid_wrapper : FormFactorFullSpheroid, bp::wrapper< For virtual ::FormFactorFullSpheroid * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->FormFactorFullSpheroid::clone( ); - } } + ::FormFactorFullSpheroid * default_clone( ) const { return FormFactorFullSpheroid::clone( ); } @@ -40,11 +40,11 @@ struct FormFactorFullSpheroid_wrapper : FormFactorFullSpheroid, bp::wrapper< For virtual double getHeight( ) const { if( bp::override func_getHeight = this->get_override( "getHeight" ) ) return func_getHeight( ); - else{ + else return this->FormFactorFullSpheroid::getHeight( ); - } } + double default_getHeight( ) const { return FormFactorFullSpheroid::getHeight( ); } @@ -52,11 +52,11 @@ struct FormFactorFullSpheroid_wrapper : FormFactorFullSpheroid, bp::wrapper< For virtual int getNumberOfStochasticParameters( ) const { if( bp::override func_getNumberOfStochasticParameters = this->get_override( "getNumberOfStochasticParameters" ) ) return func_getNumberOfStochasticParameters( ); - else{ + else return this->FormFactorFullSpheroid::getNumberOfStochasticParameters( ); - } } + int default_getNumberOfStochasticParameters( ) const { return FormFactorFullSpheroid::getNumberOfStochasticParameters( ); } @@ -64,11 +64,11 @@ struct FormFactorFullSpheroid_wrapper : FormFactorFullSpheroid, bp::wrapper< For virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -76,11 +76,11 @@ struct FormFactorFullSpheroid_wrapper : FormFactorFullSpheroid, bp::wrapper< For virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -88,35 +88,35 @@ struct FormFactorFullSpheroid_wrapper : FormFactorFullSpheroid, bp::wrapper< For virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } - virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { if( bp::override func_createDistributedFormFactors = this->get_override( "createDistributedFormFactors" ) ) func_createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - else{ + else this->IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - } } - void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + + void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); } virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -124,11 +124,11 @@ struct FormFactorFullSpheroid_wrapper : FormFactorFullSpheroid, bp::wrapper< For virtual ::complex_t evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - else{ + else return this->IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - } } + ::complex_t default_evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { return IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); } @@ -136,11 +136,11 @@ struct FormFactorFullSpheroid_wrapper : FormFactorFullSpheroid, bp::wrapper< For virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -148,11 +148,11 @@ struct FormFactorFullSpheroid_wrapper : FormFactorFullSpheroid, bp::wrapper< For virtual double getRadius( ) const { if( bp::override func_getRadius = this->get_override( "getRadius" ) ) return func_getRadius( ); - else{ + else return this->IFormFactor::getRadius( ); - } } + double default_getRadius( ) const { return IFormFactor::getRadius( ); } @@ -160,11 +160,11 @@ struct FormFactorFullSpheroid_wrapper : FormFactorFullSpheroid, bp::wrapper< For virtual double getVolume( ) const { if( bp::override func_getVolume = this->get_override( "getVolume" ) ) return func_getVolume( ); - else{ + else return this->IFormFactorBorn::getVolume( ); - } } + double default_getVolume( ) const { return IFormFactorBorn::getVolume( ); } @@ -172,11 +172,11 @@ struct FormFactorFullSpheroid_wrapper : FormFactorFullSpheroid, bp::wrapper< For virtual bool isDistributedFormFactor( ) const { if( bp::override func_isDistributedFormFactor = this->get_override( "isDistributedFormFactor" ) ) return func_isDistributedFormFactor( ); - else{ + else return this->IFormFactor::isDistributedFormFactor( ); - } } + bool default_isDistributedFormFactor( ) const { return IFormFactor::isDistributedFormFactor( ); } @@ -184,11 +184,11 @@ struct FormFactorFullSpheroid_wrapper : FormFactorFullSpheroid, bp::wrapper< For virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -215,11 +215,11 @@ struct FormFactorFullSpheroid_wrapper : FormFactorFullSpheroid, bp::wrapper< For virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -227,11 +227,11 @@ struct FormFactorFullSpheroid_wrapper : FormFactorFullSpheroid, bp::wrapper< For virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -239,11 +239,11 @@ struct FormFactorFullSpheroid_wrapper : FormFactorFullSpheroid, bp::wrapper< For virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -326,8 +326,8 @@ void register_FormFactorFullSpheroid_class(){ } { //::IFormFactor::createDistributedFormFactors - typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; - typedef void ( FormFactorFullSpheroid_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; + typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; + typedef void ( FormFactorFullSpheroid_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; FormFactorFullSpheroid_exposer.def( "createDistributedFormFactors" diff --git a/Core/PythonAPI/src/FormFactorGauss.pypp.cpp b/Core/PythonAPI/src/FormFactorGauss.pypp.cpp index c8cf6fa74432131a40ed7a8c35a641e629791e8c..1e69362b33ffe470c569a2af060cc3827a6e05b7 100644 --- a/Core/PythonAPI/src/FormFactorGauss.pypp.cpp +++ b/Core/PythonAPI/src/FormFactorGauss.pypp.cpp @@ -35,11 +35,11 @@ struct FormFactorGauss_wrapper : FormFactorGauss, bp::wrapper< FormFactorGauss > virtual ::FormFactorGauss * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->FormFactorGauss::clone( ); - } } + ::FormFactorGauss * default_clone( ) const { return FormFactorGauss::clone( ); } @@ -47,11 +47,11 @@ struct FormFactorGauss_wrapper : FormFactorGauss, bp::wrapper< FormFactorGauss > virtual ::complex_t evaluate_for_q( ::cvector_t const & q ) const { if( bp::override func_evaluate_for_q = this->get_override( "evaluate_for_q" ) ) return func_evaluate_for_q( boost::ref(q) ); - else{ + else return this->FormFactorGauss::evaluate_for_q( boost::ref(q) ); - } } + ::complex_t default_evaluate_for_q( ::cvector_t const & q ) const { return FormFactorGauss::evaluate_for_q( boost::ref(q) ); } @@ -59,11 +59,11 @@ struct FormFactorGauss_wrapper : FormFactorGauss, bp::wrapper< FormFactorGauss > virtual int getNumberOfStochasticParameters( ) const { if( bp::override func_getNumberOfStochasticParameters = this->get_override( "getNumberOfStochasticParameters" ) ) return func_getNumberOfStochasticParameters( ); - else{ + else return this->FormFactorGauss::getNumberOfStochasticParameters( ); - } } + int default_getNumberOfStochasticParameters( ) const { return FormFactorGauss::getNumberOfStochasticParameters( ); } @@ -71,11 +71,11 @@ struct FormFactorGauss_wrapper : FormFactorGauss, bp::wrapper< FormFactorGauss > virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -83,11 +83,11 @@ struct FormFactorGauss_wrapper : FormFactorGauss, bp::wrapper< FormFactorGauss > virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -95,35 +95,35 @@ struct FormFactorGauss_wrapper : FormFactorGauss, bp::wrapper< FormFactorGauss > virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } - virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { if( bp::override func_createDistributedFormFactors = this->get_override( "createDistributedFormFactors" ) ) func_createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - else{ + else this->IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - } } - void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + + void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); } virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -131,11 +131,11 @@ struct FormFactorGauss_wrapper : FormFactorGauss, bp::wrapper< FormFactorGauss > virtual ::complex_t evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - else{ + else return this->IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - } } + ::complex_t default_evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { return IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); } @@ -143,11 +143,11 @@ struct FormFactorGauss_wrapper : FormFactorGauss, bp::wrapper< FormFactorGauss > virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -155,11 +155,11 @@ struct FormFactorGauss_wrapper : FormFactorGauss, bp::wrapper< FormFactorGauss > virtual double getHeight( ) const { if( bp::override func_getHeight = this->get_override( "getHeight" ) ) return func_getHeight( ); - else{ + else return this->IFormFactor::getHeight( ); - } } + double default_getHeight( ) const { return IFormFactor::getHeight( ); } @@ -167,11 +167,11 @@ struct FormFactorGauss_wrapper : FormFactorGauss, bp::wrapper< FormFactorGauss > virtual double getRadius( ) const { if( bp::override func_getRadius = this->get_override( "getRadius" ) ) return func_getRadius( ); - else{ + else return this->IFormFactor::getRadius( ); - } } + double default_getRadius( ) const { return IFormFactor::getRadius( ); } @@ -179,11 +179,11 @@ struct FormFactorGauss_wrapper : FormFactorGauss, bp::wrapper< FormFactorGauss > virtual double getVolume( ) const { if( bp::override func_getVolume = this->get_override( "getVolume" ) ) return func_getVolume( ); - else{ + else return this->IFormFactorBorn::getVolume( ); - } } + double default_getVolume( ) const { return IFormFactorBorn::getVolume( ); } @@ -191,11 +191,11 @@ struct FormFactorGauss_wrapper : FormFactorGauss, bp::wrapper< FormFactorGauss > virtual bool isDistributedFormFactor( ) const { if( bp::override func_isDistributedFormFactor = this->get_override( "isDistributedFormFactor" ) ) return func_isDistributedFormFactor( ); - else{ + else return this->IFormFactor::isDistributedFormFactor( ); - } } + bool default_isDistributedFormFactor( ) const { return IFormFactor::isDistributedFormFactor( ); } @@ -203,11 +203,11 @@ struct FormFactorGauss_wrapper : FormFactorGauss, bp::wrapper< FormFactorGauss > virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -234,11 +234,11 @@ struct FormFactorGauss_wrapper : FormFactorGauss, bp::wrapper< FormFactorGauss > virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -246,11 +246,11 @@ struct FormFactorGauss_wrapper : FormFactorGauss, bp::wrapper< FormFactorGauss > virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -258,11 +258,11 @@ struct FormFactorGauss_wrapper : FormFactorGauss, bp::wrapper< FormFactorGauss > virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -347,8 +347,8 @@ void register_FormFactorGauss_class(){ } { //::IFormFactor::createDistributedFormFactors - typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; - typedef void ( FormFactorGauss_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; + typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; + typedef void ( FormFactorGauss_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; FormFactorGauss_exposer.def( "createDistributedFormFactors" diff --git a/Core/PythonAPI/src/FormFactorHemiSpheroid.pypp.cpp b/Core/PythonAPI/src/FormFactorHemiSpheroid.pypp.cpp index 8a8e806768be0bd81677fa7762fbbd1338cd486c..3a6afdf30319b55abbc76003b543576a89948bfa 100644 --- a/Core/PythonAPI/src/FormFactorHemiSpheroid.pypp.cpp +++ b/Core/PythonAPI/src/FormFactorHemiSpheroid.pypp.cpp @@ -28,11 +28,11 @@ struct FormFactorHemiSpheroid_wrapper : FormFactorHemiSpheroid, bp::wrapper< For virtual ::FormFactorHemiSpheroid * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->FormFactorHemiSpheroid::clone( ); - } } + ::FormFactorHemiSpheroid * default_clone( ) const { return FormFactorHemiSpheroid::clone( ); } @@ -40,11 +40,11 @@ struct FormFactorHemiSpheroid_wrapper : FormFactorHemiSpheroid, bp::wrapper< For virtual double getHeight( ) const { if( bp::override func_getHeight = this->get_override( "getHeight" ) ) return func_getHeight( ); - else{ + else return this->FormFactorHemiSpheroid::getHeight( ); - } } + double default_getHeight( ) const { return FormFactorHemiSpheroid::getHeight( ); } @@ -52,11 +52,11 @@ struct FormFactorHemiSpheroid_wrapper : FormFactorHemiSpheroid, bp::wrapper< For virtual int getNumberOfStochasticParameters( ) const { if( bp::override func_getNumberOfStochasticParameters = this->get_override( "getNumberOfStochasticParameters" ) ) return func_getNumberOfStochasticParameters( ); - else{ + else return this->FormFactorHemiSpheroid::getNumberOfStochasticParameters( ); - } } + int default_getNumberOfStochasticParameters( ) const { return FormFactorHemiSpheroid::getNumberOfStochasticParameters( ); } @@ -64,11 +64,11 @@ struct FormFactorHemiSpheroid_wrapper : FormFactorHemiSpheroid, bp::wrapper< For virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -76,11 +76,11 @@ struct FormFactorHemiSpheroid_wrapper : FormFactorHemiSpheroid, bp::wrapper< For virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -88,35 +88,35 @@ struct FormFactorHemiSpheroid_wrapper : FormFactorHemiSpheroid, bp::wrapper< For virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } - virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { if( bp::override func_createDistributedFormFactors = this->get_override( "createDistributedFormFactors" ) ) func_createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - else{ + else this->IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - } } - void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + + void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); } virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -124,11 +124,11 @@ struct FormFactorHemiSpheroid_wrapper : FormFactorHemiSpheroid, bp::wrapper< For virtual ::complex_t evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - else{ + else return this->IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - } } + ::complex_t default_evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { return IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); } @@ -136,11 +136,11 @@ struct FormFactorHemiSpheroid_wrapper : FormFactorHemiSpheroid, bp::wrapper< For virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -148,11 +148,11 @@ struct FormFactorHemiSpheroid_wrapper : FormFactorHemiSpheroid, bp::wrapper< For virtual double getRadius( ) const { if( bp::override func_getRadius = this->get_override( "getRadius" ) ) return func_getRadius( ); - else{ + else return this->IFormFactor::getRadius( ); - } } + double default_getRadius( ) const { return IFormFactor::getRadius( ); } @@ -160,11 +160,11 @@ struct FormFactorHemiSpheroid_wrapper : FormFactorHemiSpheroid, bp::wrapper< For virtual double getVolume( ) const { if( bp::override func_getVolume = this->get_override( "getVolume" ) ) return func_getVolume( ); - else{ + else return this->IFormFactorBorn::getVolume( ); - } } + double default_getVolume( ) const { return IFormFactorBorn::getVolume( ); } @@ -172,11 +172,11 @@ struct FormFactorHemiSpheroid_wrapper : FormFactorHemiSpheroid, bp::wrapper< For virtual bool isDistributedFormFactor( ) const { if( bp::override func_isDistributedFormFactor = this->get_override( "isDistributedFormFactor" ) ) return func_isDistributedFormFactor( ); - else{ + else return this->IFormFactor::isDistributedFormFactor( ); - } } + bool default_isDistributedFormFactor( ) const { return IFormFactor::isDistributedFormFactor( ); } @@ -184,11 +184,11 @@ struct FormFactorHemiSpheroid_wrapper : FormFactorHemiSpheroid, bp::wrapper< For virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -215,11 +215,11 @@ struct FormFactorHemiSpheroid_wrapper : FormFactorHemiSpheroid, bp::wrapper< For virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -227,11 +227,11 @@ struct FormFactorHemiSpheroid_wrapper : FormFactorHemiSpheroid, bp::wrapper< For virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -239,11 +239,11 @@ struct FormFactorHemiSpheroid_wrapper : FormFactorHemiSpheroid, bp::wrapper< For virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -326,8 +326,8 @@ void register_FormFactorHemiSpheroid_class(){ } { //::IFormFactor::createDistributedFormFactors - typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; - typedef void ( FormFactorHemiSpheroid_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; + typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; + typedef void ( FormFactorHemiSpheroid_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; FormFactorHemiSpheroid_exposer.def( "createDistributedFormFactors" diff --git a/Core/PythonAPI/src/FormFactorLorentz.pypp.cpp b/Core/PythonAPI/src/FormFactorLorentz.pypp.cpp index 500f7ff1defc701a86a7a29f03a2d033333006f7..0f2cc8e1c7f0d2f8bcf49d732d7f6bc06ce70069 100644 --- a/Core/PythonAPI/src/FormFactorLorentz.pypp.cpp +++ b/Core/PythonAPI/src/FormFactorLorentz.pypp.cpp @@ -35,11 +35,11 @@ struct FormFactorLorentz_wrapper : FormFactorLorentz, bp::wrapper< FormFactorLor virtual ::FormFactorLorentz * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->FormFactorLorentz::clone( ); - } } + ::FormFactorLorentz * default_clone( ) const { return FormFactorLorentz::clone( ); } @@ -47,11 +47,11 @@ struct FormFactorLorentz_wrapper : FormFactorLorentz, bp::wrapper< FormFactorLor virtual ::complex_t evaluate_for_q( ::cvector_t const & q ) const { if( bp::override func_evaluate_for_q = this->get_override( "evaluate_for_q" ) ) return func_evaluate_for_q( boost::ref(q) ); - else{ + else return this->FormFactorLorentz::evaluate_for_q( boost::ref(q) ); - } } + ::complex_t default_evaluate_for_q( ::cvector_t const & q ) const { return FormFactorLorentz::evaluate_for_q( boost::ref(q) ); } @@ -59,11 +59,11 @@ struct FormFactorLorentz_wrapper : FormFactorLorentz, bp::wrapper< FormFactorLor virtual int getNumberOfStochasticParameters( ) const { if( bp::override func_getNumberOfStochasticParameters = this->get_override( "getNumberOfStochasticParameters" ) ) return func_getNumberOfStochasticParameters( ); - else{ + else return this->FormFactorLorentz::getNumberOfStochasticParameters( ); - } } + int default_getNumberOfStochasticParameters( ) const { return FormFactorLorentz::getNumberOfStochasticParameters( ); } @@ -71,11 +71,11 @@ struct FormFactorLorentz_wrapper : FormFactorLorentz, bp::wrapper< FormFactorLor virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -83,11 +83,11 @@ struct FormFactorLorentz_wrapper : FormFactorLorentz, bp::wrapper< FormFactorLor virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -95,35 +95,35 @@ struct FormFactorLorentz_wrapper : FormFactorLorentz, bp::wrapper< FormFactorLor virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } - virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { if( bp::override func_createDistributedFormFactors = this->get_override( "createDistributedFormFactors" ) ) func_createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - else{ + else this->IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - } } - void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + + void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); } virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -131,11 +131,11 @@ struct FormFactorLorentz_wrapper : FormFactorLorentz, bp::wrapper< FormFactorLor virtual ::complex_t evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - else{ + else return this->IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - } } + ::complex_t default_evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { return IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); } @@ -143,11 +143,11 @@ struct FormFactorLorentz_wrapper : FormFactorLorentz, bp::wrapper< FormFactorLor virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -155,11 +155,11 @@ struct FormFactorLorentz_wrapper : FormFactorLorentz, bp::wrapper< FormFactorLor virtual double getHeight( ) const { if( bp::override func_getHeight = this->get_override( "getHeight" ) ) return func_getHeight( ); - else{ + else return this->IFormFactor::getHeight( ); - } } + double default_getHeight( ) const { return IFormFactor::getHeight( ); } @@ -167,11 +167,11 @@ struct FormFactorLorentz_wrapper : FormFactorLorentz, bp::wrapper< FormFactorLor virtual double getRadius( ) const { if( bp::override func_getRadius = this->get_override( "getRadius" ) ) return func_getRadius( ); - else{ + else return this->IFormFactor::getRadius( ); - } } + double default_getRadius( ) const { return IFormFactor::getRadius( ); } @@ -179,11 +179,11 @@ struct FormFactorLorentz_wrapper : FormFactorLorentz, bp::wrapper< FormFactorLor virtual double getVolume( ) const { if( bp::override func_getVolume = this->get_override( "getVolume" ) ) return func_getVolume( ); - else{ + else return this->IFormFactorBorn::getVolume( ); - } } + double default_getVolume( ) const { return IFormFactorBorn::getVolume( ); } @@ -191,11 +191,11 @@ struct FormFactorLorentz_wrapper : FormFactorLorentz, bp::wrapper< FormFactorLor virtual bool isDistributedFormFactor( ) const { if( bp::override func_isDistributedFormFactor = this->get_override( "isDistributedFormFactor" ) ) return func_isDistributedFormFactor( ); - else{ + else return this->IFormFactor::isDistributedFormFactor( ); - } } + bool default_isDistributedFormFactor( ) const { return IFormFactor::isDistributedFormFactor( ); } @@ -203,11 +203,11 @@ struct FormFactorLorentz_wrapper : FormFactorLorentz, bp::wrapper< FormFactorLor virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -234,11 +234,11 @@ struct FormFactorLorentz_wrapper : FormFactorLorentz, bp::wrapper< FormFactorLor virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -246,11 +246,11 @@ struct FormFactorLorentz_wrapper : FormFactorLorentz, bp::wrapper< FormFactorLor virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -258,11 +258,11 @@ struct FormFactorLorentz_wrapper : FormFactorLorentz, bp::wrapper< FormFactorLor virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -347,8 +347,8 @@ void register_FormFactorLorentz_class(){ } { //::IFormFactor::createDistributedFormFactors - typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; - typedef void ( FormFactorLorentz_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; + typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; + typedef void ( FormFactorLorentz_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; FormFactorLorentz_exposer.def( "createDistributedFormFactors" diff --git a/Core/PythonAPI/src/FormFactorParallelepiped.pypp.cpp b/Core/PythonAPI/src/FormFactorParallelepiped.pypp.cpp index 9e678b35a8bbcbf24b452fef5c609f0249315af1..f276ca868f631e013593e834a933082852aa4937 100644 --- a/Core/PythonAPI/src/FormFactorParallelepiped.pypp.cpp +++ b/Core/PythonAPI/src/FormFactorParallelepiped.pypp.cpp @@ -28,11 +28,11 @@ struct FormFactorParallelepiped_wrapper : FormFactorParallelepiped, bp::wrapper< virtual ::FormFactorParallelepiped * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->FormFactorParallelepiped::clone( ); - } } + ::FormFactorParallelepiped * default_clone( ) const { return FormFactorParallelepiped::clone( ); } @@ -40,11 +40,11 @@ struct FormFactorParallelepiped_wrapper : FormFactorParallelepiped, bp::wrapper< virtual ::complex_t evaluate_for_q( ::cvector_t const & q ) const { if( bp::override func_evaluate_for_q = this->get_override( "evaluate_for_q" ) ) return func_evaluate_for_q( boost::ref(q) ); - else{ + else return this->FormFactorParallelepiped::evaluate_for_q( boost::ref(q) ); - } } + ::complex_t default_evaluate_for_q( ::cvector_t const & q ) const { return FormFactorParallelepiped::evaluate_for_q( boost::ref(q) ); } @@ -52,11 +52,11 @@ struct FormFactorParallelepiped_wrapper : FormFactorParallelepiped, bp::wrapper< virtual double getHeight( ) const { if( bp::override func_getHeight = this->get_override( "getHeight" ) ) return func_getHeight( ); - else{ + else return this->FormFactorParallelepiped::getHeight( ); - } } + double default_getHeight( ) const { return FormFactorParallelepiped::getHeight( ); } @@ -64,11 +64,11 @@ struct FormFactorParallelepiped_wrapper : FormFactorParallelepiped, bp::wrapper< virtual int getNumberOfStochasticParameters( ) const { if( bp::override func_getNumberOfStochasticParameters = this->get_override( "getNumberOfStochasticParameters" ) ) return func_getNumberOfStochasticParameters( ); - else{ + else return this->FormFactorParallelepiped::getNumberOfStochasticParameters( ); - } } + int default_getNumberOfStochasticParameters( ) const { return FormFactorParallelepiped::getNumberOfStochasticParameters( ); } @@ -76,11 +76,11 @@ struct FormFactorParallelepiped_wrapper : FormFactorParallelepiped, bp::wrapper< virtual double getRadius( ) const { if( bp::override func_getRadius = this->get_override( "getRadius" ) ) return func_getRadius( ); - else{ + else return this->FormFactorParallelepiped::getRadius( ); - } } + double default_getRadius( ) const { return FormFactorParallelepiped::getRadius( ); } @@ -88,11 +88,11 @@ struct FormFactorParallelepiped_wrapper : FormFactorParallelepiped, bp::wrapper< virtual double getVolume( ) const { if( bp::override func_getVolume = this->get_override( "getVolume" ) ) return func_getVolume( ); - else{ + else return this->FormFactorParallelepiped::getVolume( ); - } } + double default_getVolume( ) const { return FormFactorParallelepiped::getVolume( ); } @@ -100,11 +100,11 @@ struct FormFactorParallelepiped_wrapper : FormFactorParallelepiped, bp::wrapper< virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -112,11 +112,11 @@ struct FormFactorParallelepiped_wrapper : FormFactorParallelepiped, bp::wrapper< virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -124,35 +124,35 @@ struct FormFactorParallelepiped_wrapper : FormFactorParallelepiped, bp::wrapper< virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } - virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { if( bp::override func_createDistributedFormFactors = this->get_override( "createDistributedFormFactors" ) ) func_createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - else{ + else this->IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - } } - void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + + void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); } virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -160,11 +160,11 @@ struct FormFactorParallelepiped_wrapper : FormFactorParallelepiped, bp::wrapper< virtual ::complex_t evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - else{ + else return this->IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - } } + ::complex_t default_evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { return IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); } @@ -172,11 +172,11 @@ struct FormFactorParallelepiped_wrapper : FormFactorParallelepiped, bp::wrapper< virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -184,11 +184,11 @@ struct FormFactorParallelepiped_wrapper : FormFactorParallelepiped, bp::wrapper< virtual bool isDistributedFormFactor( ) const { if( bp::override func_isDistributedFormFactor = this->get_override( "isDistributedFormFactor" ) ) return func_isDistributedFormFactor( ); - else{ + else return this->IFormFactor::isDistributedFormFactor( ); - } } + bool default_isDistributedFormFactor( ) const { return IFormFactor::isDistributedFormFactor( ); } @@ -196,11 +196,11 @@ struct FormFactorParallelepiped_wrapper : FormFactorParallelepiped, bp::wrapper< virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -227,11 +227,11 @@ struct FormFactorParallelepiped_wrapper : FormFactorParallelepiped, bp::wrapper< virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -239,11 +239,11 @@ struct FormFactorParallelepiped_wrapper : FormFactorParallelepiped, bp::wrapper< virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -251,11 +251,11 @@ struct FormFactorParallelepiped_wrapper : FormFactorParallelepiped, bp::wrapper< virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -372,8 +372,8 @@ void register_FormFactorParallelepiped_class(){ } { //::IFormFactor::createDistributedFormFactors - typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; - typedef void ( FormFactorParallelepiped_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; + typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; + typedef void ( FormFactorParallelepiped_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; FormFactorParallelepiped_exposer.def( "createDistributedFormFactors" diff --git a/Core/PythonAPI/src/FormFactorPrism3.pypp.cpp b/Core/PythonAPI/src/FormFactorPrism3.pypp.cpp index 55f9c6566bdac70c8a327cbfa16de41d2712770b..607d57b5899160a6562d41f2dfda0c9324d1c50e 100644 --- a/Core/PythonAPI/src/FormFactorPrism3.pypp.cpp +++ b/Core/PythonAPI/src/FormFactorPrism3.pypp.cpp @@ -28,11 +28,11 @@ struct FormFactorPrism3_wrapper : FormFactorPrism3, bp::wrapper< FormFactorPrism virtual ::FormFactorPrism3 * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->FormFactorPrism3::clone( ); - } } + ::FormFactorPrism3 * default_clone( ) const { return FormFactorPrism3::clone( ); } @@ -40,11 +40,11 @@ struct FormFactorPrism3_wrapper : FormFactorPrism3, bp::wrapper< FormFactorPrism virtual ::complex_t evaluate_for_q( ::cvector_t const & q ) const { if( bp::override func_evaluate_for_q = this->get_override( "evaluate_for_q" ) ) return func_evaluate_for_q( boost::ref(q) ); - else{ + else return this->FormFactorPrism3::evaluate_for_q( boost::ref(q) ); - } } + ::complex_t default_evaluate_for_q( ::cvector_t const & q ) const { return FormFactorPrism3::evaluate_for_q( boost::ref(q) ); } @@ -52,11 +52,11 @@ struct FormFactorPrism3_wrapper : FormFactorPrism3, bp::wrapper< FormFactorPrism virtual double getHalfSide( ) const { if( bp::override func_getHalfSide = this->get_override( "getHalfSide" ) ) return func_getHalfSide( ); - else{ + else return this->FormFactorPrism3::getHalfSide( ); - } } + double default_getHalfSide( ) const { return FormFactorPrism3::getHalfSide( ); } @@ -64,11 +64,11 @@ struct FormFactorPrism3_wrapper : FormFactorPrism3, bp::wrapper< FormFactorPrism virtual double getHeight( ) const { if( bp::override func_getHeight = this->get_override( "getHeight" ) ) return func_getHeight( ); - else{ + else return this->FormFactorPrism3::getHeight( ); - } } + double default_getHeight( ) const { return FormFactorPrism3::getHeight( ); } @@ -76,11 +76,11 @@ struct FormFactorPrism3_wrapper : FormFactorPrism3, bp::wrapper< FormFactorPrism virtual int getNumberOfStochasticParameters( ) const { if( bp::override func_getNumberOfStochasticParameters = this->get_override( "getNumberOfStochasticParameters" ) ) return func_getNumberOfStochasticParameters( ); - else{ + else return this->FormFactorPrism3::getNumberOfStochasticParameters( ); - } } + int default_getNumberOfStochasticParameters( ) const { return FormFactorPrism3::getNumberOfStochasticParameters( ); } @@ -88,11 +88,11 @@ struct FormFactorPrism3_wrapper : FormFactorPrism3, bp::wrapper< FormFactorPrism virtual void setHalfSide( double half_side ) { if( bp::override func_setHalfSide = this->get_override( "setHalfSide" ) ) func_setHalfSide( half_side ); - else{ + else this->FormFactorPrism3::setHalfSide( half_side ); - } } + void default_setHalfSide( double half_side ) { FormFactorPrism3::setHalfSide( half_side ); } @@ -100,11 +100,11 @@ struct FormFactorPrism3_wrapper : FormFactorPrism3, bp::wrapper< FormFactorPrism virtual void setHeight( double height ) { if( bp::override func_setHeight = this->get_override( "setHeight" ) ) func_setHeight( height ); - else{ + else this->FormFactorPrism3::setHeight( height ); - } } + void default_setHeight( double height ) { FormFactorPrism3::setHeight( height ); } @@ -112,11 +112,11 @@ struct FormFactorPrism3_wrapper : FormFactorPrism3, bp::wrapper< FormFactorPrism virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -124,11 +124,11 @@ struct FormFactorPrism3_wrapper : FormFactorPrism3, bp::wrapper< FormFactorPrism virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -136,35 +136,35 @@ struct FormFactorPrism3_wrapper : FormFactorPrism3, bp::wrapper< FormFactorPrism virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } - virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { if( bp::override func_createDistributedFormFactors = this->get_override( "createDistributedFormFactors" ) ) func_createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - else{ + else this->IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - } } - void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + + void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); } virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -172,11 +172,11 @@ struct FormFactorPrism3_wrapper : FormFactorPrism3, bp::wrapper< FormFactorPrism virtual ::complex_t evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - else{ + else return this->IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - } } + ::complex_t default_evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { return IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); } @@ -184,11 +184,11 @@ struct FormFactorPrism3_wrapper : FormFactorPrism3, bp::wrapper< FormFactorPrism virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -196,11 +196,11 @@ struct FormFactorPrism3_wrapper : FormFactorPrism3, bp::wrapper< FormFactorPrism virtual double getRadius( ) const { if( bp::override func_getRadius = this->get_override( "getRadius" ) ) return func_getRadius( ); - else{ + else return this->IFormFactor::getRadius( ); - } } + double default_getRadius( ) const { return IFormFactor::getRadius( ); } @@ -208,11 +208,11 @@ struct FormFactorPrism3_wrapper : FormFactorPrism3, bp::wrapper< FormFactorPrism virtual double getVolume( ) const { if( bp::override func_getVolume = this->get_override( "getVolume" ) ) return func_getVolume( ); - else{ + else return this->IFormFactorBorn::getVolume( ); - } } + double default_getVolume( ) const { return IFormFactorBorn::getVolume( ); } @@ -220,11 +220,11 @@ struct FormFactorPrism3_wrapper : FormFactorPrism3, bp::wrapper< FormFactorPrism virtual bool isDistributedFormFactor( ) const { if( bp::override func_isDistributedFormFactor = this->get_override( "isDistributedFormFactor" ) ) return func_isDistributedFormFactor( ); - else{ + else return this->IFormFactor::isDistributedFormFactor( ); - } } + bool default_isDistributedFormFactor( ) const { return IFormFactor::isDistributedFormFactor( ); } @@ -232,11 +232,11 @@ struct FormFactorPrism3_wrapper : FormFactorPrism3, bp::wrapper< FormFactorPrism virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -263,11 +263,11 @@ struct FormFactorPrism3_wrapper : FormFactorPrism3, bp::wrapper< FormFactorPrism virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -275,11 +275,11 @@ struct FormFactorPrism3_wrapper : FormFactorPrism3, bp::wrapper< FormFactorPrism virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -287,11 +287,11 @@ struct FormFactorPrism3_wrapper : FormFactorPrism3, bp::wrapper< FormFactorPrism virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -421,8 +421,8 @@ void register_FormFactorPrism3_class(){ } { //::IFormFactor::createDistributedFormFactors - typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; - typedef void ( FormFactorPrism3_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; + typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; + typedef void ( FormFactorPrism3_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; FormFactorPrism3_exposer.def( "createDistributedFormFactors" diff --git a/Core/PythonAPI/src/FormFactorPrism6.pypp.cpp b/Core/PythonAPI/src/FormFactorPrism6.pypp.cpp index d1aa6cc01425342b51aaf5ca58e6f5c8d95dd46f..c3a6cecfe0ef852924d25fec425212773e2b9a70 100644 --- a/Core/PythonAPI/src/FormFactorPrism6.pypp.cpp +++ b/Core/PythonAPI/src/FormFactorPrism6.pypp.cpp @@ -28,11 +28,11 @@ struct FormFactorPrism6_wrapper : FormFactorPrism6, bp::wrapper< FormFactorPrism virtual ::FormFactorPrism6 * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->FormFactorPrism6::clone( ); - } } + ::FormFactorPrism6 * default_clone( ) const { return FormFactorPrism6::clone( ); } @@ -40,11 +40,11 @@ struct FormFactorPrism6_wrapper : FormFactorPrism6, bp::wrapper< FormFactorPrism virtual ::complex_t evaluate_for_q( ::cvector_t const & q ) const { if( bp::override func_evaluate_for_q = this->get_override( "evaluate_for_q" ) ) return func_evaluate_for_q( boost::ref(q) ); - else{ + else return this->FormFactorPrism6::evaluate_for_q( boost::ref(q) ); - } } + ::complex_t default_evaluate_for_q( ::cvector_t const & q ) const { return FormFactorPrism6::evaluate_for_q( boost::ref(q) ); } @@ -52,11 +52,11 @@ struct FormFactorPrism6_wrapper : FormFactorPrism6, bp::wrapper< FormFactorPrism virtual double getHeight( ) const { if( bp::override func_getHeight = this->get_override( "getHeight" ) ) return func_getHeight( ); - else{ + else return this->FormFactorPrism6::getHeight( ); - } } + double default_getHeight( ) const { return FormFactorPrism6::getHeight( ); } @@ -64,11 +64,11 @@ struct FormFactorPrism6_wrapper : FormFactorPrism6, bp::wrapper< FormFactorPrism virtual int getNumberOfStochasticParameters( ) const { if( bp::override func_getNumberOfStochasticParameters = this->get_override( "getNumberOfStochasticParameters" ) ) return func_getNumberOfStochasticParameters( ); - else{ + else return this->FormFactorPrism6::getNumberOfStochasticParameters( ); - } } + int default_getNumberOfStochasticParameters( ) const { return FormFactorPrism6::getNumberOfStochasticParameters( ); } @@ -76,11 +76,11 @@ struct FormFactorPrism6_wrapper : FormFactorPrism6, bp::wrapper< FormFactorPrism virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -88,11 +88,11 @@ struct FormFactorPrism6_wrapper : FormFactorPrism6, bp::wrapper< FormFactorPrism virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -100,35 +100,35 @@ struct FormFactorPrism6_wrapper : FormFactorPrism6, bp::wrapper< FormFactorPrism virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } - virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { if( bp::override func_createDistributedFormFactors = this->get_override( "createDistributedFormFactors" ) ) func_createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - else{ + else this->IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - } } - void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + + void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); } virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -136,11 +136,11 @@ struct FormFactorPrism6_wrapper : FormFactorPrism6, bp::wrapper< FormFactorPrism virtual ::complex_t evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - else{ + else return this->IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - } } + ::complex_t default_evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { return IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); } @@ -148,11 +148,11 @@ struct FormFactorPrism6_wrapper : FormFactorPrism6, bp::wrapper< FormFactorPrism virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -160,11 +160,11 @@ struct FormFactorPrism6_wrapper : FormFactorPrism6, bp::wrapper< FormFactorPrism virtual double getRadius( ) const { if( bp::override func_getRadius = this->get_override( "getRadius" ) ) return func_getRadius( ); - else{ + else return this->IFormFactor::getRadius( ); - } } + double default_getRadius( ) const { return IFormFactor::getRadius( ); } @@ -172,11 +172,11 @@ struct FormFactorPrism6_wrapper : FormFactorPrism6, bp::wrapper< FormFactorPrism virtual double getVolume( ) const { if( bp::override func_getVolume = this->get_override( "getVolume" ) ) return func_getVolume( ); - else{ + else return this->IFormFactorBorn::getVolume( ); - } } + double default_getVolume( ) const { return IFormFactorBorn::getVolume( ); } @@ -184,11 +184,11 @@ struct FormFactorPrism6_wrapper : FormFactorPrism6, bp::wrapper< FormFactorPrism virtual bool isDistributedFormFactor( ) const { if( bp::override func_isDistributedFormFactor = this->get_override( "isDistributedFormFactor" ) ) return func_isDistributedFormFactor( ); - else{ + else return this->IFormFactor::isDistributedFormFactor( ); - } } + bool default_isDistributedFormFactor( ) const { return IFormFactor::isDistributedFormFactor( ); } @@ -196,11 +196,11 @@ struct FormFactorPrism6_wrapper : FormFactorPrism6, bp::wrapper< FormFactorPrism virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -227,11 +227,11 @@ struct FormFactorPrism6_wrapper : FormFactorPrism6, bp::wrapper< FormFactorPrism virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -239,11 +239,11 @@ struct FormFactorPrism6_wrapper : FormFactorPrism6, bp::wrapper< FormFactorPrism virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -251,11 +251,11 @@ struct FormFactorPrism6_wrapper : FormFactorPrism6, bp::wrapper< FormFactorPrism virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -350,8 +350,8 @@ void register_FormFactorPrism6_class(){ } { //::IFormFactor::createDistributedFormFactors - typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; - typedef void ( FormFactorPrism6_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; + typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; + typedef void ( FormFactorPrism6_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; FormFactorPrism6_exposer.def( "createDistributedFormFactors" diff --git a/Core/PythonAPI/src/FormFactorPyramid.pypp.cpp b/Core/PythonAPI/src/FormFactorPyramid.pypp.cpp index b133da68bf220460a52057d02f06c2f60f9a61f8..01dbdcc07a91a81e0d160bf335dbb5549a56e5b1 100644 --- a/Core/PythonAPI/src/FormFactorPyramid.pypp.cpp +++ b/Core/PythonAPI/src/FormFactorPyramid.pypp.cpp @@ -28,11 +28,11 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual ::FormFactorPyramid * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->FormFactorPyramid::clone( ); - } } + ::FormFactorPyramid * default_clone( ) const { return FormFactorPyramid::clone( ); } @@ -40,11 +40,11 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual ::complex_t evaluate_for_q( ::cvector_t const & q ) const { if( bp::override func_evaluate_for_q = this->get_override( "evaluate_for_q" ) ) return func_evaluate_for_q( boost::ref(q) ); - else{ + else return this->FormFactorPyramid::evaluate_for_q( boost::ref(q) ); - } } + ::complex_t default_evaluate_for_q( ::cvector_t const & q ) const { return FormFactorPyramid::evaluate_for_q( boost::ref(q) ); } @@ -52,11 +52,11 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual double getAlpha( ) const { if( bp::override func_getAlpha = this->get_override( "getAlpha" ) ) return func_getAlpha( ); - else{ + else return this->FormFactorPyramid::getAlpha( ); - } } + double default_getAlpha( ) const { return FormFactorPyramid::getAlpha( ); } @@ -64,11 +64,11 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual double getHalfSide( ) const { if( bp::override func_getHalfSide = this->get_override( "getHalfSide" ) ) return func_getHalfSide( ); - else{ + else return this->FormFactorPyramid::getHalfSide( ); - } } + double default_getHalfSide( ) const { return FormFactorPyramid::getHalfSide( ); } @@ -76,11 +76,11 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual double getHeight( ) const { if( bp::override func_getHeight = this->get_override( "getHeight" ) ) return func_getHeight( ); - else{ + else return this->FormFactorPyramid::getHeight( ); - } } + double default_getHeight( ) const { return FormFactorPyramid::getHeight( ); } @@ -88,11 +88,11 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual int getNumberOfStochasticParameters( ) const { if( bp::override func_getNumberOfStochasticParameters = this->get_override( "getNumberOfStochasticParameters" ) ) return func_getNumberOfStochasticParameters( ); - else{ + else return this->FormFactorPyramid::getNumberOfStochasticParameters( ); - } } + int default_getNumberOfStochasticParameters( ) const { return FormFactorPyramid::getNumberOfStochasticParameters( ); } @@ -100,11 +100,11 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual void setAlpha( double alpha ) { if( bp::override func_setAlpha = this->get_override( "setAlpha" ) ) func_setAlpha( alpha ); - else{ + else this->FormFactorPyramid::setAlpha( alpha ); - } } + void default_setAlpha( double alpha ) { FormFactorPyramid::setAlpha( alpha ); } @@ -112,11 +112,11 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual void setHalfSide( double half_side ) { if( bp::override func_setHalfSide = this->get_override( "setHalfSide" ) ) func_setHalfSide( half_side ); - else{ + else this->FormFactorPyramid::setHalfSide( half_side ); - } } + void default_setHalfSide( double half_side ) { FormFactorPyramid::setHalfSide( half_side ); } @@ -124,11 +124,11 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual void setHeight( double height ) { if( bp::override func_setHeight = this->get_override( "setHeight" ) ) func_setHeight( height ); - else{ + else this->FormFactorPyramid::setHeight( height ); - } } + void default_setHeight( double height ) { FormFactorPyramid::setHeight( height ); } @@ -136,11 +136,11 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -148,11 +148,11 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -160,35 +160,35 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } - virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { if( bp::override func_createDistributedFormFactors = this->get_override( "createDistributedFormFactors" ) ) func_createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - else{ + else this->IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - } } - void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + + void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); } virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -196,11 +196,11 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual ::complex_t evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - else{ + else return this->IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - } } + ::complex_t default_evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { return IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); } @@ -208,11 +208,11 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -220,11 +220,11 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual double getRadius( ) const { if( bp::override func_getRadius = this->get_override( "getRadius" ) ) return func_getRadius( ); - else{ + else return this->IFormFactor::getRadius( ); - } } + double default_getRadius( ) const { return IFormFactor::getRadius( ); } @@ -232,11 +232,11 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual double getVolume( ) const { if( bp::override func_getVolume = this->get_override( "getVolume" ) ) return func_getVolume( ); - else{ + else return this->IFormFactorBorn::getVolume( ); - } } + double default_getVolume( ) const { return IFormFactorBorn::getVolume( ); } @@ -244,11 +244,11 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual bool isDistributedFormFactor( ) const { if( bp::override func_isDistributedFormFactor = this->get_override( "isDistributedFormFactor" ) ) return func_isDistributedFormFactor( ); - else{ + else return this->IFormFactor::isDistributedFormFactor( ); - } } + bool default_isDistributedFormFactor( ) const { return IFormFactor::isDistributedFormFactor( ); } @@ -256,11 +256,11 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -287,11 +287,11 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -299,11 +299,11 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -311,11 +311,11 @@ struct FormFactorPyramid_wrapper : FormFactorPyramid, bp::wrapper< FormFactorPyr virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -468,8 +468,8 @@ void register_FormFactorPyramid_class(){ } { //::IFormFactor::createDistributedFormFactors - typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; - typedef void ( FormFactorPyramid_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; + typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; + typedef void ( FormFactorPyramid_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; FormFactorPyramid_exposer.def( "createDistributedFormFactors" diff --git a/Core/PythonAPI/src/FormFactorSphere.pypp.cpp b/Core/PythonAPI/src/FormFactorSphere.pypp.cpp index a20a1890e5f33d9fb8bc10cfb94809451226811d..e2bce4183cdafc48ed1ce57530086204e876c44e 100644 --- a/Core/PythonAPI/src/FormFactorSphere.pypp.cpp +++ b/Core/PythonAPI/src/FormFactorSphere.pypp.cpp @@ -28,11 +28,11 @@ struct FormFactorSphere_wrapper : FormFactorSphere, bp::wrapper< FormFactorSpher virtual ::FormFactorSphere * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->FormFactorSphere::clone( ); - } } + ::FormFactorSphere * default_clone( ) const { return FormFactorSphere::clone( ); } @@ -40,11 +40,11 @@ struct FormFactorSphere_wrapper : FormFactorSphere, bp::wrapper< FormFactorSpher virtual double getHeight( ) const { if( bp::override func_getHeight = this->get_override( "getHeight" ) ) return func_getHeight( ); - else{ + else return this->FormFactorSphere::getHeight( ); - } } + double default_getHeight( ) const { return FormFactorSphere::getHeight( ); } @@ -52,11 +52,11 @@ struct FormFactorSphere_wrapper : FormFactorSphere, bp::wrapper< FormFactorSpher virtual int getNumberOfStochasticParameters( ) const { if( bp::override func_getNumberOfStochasticParameters = this->get_override( "getNumberOfStochasticParameters" ) ) return func_getNumberOfStochasticParameters( ); - else{ + else return this->FormFactorSphere::getNumberOfStochasticParameters( ); - } } + int default_getNumberOfStochasticParameters( ) const { return FormFactorSphere::getNumberOfStochasticParameters( ); } @@ -64,11 +64,11 @@ struct FormFactorSphere_wrapper : FormFactorSphere, bp::wrapper< FormFactorSpher virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -76,11 +76,11 @@ struct FormFactorSphere_wrapper : FormFactorSphere, bp::wrapper< FormFactorSpher virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -88,35 +88,35 @@ struct FormFactorSphere_wrapper : FormFactorSphere, bp::wrapper< FormFactorSpher virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } - virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { if( bp::override func_createDistributedFormFactors = this->get_override( "createDistributedFormFactors" ) ) func_createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - else{ + else this->IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - } } - void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + + void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); } virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -124,11 +124,11 @@ struct FormFactorSphere_wrapper : FormFactorSphere, bp::wrapper< FormFactorSpher virtual ::complex_t evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - else{ + else return this->IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - } } + ::complex_t default_evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { return IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); } @@ -136,11 +136,11 @@ struct FormFactorSphere_wrapper : FormFactorSphere, bp::wrapper< FormFactorSpher virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -148,11 +148,11 @@ struct FormFactorSphere_wrapper : FormFactorSphere, bp::wrapper< FormFactorSpher virtual double getRadius( ) const { if( bp::override func_getRadius = this->get_override( "getRadius" ) ) return func_getRadius( ); - else{ + else return this->IFormFactor::getRadius( ); - } } + double default_getRadius( ) const { return IFormFactor::getRadius( ); } @@ -160,11 +160,11 @@ struct FormFactorSphere_wrapper : FormFactorSphere, bp::wrapper< FormFactorSpher virtual double getVolume( ) const { if( bp::override func_getVolume = this->get_override( "getVolume" ) ) return func_getVolume( ); - else{ + else return this->IFormFactorBorn::getVolume( ); - } } + double default_getVolume( ) const { return IFormFactorBorn::getVolume( ); } @@ -172,11 +172,11 @@ struct FormFactorSphere_wrapper : FormFactorSphere, bp::wrapper< FormFactorSpher virtual bool isDistributedFormFactor( ) const { if( bp::override func_isDistributedFormFactor = this->get_override( "isDistributedFormFactor" ) ) return func_isDistributedFormFactor( ); - else{ + else return this->IFormFactor::isDistributedFormFactor( ); - } } + bool default_isDistributedFormFactor( ) const { return IFormFactor::isDistributedFormFactor( ); } @@ -184,11 +184,11 @@ struct FormFactorSphere_wrapper : FormFactorSphere, bp::wrapper< FormFactorSpher virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -215,11 +215,11 @@ struct FormFactorSphere_wrapper : FormFactorSphere, bp::wrapper< FormFactorSpher virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -227,11 +227,11 @@ struct FormFactorSphere_wrapper : FormFactorSphere, bp::wrapper< FormFactorSpher virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -239,11 +239,11 @@ struct FormFactorSphere_wrapper : FormFactorSphere, bp::wrapper< FormFactorSpher virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -326,8 +326,8 @@ void register_FormFactorSphere_class(){ } { //::IFormFactor::createDistributedFormFactors - typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; - typedef void ( FormFactorSphere_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; + typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; + typedef void ( FormFactorSphere_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; FormFactorSphere_exposer.def( "createDistributedFormFactors" diff --git a/Core/PythonAPI/src/FormFactorSphereGaussianRadius.pypp.cpp b/Core/PythonAPI/src/FormFactorSphereGaussianRadius.pypp.cpp index 5aadd71976382e2c90e57f937aae93f78a23a10b..773a20fc76d52208fe47ff6166569f8d66f77832 100644 --- a/Core/PythonAPI/src/FormFactorSphereGaussianRadius.pypp.cpp +++ b/Core/PythonAPI/src/FormFactorSphereGaussianRadius.pypp.cpp @@ -28,35 +28,35 @@ struct FormFactorSphereGaussianRadius_wrapper : FormFactorSphereGaussianRadius, virtual ::FormFactorSphereGaussianRadius * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->FormFactorSphereGaussianRadius::clone( ); - } } + ::FormFactorSphereGaussianRadius * default_clone( ) const { return FormFactorSphereGaussianRadius::clone( ); } - virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { if( bp::override func_createDistributedFormFactors = this->get_override( "createDistributedFormFactors" ) ) func_createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - else{ + else this->FormFactorSphereGaussianRadius::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - } } - void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + + void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { FormFactorSphereGaussianRadius::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); } virtual ::complex_t evaluate_for_q( ::cvector_t const & q ) const { if( bp::override func_evaluate_for_q = this->get_override( "evaluate_for_q" ) ) return func_evaluate_for_q( boost::ref(q) ); - else{ + else return this->FormFactorSphereGaussianRadius::evaluate_for_q( boost::ref(q) ); - } } + ::complex_t default_evaluate_for_q( ::cvector_t const & q ) const { return FormFactorSphereGaussianRadius::evaluate_for_q( boost::ref(q) ); } @@ -64,11 +64,11 @@ struct FormFactorSphereGaussianRadius_wrapper : FormFactorSphereGaussianRadius, virtual double getHeight( ) const { if( bp::override func_getHeight = this->get_override( "getHeight" ) ) return func_getHeight( ); - else{ + else return this->FormFactorSphereGaussianRadius::getHeight( ); - } } + double default_getHeight( ) const { return FormFactorSphereGaussianRadius::getHeight( ); } @@ -76,11 +76,11 @@ struct FormFactorSphereGaussianRadius_wrapper : FormFactorSphereGaussianRadius, virtual int getNumberOfStochasticParameters( ) const { if( bp::override func_getNumberOfStochasticParameters = this->get_override( "getNumberOfStochasticParameters" ) ) return func_getNumberOfStochasticParameters( ); - else{ + else return this->FormFactorSphereGaussianRadius::getNumberOfStochasticParameters( ); - } } + int default_getNumberOfStochasticParameters( ) const { return FormFactorSphereGaussianRadius::getNumberOfStochasticParameters( ); } @@ -88,11 +88,11 @@ struct FormFactorSphereGaussianRadius_wrapper : FormFactorSphereGaussianRadius, virtual bool isDistributedFormFactor( ) const { if( bp::override func_isDistributedFormFactor = this->get_override( "isDistributedFormFactor" ) ) return func_isDistributedFormFactor( ); - else{ + else return this->FormFactorSphereGaussianRadius::isDistributedFormFactor( ); - } } + bool default_isDistributedFormFactor( ) const { return FormFactorSphereGaussianRadius::isDistributedFormFactor( ); } @@ -100,11 +100,11 @@ struct FormFactorSphereGaussianRadius_wrapper : FormFactorSphereGaussianRadius, virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -112,11 +112,11 @@ struct FormFactorSphereGaussianRadius_wrapper : FormFactorSphereGaussianRadius, virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -124,11 +124,11 @@ struct FormFactorSphereGaussianRadius_wrapper : FormFactorSphereGaussianRadius, virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } @@ -136,11 +136,11 @@ struct FormFactorSphereGaussianRadius_wrapper : FormFactorSphereGaussianRadius, virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -148,11 +148,11 @@ struct FormFactorSphereGaussianRadius_wrapper : FormFactorSphereGaussianRadius, virtual ::complex_t evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - else{ + else return this->IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - } } + ::complex_t default_evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { return IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); } @@ -160,11 +160,11 @@ struct FormFactorSphereGaussianRadius_wrapper : FormFactorSphereGaussianRadius, virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -172,11 +172,11 @@ struct FormFactorSphereGaussianRadius_wrapper : FormFactorSphereGaussianRadius, virtual double getRadius( ) const { if( bp::override func_getRadius = this->get_override( "getRadius" ) ) return func_getRadius( ); - else{ + else return this->IFormFactor::getRadius( ); - } } + double default_getRadius( ) const { return IFormFactor::getRadius( ); } @@ -184,11 +184,11 @@ struct FormFactorSphereGaussianRadius_wrapper : FormFactorSphereGaussianRadius, virtual double getVolume( ) const { if( bp::override func_getVolume = this->get_override( "getVolume" ) ) return func_getVolume( ); - else{ + else return this->IFormFactorBorn::getVolume( ); - } } + double default_getVolume( ) const { return IFormFactorBorn::getVolume( ); } @@ -196,11 +196,11 @@ struct FormFactorSphereGaussianRadius_wrapper : FormFactorSphereGaussianRadius, virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -227,11 +227,11 @@ struct FormFactorSphereGaussianRadius_wrapper : FormFactorSphereGaussianRadius, virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -239,11 +239,11 @@ struct FormFactorSphereGaussianRadius_wrapper : FormFactorSphereGaussianRadius, virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -251,11 +251,11 @@ struct FormFactorSphereGaussianRadius_wrapper : FormFactorSphereGaussianRadius, virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -282,8 +282,8 @@ void register_FormFactorSphereGaussianRadius_class(){ } { //::FormFactorSphereGaussianRadius::createDistributedFormFactors - typedef void ( ::FormFactorSphereGaussianRadius::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; - typedef void ( FormFactorSphereGaussianRadius_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; + typedef void ( ::FormFactorSphereGaussianRadius::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; + typedef void ( FormFactorSphereGaussianRadius_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; FormFactorSphereGaussianRadius_exposer.def( "createDistributedFormFactors" diff --git a/Core/PythonAPI/src/HomogeneousMaterial.pypp.cpp b/Core/PythonAPI/src/HomogeneousMaterial.pypp.cpp index 06f588de9a2b24cf671b35b0e07d64dee9f8ddfb..22e5466ddf9bb4ffb8474b9fc76703c2e94a864b 100644 --- a/Core/PythonAPI/src/HomogeneousMaterial.pypp.cpp +++ b/Core/PythonAPI/src/HomogeneousMaterial.pypp.cpp @@ -40,11 +40,11 @@ struct HomogeneousMaterial_wrapper : HomogeneousMaterial, bp::wrapper< Homogeneo virtual ::complex_t getRefractiveIndex( ) const { if( bp::override func_getRefractiveIndex = this->get_override( "getRefractiveIndex" ) ) return func_getRefractiveIndex( ); - else{ + else return this->HomogeneousMaterial::getRefractiveIndex( ); - } } + ::complex_t default_getRefractiveIndex( ) const { return HomogeneousMaterial::getRefractiveIndex( ); } @@ -52,11 +52,11 @@ struct HomogeneousMaterial_wrapper : HomogeneousMaterial, bp::wrapper< Homogeneo virtual bool isScalarMaterial( ) const { if( bp::override func_isScalarMaterial = this->get_override( "isScalarMaterial" ) ) return func_isScalarMaterial( ); - else{ + else return this->IMaterial::isScalarMaterial( ); - } } + bool default_isScalarMaterial( ) const { return IMaterial::isScalarMaterial( ); } diff --git a/Core/PythonAPI/src/IAxis.pypp.cpp b/Core/PythonAPI/src/IAxis.pypp.cpp index a6c9c35dcd98aa69f39a992fe63304b54e7adf7c..9c689bebe60a4d93f9e856aaab898a9a45e5c2d3 100644 --- a/Core/PythonAPI/src/IAxis.pypp.cpp +++ b/Core/PythonAPI/src/IAxis.pypp.cpp @@ -33,12 +33,12 @@ struct IAxis_wrapper : IAxis, bp::wrapper< IAxis > { return func_createDoubleBinSize( ); } - virtual ::size_t findClosestIndex( double value ) const { + virtual ::std::size_t findClosestIndex( double value ) const { bp::override func_findClosestIndex = this->get_override( "findClosestIndex" ); return func_findClosestIndex( value ); } - virtual ::Bin1D getBin( ::size_t index ) const { + virtual ::Bin1D getBin( ::std::size_t index ) const { bp::override func_getBin = this->get_override( "getBin" ); return func_getBin( index ); } @@ -53,12 +53,12 @@ struct IAxis_wrapper : IAxis, bp::wrapper< IAxis > { return func_getMin( ); } - virtual ::size_t getSize( ) const { + virtual ::std::size_t getSize( ) const { bp::override func_getSize = this->get_override( "getSize" ); return func_getSize( ); } - virtual double operator[]( ::size_t index ) const { + virtual double operator[]( ::std::size_t index ) const { bp::override func___getitem__ = this->get_override( "__getitem__" ); return func___getitem__( index ); } @@ -93,7 +93,7 @@ void register_IAxis_class(){ } { //::IAxis::findClosestIndex - typedef ::size_t ( ::IAxis::*findClosestIndex_function_type )( double ) const; + typedef ::std::size_t ( ::IAxis::*findClosestIndex_function_type )( double ) const; IAxis_exposer.def( "findClosestIndex" @@ -103,7 +103,7 @@ void register_IAxis_class(){ } { //::IAxis::getBin - typedef ::Bin1D ( ::IAxis::*getBin_function_type )( ::size_t ) const; + typedef ::Bin1D ( ::IAxis::*getBin_function_type )( ::std::size_t ) const; IAxis_exposer.def( "getBin" @@ -140,7 +140,7 @@ void register_IAxis_class(){ } { //::IAxis::getSize - typedef ::size_t ( ::IAxis::*getSize_function_type )( ) const; + typedef ::std::size_t ( ::IAxis::*getSize_function_type )( ) const; IAxis_exposer.def( "getSize" @@ -149,7 +149,7 @@ void register_IAxis_class(){ } { //::IAxis::operator[] - typedef double ( ::IAxis::*__getitem___function_type )( ::size_t ) const; + typedef double ( ::IAxis::*__getitem___function_type )( ::std::size_t ) const; IAxis_exposer.def( "__getitem__" diff --git a/Core/PythonAPI/src/IClusteredParticles.pypp.cpp b/Core/PythonAPI/src/IClusteredParticles.pypp.cpp index b2dc3bec03dcd0a5bdf35f6353f828fd2516f0ce..a2715931f226c85e4b81059363be577954042a3e 100644 --- a/Core/PythonAPI/src/IClusteredParticles.pypp.cpp +++ b/Core/PythonAPI/src/IClusteredParticles.pypp.cpp @@ -28,11 +28,11 @@ struct IClusteredParticles_wrapper : IClusteredParticles, bp::wrapper< IClustere virtual ::IClusteredParticles * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->IClusteredParticles::clone( ); - } } + ::IClusteredParticles * default_clone( ) const { return IClusteredParticles::clone( ); } @@ -40,11 +40,11 @@ struct IClusteredParticles_wrapper : IClusteredParticles, bp::wrapper< IClustere virtual ::IClusteredParticles * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->IClusteredParticles::cloneInvertB( ); - } } + ::IClusteredParticles * default_cloneInvertB( ) const { return IClusteredParticles::cloneInvertB( ); } @@ -57,11 +57,11 @@ struct IClusteredParticles_wrapper : IClusteredParticles, bp::wrapper< IClustere virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -69,11 +69,11 @@ struct IClusteredParticles_wrapper : IClusteredParticles, bp::wrapper< IClustere virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -81,11 +81,11 @@ struct IClusteredParticles_wrapper : IClusteredParticles, bp::wrapper< IClustere virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -93,11 +93,11 @@ struct IClusteredParticles_wrapper : IClusteredParticles, bp::wrapper< IClustere virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -124,11 +124,11 @@ struct IClusteredParticles_wrapper : IClusteredParticles, bp::wrapper< IClustere virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -136,11 +136,11 @@ struct IClusteredParticles_wrapper : IClusteredParticles, bp::wrapper< IClustere virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -148,11 +148,11 @@ struct IClusteredParticles_wrapper : IClusteredParticles, bp::wrapper< IClustere virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/ICompositeSample.pypp.cpp b/Core/PythonAPI/src/ICompositeSample.pypp.cpp index ca169d66b1195d92c825cb813aee67c8e6887365..deac34055c21c329225603688cfc94d96a04227f 100644 --- a/Core/PythonAPI/src/ICompositeSample.pypp.cpp +++ b/Core/PythonAPI/src/ICompositeSample.pypp.cpp @@ -33,11 +33,11 @@ struct ICompositeSample_wrapper : ICompositeSample, bp::wrapper< ICompositeSampl virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -45,11 +45,11 @@ struct ICompositeSample_wrapper : ICompositeSample, bp::wrapper< ICompositeSampl virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -57,11 +57,11 @@ struct ICompositeSample_wrapper : ICompositeSample, bp::wrapper< ICompositeSampl virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } @@ -69,11 +69,11 @@ struct ICompositeSample_wrapper : ICompositeSample, bp::wrapper< ICompositeSampl virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -81,11 +81,11 @@ struct ICompositeSample_wrapper : ICompositeSample, bp::wrapper< ICompositeSampl virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -112,11 +112,11 @@ struct ICompositeSample_wrapper : ICompositeSample, bp::wrapper< ICompositeSampl virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -124,11 +124,11 @@ struct ICompositeSample_wrapper : ICompositeSample, bp::wrapper< ICompositeSampl virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -136,11 +136,11 @@ struct ICompositeSample_wrapper : ICompositeSample, bp::wrapper< ICompositeSampl virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/IDecoration.pypp.cpp b/Core/PythonAPI/src/IDecoration.pypp.cpp index 3e897b053a99140447a8a753a571a7fc6ccfc63b..3e9fab2b8644cf67bc14670fd20dedbc9b4094a0 100644 --- a/Core/PythonAPI/src/IDecoration.pypp.cpp +++ b/Core/PythonAPI/src/IDecoration.pypp.cpp @@ -35,7 +35,7 @@ struct IDecoration_wrapper : IDecoration, bp::wrapper< IDecoration > { return func_cloneInvertB( ); } - virtual double getAbundanceFractionOfParticle( ::size_t index ) const { + virtual double getAbundanceFractionOfParticle( ::std::size_t index ) const { bp::override func_getAbundanceFractionOfParticle = this->get_override( "getAbundanceFractionOfParticle" ); return func_getAbundanceFractionOfParticle( index ); } @@ -45,24 +45,24 @@ struct IDecoration_wrapper : IDecoration, bp::wrapper< IDecoration > { return func_getInterferenceFunctions( ); } - virtual ::size_t getNumberOfInterferenceFunctions( ) const { + virtual ::std::size_t getNumberOfInterferenceFunctions( ) const { if( bp::override func_getNumberOfInterferenceFunctions = this->get_override( "getNumberOfInterferenceFunctions" ) ) return func_getNumberOfInterferenceFunctions( ); - else{ + else return this->IDecoration::getNumberOfInterferenceFunctions( ); - } } - ::size_t default_getNumberOfInterferenceFunctions( ) const { + + ::std::size_t default_getNumberOfInterferenceFunctions( ) const { return IDecoration::getNumberOfInterferenceFunctions( ); } - virtual ::size_t getNumberOfParticles( ) const { + virtual ::std::size_t getNumberOfParticles( ) const { bp::override func_getNumberOfParticles = this->get_override( "getNumberOfParticles" ); return func_getNumberOfParticles( ); } - virtual ::ParticleInfo const * getParticleInfo( ::size_t index ) const { + virtual ::ParticleInfo const * getParticleInfo( ::std::size_t index ) const { bp::override func_getParticleInfo = this->get_override( "getParticleInfo" ); return func_getParticleInfo( index ); } @@ -75,11 +75,11 @@ struct IDecoration_wrapper : IDecoration, bp::wrapper< IDecoration > { virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -87,11 +87,11 @@ struct IDecoration_wrapper : IDecoration, bp::wrapper< IDecoration > { virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -99,11 +99,11 @@ struct IDecoration_wrapper : IDecoration, bp::wrapper< IDecoration > { virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -111,11 +111,11 @@ struct IDecoration_wrapper : IDecoration, bp::wrapper< IDecoration > { virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -142,11 +142,11 @@ struct IDecoration_wrapper : IDecoration, bp::wrapper< IDecoration > { virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -154,11 +154,11 @@ struct IDecoration_wrapper : IDecoration, bp::wrapper< IDecoration > { virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -166,11 +166,11 @@ struct IDecoration_wrapper : IDecoration, bp::wrapper< IDecoration > { virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -205,7 +205,7 @@ void register_IDecoration_class(){ } { //::IDecoration::getAbundanceFractionOfParticle - typedef double ( ::IDecoration::*getAbundanceFractionOfParticle_function_type )( ::size_t ) const; + typedef double ( ::IDecoration::*getAbundanceFractionOfParticle_function_type )( ::std::size_t ) const; IDecoration_exposer.def( "getAbundanceFractionOfParticle" @@ -224,8 +224,8 @@ void register_IDecoration_class(){ } { //::IDecoration::getNumberOfInterferenceFunctions - typedef ::size_t ( ::IDecoration::*getNumberOfInterferenceFunctions_function_type )( ) const; - typedef ::size_t ( IDecoration_wrapper::*default_getNumberOfInterferenceFunctions_function_type )( ) const; + typedef ::std::size_t ( ::IDecoration::*getNumberOfInterferenceFunctions_function_type )( ) const; + typedef ::std::size_t ( IDecoration_wrapper::*default_getNumberOfInterferenceFunctions_function_type )( ) const; IDecoration_exposer.def( "getNumberOfInterferenceFunctions" @@ -235,7 +235,7 @@ void register_IDecoration_class(){ } { //::IDecoration::getNumberOfParticles - typedef ::size_t ( ::IDecoration::*getNumberOfParticles_function_type )( ) const; + typedef ::std::size_t ( ::IDecoration::*getNumberOfParticles_function_type )( ) const; IDecoration_exposer.def( "getNumberOfParticles" @@ -244,7 +244,7 @@ void register_IDecoration_class(){ } { //::IDecoration::getParticleInfo - typedef ::ParticleInfo const * ( ::IDecoration::*getParticleInfo_function_type )( ::size_t ) const; + typedef ::ParticleInfo const * ( ::IDecoration::*getParticleInfo_function_type )( ::std::size_t ) const; IDecoration_exposer.def( "getParticleInfo" diff --git a/Core/PythonAPI/src/IDetectorResolution.pypp.cpp b/Core/PythonAPI/src/IDetectorResolution.pypp.cpp index 2ac71b82b8d091acd0a28ae5f861d1682740b439..3cf199b2353950e447bcd111c2f8a5b262ad5971 100644 --- a/Core/PythonAPI/src/IDetectorResolution.pypp.cpp +++ b/Core/PythonAPI/src/IDetectorResolution.pypp.cpp @@ -38,11 +38,11 @@ struct IDetectorResolution_wrapper : IDetectorResolution, bp::wrapper< IDetector virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -50,11 +50,11 @@ struct IDetectorResolution_wrapper : IDetectorResolution, bp::wrapper< IDetector virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -62,11 +62,11 @@ struct IDetectorResolution_wrapper : IDetectorResolution, bp::wrapper< IDetector virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -74,11 +74,11 @@ struct IDetectorResolution_wrapper : IDetectorResolution, bp::wrapper< IDetector virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -105,11 +105,11 @@ struct IDetectorResolution_wrapper : IDetectorResolution, bp::wrapper< IDetector virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -117,11 +117,11 @@ struct IDetectorResolution_wrapper : IDetectorResolution, bp::wrapper< IDetector virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -129,11 +129,11 @@ struct IDetectorResolution_wrapper : IDetectorResolution, bp::wrapper< IDetector virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/IFTDistribution2D.pypp.cpp b/Core/PythonAPI/src/IFTDistribution2D.pypp.cpp index bcd19d0838aa60d7bdbfab1b286f13ae6782e73b..7fcb99d2deaa83f5bb03cea68f4e6cc1d667a25a 100644 --- a/Core/PythonAPI/src/IFTDistribution2D.pypp.cpp +++ b/Core/PythonAPI/src/IFTDistribution2D.pypp.cpp @@ -43,11 +43,11 @@ struct IFTDistribution2D_wrapper : IFTDistribution2D, bp::wrapper< IFTDistributi virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -55,11 +55,11 @@ struct IFTDistribution2D_wrapper : IFTDistribution2D, bp::wrapper< IFTDistributi virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -67,11 +67,11 @@ struct IFTDistribution2D_wrapper : IFTDistribution2D, bp::wrapper< IFTDistributi virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -79,11 +79,11 @@ struct IFTDistribution2D_wrapper : IFTDistribution2D, bp::wrapper< IFTDistributi virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -110,11 +110,11 @@ struct IFTDistribution2D_wrapper : IFTDistribution2D, bp::wrapper< IFTDistributi virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -122,11 +122,11 @@ struct IFTDistribution2D_wrapper : IFTDistribution2D, bp::wrapper< IFTDistributi virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -134,11 +134,11 @@ struct IFTDistribution2D_wrapper : IFTDistribution2D, bp::wrapper< IFTDistributi virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/IFormFactor.pypp.cpp b/Core/PythonAPI/src/IFormFactor.pypp.cpp index 481829c60076d0f934c198f3929373a35d7c29a4..fa9ce0b759a8c7592b54f18aaa0cb1c1335c502d 100644 --- a/Core/PythonAPI/src/IFormFactor.pypp.cpp +++ b/Core/PythonAPI/src/IFormFactor.pypp.cpp @@ -30,15 +30,15 @@ struct IFormFactor_wrapper : IFormFactor, bp::wrapper< IFormFactor > { return func_clone( ); } - virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { if( bp::override func_createDistributedFormFactors = this->get_override( "createDistributedFormFactors" ) ) func_createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - else{ + else this->IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - } } - void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + + void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); } @@ -50,11 +50,11 @@ struct IFormFactor_wrapper : IFormFactor, bp::wrapper< IFormFactor > { virtual double getHeight( ) const { if( bp::override func_getHeight = this->get_override( "getHeight" ) ) return func_getHeight( ); - else{ + else return this->IFormFactor::getHeight( ); - } } + double default_getHeight( ) const { return IFormFactor::getHeight( ); } @@ -62,11 +62,11 @@ struct IFormFactor_wrapper : IFormFactor, bp::wrapper< IFormFactor > { virtual int getNumberOfStochasticParameters( ) const { if( bp::override func_getNumberOfStochasticParameters = this->get_override( "getNumberOfStochasticParameters" ) ) return func_getNumberOfStochasticParameters( ); - else{ + else return this->IFormFactor::getNumberOfStochasticParameters( ); - } } + int default_getNumberOfStochasticParameters( ) const { return IFormFactor::getNumberOfStochasticParameters( ); } @@ -74,11 +74,11 @@ struct IFormFactor_wrapper : IFormFactor, bp::wrapper< IFormFactor > { virtual double getRadius( ) const { if( bp::override func_getRadius = this->get_override( "getRadius" ) ) return func_getRadius( ); - else{ + else return this->IFormFactor::getRadius( ); - } } + double default_getRadius( ) const { return IFormFactor::getRadius( ); } @@ -86,11 +86,11 @@ struct IFormFactor_wrapper : IFormFactor, bp::wrapper< IFormFactor > { virtual double getVolume( ) const { if( bp::override func_getVolume = this->get_override( "getVolume" ) ) return func_getVolume( ); - else{ + else return this->IFormFactor::getVolume( ); - } } + double default_getVolume( ) const { return IFormFactor::getVolume( ); } @@ -98,11 +98,11 @@ struct IFormFactor_wrapper : IFormFactor, bp::wrapper< IFormFactor > { virtual bool isDistributedFormFactor( ) const { if( bp::override func_isDistributedFormFactor = this->get_override( "isDistributedFormFactor" ) ) return func_isDistributedFormFactor( ); - else{ + else return this->IFormFactor::isDistributedFormFactor( ); - } } + bool default_isDistributedFormFactor( ) const { return IFormFactor::isDistributedFormFactor( ); } @@ -110,11 +110,11 @@ struct IFormFactor_wrapper : IFormFactor, bp::wrapper< IFormFactor > { virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -122,11 +122,11 @@ struct IFormFactor_wrapper : IFormFactor, bp::wrapper< IFormFactor > { virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -134,11 +134,11 @@ struct IFormFactor_wrapper : IFormFactor, bp::wrapper< IFormFactor > { virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } @@ -146,11 +146,11 @@ struct IFormFactor_wrapper : IFormFactor, bp::wrapper< IFormFactor > { virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -158,11 +158,11 @@ struct IFormFactor_wrapper : IFormFactor, bp::wrapper< IFormFactor > { virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -170,11 +170,11 @@ struct IFormFactor_wrapper : IFormFactor, bp::wrapper< IFormFactor > { virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -201,11 +201,11 @@ struct IFormFactor_wrapper : IFormFactor, bp::wrapper< IFormFactor > { virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -213,11 +213,11 @@ struct IFormFactor_wrapper : IFormFactor, bp::wrapper< IFormFactor > { virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -225,11 +225,11 @@ struct IFormFactor_wrapper : IFormFactor, bp::wrapper< IFormFactor > { virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -254,8 +254,8 @@ void register_IFormFactor_class(){ } { //::IFormFactor::createDistributedFormFactors - typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; - typedef void ( IFormFactor_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; + typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; + typedef void ( IFormFactor_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; IFormFactor_exposer.def( "createDistributedFormFactors" diff --git a/Core/PythonAPI/src/IFormFactorBorn.pypp.cpp b/Core/PythonAPI/src/IFormFactorBorn.pypp.cpp index dbcc13be33ed05c960279905ee3e35ab8588653e..755886dd432f27cdde2545e02f4cfaa7daa35008 100644 --- a/Core/PythonAPI/src/IFormFactorBorn.pypp.cpp +++ b/Core/PythonAPI/src/IFormFactorBorn.pypp.cpp @@ -33,11 +33,11 @@ struct IFormFactorBorn_wrapper : IFormFactorBorn, bp::wrapper< IFormFactorBorn > virtual ::complex_t evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - else{ + else return this->IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); - } } + ::complex_t default_evaluate( ::cvector_t const & k_i, ::Bin1DCVector const & k_f_bin, ::Bin1D alpha_f_bin ) const { return IFormFactorBorn::evaluate( boost::ref(k_i), boost::ref(k_f_bin), alpha_f_bin ); } @@ -50,11 +50,11 @@ struct IFormFactorBorn_wrapper : IFormFactorBorn, bp::wrapper< IFormFactorBorn > virtual double getVolume( ) const { if( bp::override func_getVolume = this->get_override( "getVolume" ) ) return func_getVolume( ); - else{ + else return this->IFormFactorBorn::getVolume( ); - } } + double default_getVolume( ) const { return IFormFactorBorn::getVolume( ); } @@ -62,11 +62,11 @@ struct IFormFactorBorn_wrapper : IFormFactorBorn, bp::wrapper< IFormFactorBorn > virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -74,11 +74,11 @@ struct IFormFactorBorn_wrapper : IFormFactorBorn, bp::wrapper< IFormFactorBorn > virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -86,35 +86,35 @@ struct IFormFactorBorn_wrapper : IFormFactorBorn, bp::wrapper< IFormFactorBorn > virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } - virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { if( bp::override func_createDistributedFormFactors = this->get_override( "createDistributedFormFactors" ) ) func_createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - else{ + else this->IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - } } - void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + + void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); } virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -122,11 +122,11 @@ struct IFormFactorBorn_wrapper : IFormFactorBorn, bp::wrapper< IFormFactorBorn > virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -134,11 +134,11 @@ struct IFormFactorBorn_wrapper : IFormFactorBorn, bp::wrapper< IFormFactorBorn > virtual double getHeight( ) const { if( bp::override func_getHeight = this->get_override( "getHeight" ) ) return func_getHeight( ); - else{ + else return this->IFormFactor::getHeight( ); - } } + double default_getHeight( ) const { return IFormFactor::getHeight( ); } @@ -146,11 +146,11 @@ struct IFormFactorBorn_wrapper : IFormFactorBorn, bp::wrapper< IFormFactorBorn > virtual int getNumberOfStochasticParameters( ) const { if( bp::override func_getNumberOfStochasticParameters = this->get_override( "getNumberOfStochasticParameters" ) ) return func_getNumberOfStochasticParameters( ); - else{ + else return this->IFormFactor::getNumberOfStochasticParameters( ); - } } + int default_getNumberOfStochasticParameters( ) const { return IFormFactor::getNumberOfStochasticParameters( ); } @@ -158,11 +158,11 @@ struct IFormFactorBorn_wrapper : IFormFactorBorn, bp::wrapper< IFormFactorBorn > virtual double getRadius( ) const { if( bp::override func_getRadius = this->get_override( "getRadius" ) ) return func_getRadius( ); - else{ + else return this->IFormFactor::getRadius( ); - } } + double default_getRadius( ) const { return IFormFactor::getRadius( ); } @@ -170,11 +170,11 @@ struct IFormFactorBorn_wrapper : IFormFactorBorn, bp::wrapper< IFormFactorBorn > virtual bool isDistributedFormFactor( ) const { if( bp::override func_isDistributedFormFactor = this->get_override( "isDistributedFormFactor" ) ) return func_isDistributedFormFactor( ); - else{ + else return this->IFormFactor::isDistributedFormFactor( ); - } } + bool default_isDistributedFormFactor( ) const { return IFormFactor::isDistributedFormFactor( ); } @@ -182,11 +182,11 @@ struct IFormFactorBorn_wrapper : IFormFactorBorn, bp::wrapper< IFormFactorBorn > virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -213,11 +213,11 @@ struct IFormFactorBorn_wrapper : IFormFactorBorn, bp::wrapper< IFormFactorBorn > virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -225,11 +225,11 @@ struct IFormFactorBorn_wrapper : IFormFactorBorn, bp::wrapper< IFormFactorBorn > virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -237,11 +237,11 @@ struct IFormFactorBorn_wrapper : IFormFactorBorn, bp::wrapper< IFormFactorBorn > virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -333,8 +333,8 @@ void register_IFormFactorBorn_class(){ } { //::IFormFactor::createDistributedFormFactors - typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; - typedef void ( IFormFactorBorn_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; + typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; + typedef void ( IFormFactorBorn_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; IFormFactorBorn_exposer.def( "createDistributedFormFactors" diff --git a/Core/PythonAPI/src/IFormFactorDecorator.pypp.cpp b/Core/PythonAPI/src/IFormFactorDecorator.pypp.cpp index 13c4b0d107326be28cc7bb0548547d21135518e8..b4a69b7776edfb903ed3ff173c5b6891b54922e4 100644 --- a/Core/PythonAPI/src/IFormFactorDecorator.pypp.cpp +++ b/Core/PythonAPI/src/IFormFactorDecorator.pypp.cpp @@ -26,11 +26,11 @@ struct IFormFactorDecorator_wrapper : IFormFactorDecorator, bp::wrapper< IFormFa virtual double getHeight( ) const { if( bp::override func_getHeight = this->get_override( "getHeight" ) ) return func_getHeight( ); - else{ + else return this->IFormFactorDecorator::getHeight( ); - } } + double default_getHeight( ) const { return IFormFactorDecorator::getHeight( ); } @@ -38,11 +38,11 @@ struct IFormFactorDecorator_wrapper : IFormFactorDecorator, bp::wrapper< IFormFa virtual double getRadius( ) const { if( bp::override func_getRadius = this->get_override( "getRadius" ) ) return func_getRadius( ); - else{ + else return this->IFormFactorDecorator::getRadius( ); - } } + double default_getRadius( ) const { return IFormFactorDecorator::getRadius( ); } @@ -50,11 +50,11 @@ struct IFormFactorDecorator_wrapper : IFormFactorDecorator, bp::wrapper< IFormFa virtual double getVolume( ) const { if( bp::override func_getVolume = this->get_override( "getVolume" ) ) return func_getVolume( ); - else{ + else return this->IFormFactorDecorator::getVolume( ); - } } + double default_getVolume( ) const { return IFormFactorDecorator::getVolume( ); } @@ -62,11 +62,11 @@ struct IFormFactorDecorator_wrapper : IFormFactorDecorator, bp::wrapper< IFormFa virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -74,11 +74,11 @@ struct IFormFactorDecorator_wrapper : IFormFactorDecorator, bp::wrapper< IFormFa virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -86,35 +86,35 @@ struct IFormFactorDecorator_wrapper : IFormFactorDecorator, bp::wrapper< IFormFa virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } - virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + virtual void createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { if( bp::override func_createDistributedFormFactors = this->get_override( "createDistributedFormFactors" ) ) func_createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - else{ + else this->IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); - } } - void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::size_t nbr_samples ) const { + + void default_createDistributedFormFactors( ::std::vector< IFormFactor* > & form_factors, ::std::vector< double > & probabilities, ::std::size_t nbr_samples ) const { IFormFactor::createDistributedFormFactors( boost::ref(form_factors), boost::ref(probabilities), nbr_samples ); } virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -127,11 +127,11 @@ struct IFormFactorDecorator_wrapper : IFormFactorDecorator, bp::wrapper< IFormFa virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -139,11 +139,11 @@ struct IFormFactorDecorator_wrapper : IFormFactorDecorator, bp::wrapper< IFormFa virtual int getNumberOfStochasticParameters( ) const { if( bp::override func_getNumberOfStochasticParameters = this->get_override( "getNumberOfStochasticParameters" ) ) return func_getNumberOfStochasticParameters( ); - else{ + else return this->IFormFactor::getNumberOfStochasticParameters( ); - } } + int default_getNumberOfStochasticParameters( ) const { return IFormFactor::getNumberOfStochasticParameters( ); } @@ -151,11 +151,11 @@ struct IFormFactorDecorator_wrapper : IFormFactorDecorator, bp::wrapper< IFormFa virtual bool isDistributedFormFactor( ) const { if( bp::override func_isDistributedFormFactor = this->get_override( "isDistributedFormFactor" ) ) return func_isDistributedFormFactor( ); - else{ + else return this->IFormFactor::isDistributedFormFactor( ); - } } + bool default_isDistributedFormFactor( ) const { return IFormFactor::isDistributedFormFactor( ); } @@ -163,11 +163,11 @@ struct IFormFactorDecorator_wrapper : IFormFactorDecorator, bp::wrapper< IFormFa virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -194,11 +194,11 @@ struct IFormFactorDecorator_wrapper : IFormFactorDecorator, bp::wrapper< IFormFa virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -206,11 +206,11 @@ struct IFormFactorDecorator_wrapper : IFormFactorDecorator, bp::wrapper< IFormFa virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -218,11 +218,11 @@ struct IFormFactorDecorator_wrapper : IFormFactorDecorator, bp::wrapper< IFormFa virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -314,8 +314,8 @@ void register_IFormFactorDecorator_class(){ } { //::IFormFactor::createDistributedFormFactors - typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; - typedef void ( IFormFactorDecorator_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::size_t ) const; + typedef void ( ::IFormFactor::*createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; + typedef void ( IFormFactorDecorator_wrapper::*default_createDistributedFormFactors_function_type )( ::std::vector< IFormFactor* > &,::std::vector< double > &,::std::size_t ) const; IFormFactorDecorator_exposer.def( "createDistributedFormFactors" diff --git a/Core/PythonAPI/src/IInterferenceFunction.pypp.cpp b/Core/PythonAPI/src/IInterferenceFunction.pypp.cpp index 225595bd6f178b50146594467b23aa51c67146f7..2220599749c4f34bd6248c73f3b1213b5aee8aa3 100644 --- a/Core/PythonAPI/src/IInterferenceFunction.pypp.cpp +++ b/Core/PythonAPI/src/IInterferenceFunction.pypp.cpp @@ -38,11 +38,11 @@ struct IInterferenceFunction_wrapper : IInterferenceFunction, bp::wrapper< IInte virtual double getKappa( ) const { if( bp::override func_getKappa = this->get_override( "getKappa" ) ) return func_getKappa( ); - else{ + else return this->IInterferenceFunction::getKappa( ); - } } + double default_getKappa( ) const { return IInterferenceFunction::getKappa( ); } @@ -50,11 +50,11 @@ struct IInterferenceFunction_wrapper : IInterferenceFunction, bp::wrapper< IInte virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -62,11 +62,11 @@ struct IInterferenceFunction_wrapper : IInterferenceFunction, bp::wrapper< IInte virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -74,11 +74,11 @@ struct IInterferenceFunction_wrapper : IInterferenceFunction, bp::wrapper< IInte virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } @@ -86,11 +86,11 @@ struct IInterferenceFunction_wrapper : IInterferenceFunction, bp::wrapper< IInte virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -98,11 +98,11 @@ struct IInterferenceFunction_wrapper : IInterferenceFunction, bp::wrapper< IInte virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -110,11 +110,11 @@ struct IInterferenceFunction_wrapper : IInterferenceFunction, bp::wrapper< IInte virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -141,11 +141,11 @@ struct IInterferenceFunction_wrapper : IInterferenceFunction, bp::wrapper< IInte virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -153,11 +153,11 @@ struct IInterferenceFunction_wrapper : IInterferenceFunction, bp::wrapper< IInte virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -165,11 +165,11 @@ struct IInterferenceFunction_wrapper : IInterferenceFunction, bp::wrapper< IInte virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/IMaterial.pypp.cpp b/Core/PythonAPI/src/IMaterial.pypp.cpp index 4dad5ef7bd2d4bed36c6bfc1ec5a8383396dba92..3a643e2f8937a0e3def7751c7a88085605de85dd 100644 --- a/Core/PythonAPI/src/IMaterial.pypp.cpp +++ b/Core/PythonAPI/src/IMaterial.pypp.cpp @@ -33,11 +33,11 @@ struct IMaterial_wrapper : IMaterial, bp::wrapper< IMaterial > { virtual ::complex_t getRefractiveIndex( ) const { if( bp::override func_getRefractiveIndex = this->get_override( "getRefractiveIndex" ) ) return func_getRefractiveIndex( ); - else{ + else return this->IMaterial::getRefractiveIndex( ); - } } + ::complex_t default_getRefractiveIndex( ) const { return IMaterial::getRefractiveIndex( ); } @@ -45,11 +45,11 @@ struct IMaterial_wrapper : IMaterial, bp::wrapper< IMaterial > { virtual bool isScalarMaterial( ) const { if( bp::override func_isScalarMaterial = this->get_override( "isScalarMaterial" ) ) return func_isScalarMaterial( ); - else{ + else return this->IMaterial::isScalarMaterial( ); - } } + bool default_isScalarMaterial( ) const { return IMaterial::isScalarMaterial( ); } diff --git a/Core/PythonAPI/src/IParameterized.pypp.cpp b/Core/PythonAPI/src/IParameterized.pypp.cpp index a877d62ddc8a79a787310eb88b336f103cd0fc39..337d9ae2451e0446157a1d34a2c3b8f4fec8302a 100644 --- a/Core/PythonAPI/src/IParameterized.pypp.cpp +++ b/Core/PythonAPI/src/IParameterized.pypp.cpp @@ -42,11 +42,11 @@ struct IParameterized_wrapper : IParameterized, bp::wrapper< IParameterized > { virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -54,11 +54,11 @@ struct IParameterized_wrapper : IParameterized, bp::wrapper< IParameterized > { virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -66,11 +66,11 @@ struct IParameterized_wrapper : IParameterized, bp::wrapper< IParameterized > { virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -78,11 +78,11 @@ struct IParameterized_wrapper : IParameterized, bp::wrapper< IParameterized > { virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -109,11 +109,11 @@ struct IParameterized_wrapper : IParameterized, bp::wrapper< IParameterized > { virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -121,11 +121,11 @@ struct IParameterized_wrapper : IParameterized, bp::wrapper< IParameterized > { virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -133,11 +133,11 @@ struct IParameterized_wrapper : IParameterized, bp::wrapper< IParameterized > { virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/IResolutionFunction2D.pypp.cpp b/Core/PythonAPI/src/IResolutionFunction2D.pypp.cpp index 6fb03f15fa94c212e0cb39ff67a23b9a1f2df6d3..a3291d70e3e0b7ae6ce3e98de25f854a43894833 100644 --- a/Core/PythonAPI/src/IResolutionFunction2D.pypp.cpp +++ b/Core/PythonAPI/src/IResolutionFunction2D.pypp.cpp @@ -38,11 +38,11 @@ struct IResolutionFunction2D_wrapper : IResolutionFunction2D, bp::wrapper< IReso virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -50,11 +50,11 @@ struct IResolutionFunction2D_wrapper : IResolutionFunction2D, bp::wrapper< IReso virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -62,11 +62,11 @@ struct IResolutionFunction2D_wrapper : IResolutionFunction2D, bp::wrapper< IReso virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -74,11 +74,11 @@ struct IResolutionFunction2D_wrapper : IResolutionFunction2D, bp::wrapper< IReso virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -105,11 +105,11 @@ struct IResolutionFunction2D_wrapper : IResolutionFunction2D, bp::wrapper< IReso virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -117,11 +117,11 @@ struct IResolutionFunction2D_wrapper : IResolutionFunction2D, bp::wrapper< IReso virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -129,11 +129,11 @@ struct IResolutionFunction2D_wrapper : IResolutionFunction2D, bp::wrapper< IReso virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/ISample.pypp.cpp b/Core/PythonAPI/src/ISample.pypp.cpp index 1cd53ce97544679d75259f15518c4075388d34c1..f0e710456ee326798cd8bad938371fbf6ac9209c 100644 --- a/Core/PythonAPI/src/ISample.pypp.cpp +++ b/Core/PythonAPI/src/ISample.pypp.cpp @@ -33,11 +33,11 @@ struct ISample_wrapper : ISample, bp::wrapper< ISample > { virtual ::ISample * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->ISample::clone( ); - } } + ::ISample * default_clone( ) const { return ISample::clone( ); } @@ -45,11 +45,11 @@ struct ISample_wrapper : ISample, bp::wrapper< ISample > { virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } @@ -57,11 +57,11 @@ struct ISample_wrapper : ISample, bp::wrapper< ISample > { virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -69,11 +69,11 @@ struct ISample_wrapper : ISample, bp::wrapper< ISample > { virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -81,11 +81,11 @@ struct ISample_wrapper : ISample, bp::wrapper< ISample > { virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -93,11 +93,11 @@ struct ISample_wrapper : ISample, bp::wrapper< ISample > { virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -105,11 +105,11 @@ struct ISample_wrapper : ISample, bp::wrapper< ISample > { virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -136,11 +136,11 @@ struct ISample_wrapper : ISample, bp::wrapper< ISample > { virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -148,11 +148,11 @@ struct ISample_wrapper : ISample, bp::wrapper< ISample > { virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -160,11 +160,11 @@ struct ISample_wrapper : ISample, bp::wrapper< ISample > { virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/ISampleBuilder.pypp.cpp b/Core/PythonAPI/src/ISampleBuilder.pypp.cpp index 324cda2a65e75b670f60703f702560a5b3588d02..e6773ad2d71b848c73ad1d341ca69beae4c8edd3 100644 --- a/Core/PythonAPI/src/ISampleBuilder.pypp.cpp +++ b/Core/PythonAPI/src/ISampleBuilder.pypp.cpp @@ -35,11 +35,11 @@ struct ISampleBuilder_wrapper : ISampleBuilder, bp::wrapper< ISampleBuilder > { virtual ::ISample * buildSample( ) const { if( bp::override func_buildSample = this->get_override( "buildSample" ) ) return func_buildSample( ); - else{ + else return this->ISampleBuilder::buildSample( ); - } } + ::ISample * default_buildSample( ) const { return ISampleBuilder::buildSample( ); } @@ -47,11 +47,11 @@ struct ISampleBuilder_wrapper : ISampleBuilder, bp::wrapper< ISampleBuilder > { virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -59,11 +59,11 @@ struct ISampleBuilder_wrapper : ISampleBuilder, bp::wrapper< ISampleBuilder > { virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -71,11 +71,11 @@ struct ISampleBuilder_wrapper : ISampleBuilder, bp::wrapper< ISampleBuilder > { virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -83,11 +83,11 @@ struct ISampleBuilder_wrapper : ISampleBuilder, bp::wrapper< ISampleBuilder > { virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -114,11 +114,11 @@ struct ISampleBuilder_wrapper : ISampleBuilder, bp::wrapper< ISampleBuilder > { virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -126,11 +126,11 @@ struct ISampleBuilder_wrapper : ISampleBuilder, bp::wrapper< ISampleBuilder > { virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -138,11 +138,11 @@ struct ISampleBuilder_wrapper : ISampleBuilder, bp::wrapper< ISampleBuilder > { virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/ITransform3D.pypp.cpp b/Core/PythonAPI/src/ITransform3D.pypp.cpp index 445f4162c984c5e9f1c62900d48de7b04ffcd6be..73595141dca75b64ce7574e31783857907e4b635 100644 --- a/Core/PythonAPI/src/ITransform3D.pypp.cpp +++ b/Core/PythonAPI/src/ITransform3D.pypp.cpp @@ -33,11 +33,11 @@ struct ITransform3D_wrapper : Geometry::ITransform3D, bp::wrapper< Geometry::ITr virtual void print( ::std::ostream & ostr ) const { if( bp::override func_print = this->get_override( "print" ) ) func_print( boost::ref(ostr) ); - else{ + else this->Geometry::ITransform3D::print( boost::ref(ostr) ); - } } + void default_print( ::std::ostream & ostr ) const { Geometry::ITransform3D::print( boost::ref(ostr) ); } diff --git a/Core/PythonAPI/src/Instrument.pypp.cpp b/Core/PythonAPI/src/Instrument.pypp.cpp index f39802358545385a9cf76252d24b10400a573c0d..8fb80ac1b2d5bf6f3328c8b3a4a8a1e453aebdac 100644 --- a/Core/PythonAPI/src/Instrument.pypp.cpp +++ b/Core/PythonAPI/src/Instrument.pypp.cpp @@ -35,11 +35,11 @@ struct Instrument_wrapper : Instrument, bp::wrapper< Instrument > { virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -47,11 +47,11 @@ struct Instrument_wrapper : Instrument, bp::wrapper< Instrument > { virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -59,11 +59,11 @@ struct Instrument_wrapper : Instrument, bp::wrapper< Instrument > { virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -71,11 +71,11 @@ struct Instrument_wrapper : Instrument, bp::wrapper< Instrument > { virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -102,11 +102,11 @@ struct Instrument_wrapper : Instrument, bp::wrapper< Instrument > { virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -114,11 +114,11 @@ struct Instrument_wrapper : Instrument, bp::wrapper< Instrument > { virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -126,11 +126,11 @@ struct Instrument_wrapper : Instrument, bp::wrapper< Instrument > { virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -164,7 +164,7 @@ void register_Instrument_class(){ } { //::Instrument::getDetectorAxis - typedef ::IAxis const & ( ::Instrument::*getDetectorAxis_function_type )( ::size_t ) const; + typedef ::IAxis const & ( ::Instrument::*getDetectorAxis_function_type )( ::std::size_t ) const; Instrument_exposer.def( "getDetectorAxis" @@ -175,7 +175,7 @@ void register_Instrument_class(){ } { //::Instrument::getDetectorDimension - typedef ::size_t ( ::Instrument::*getDetectorDimension_function_type )( ) const; + typedef ::std::size_t ( ::Instrument::*getDetectorDimension_function_type )( ) const; Instrument_exposer.def( "getDetectorDimension" @@ -233,7 +233,7 @@ void register_Instrument_class(){ } { //::Instrument::setDetectorParameters - typedef void ( ::Instrument::*setDetectorParameters_function_type )( ::size_t,double,double,::size_t,double,double,bool ) ; + typedef void ( ::Instrument::*setDetectorParameters_function_type )( ::std::size_t,double,double,::std::size_t,double,double,bool ) ; Instrument_exposer.def( "setDetectorParameters" diff --git a/Core/PythonAPI/src/InterferenceFunction1DParaCrystal.pypp.cpp b/Core/PythonAPI/src/InterferenceFunction1DParaCrystal.pypp.cpp index faa78986054190d4e74dd4a32ca7bcfac3c24672..870408275912d99122c355eff6cfbe68e62ccfb2 100644 --- a/Core/PythonAPI/src/InterferenceFunction1DParaCrystal.pypp.cpp +++ b/Core/PythonAPI/src/InterferenceFunction1DParaCrystal.pypp.cpp @@ -28,11 +28,11 @@ struct InterferenceFunction1DParaCrystal_wrapper : InterferenceFunction1DParaCry virtual ::InterferenceFunction1DParaCrystal * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->InterferenceFunction1DParaCrystal::clone( ); - } } + ::InterferenceFunction1DParaCrystal * default_clone( ) const { return InterferenceFunction1DParaCrystal::clone( ); } @@ -40,11 +40,11 @@ struct InterferenceFunction1DParaCrystal_wrapper : InterferenceFunction1DParaCry virtual double evaluate( ::cvector_t const & q ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(q) ); - else{ + else return this->InterferenceFunction1DParaCrystal::evaluate( boost::ref(q) ); - } } + double default_evaluate( ::cvector_t const & q ) const { return InterferenceFunction1DParaCrystal::evaluate( boost::ref(q) ); } @@ -52,11 +52,11 @@ struct InterferenceFunction1DParaCrystal_wrapper : InterferenceFunction1DParaCry virtual double getKappa( ) const { if( bp::override func_getKappa = this->get_override( "getKappa" ) ) return func_getKappa( ); - else{ + else return this->InterferenceFunction1DParaCrystal::getKappa( ); - } } + double default_getKappa( ) const { return InterferenceFunction1DParaCrystal::getKappa( ); } @@ -64,11 +64,11 @@ struct InterferenceFunction1DParaCrystal_wrapper : InterferenceFunction1DParaCry virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -76,11 +76,11 @@ struct InterferenceFunction1DParaCrystal_wrapper : InterferenceFunction1DParaCry virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -88,11 +88,11 @@ struct InterferenceFunction1DParaCrystal_wrapper : InterferenceFunction1DParaCry virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } @@ -100,11 +100,11 @@ struct InterferenceFunction1DParaCrystal_wrapper : InterferenceFunction1DParaCry virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -112,11 +112,11 @@ struct InterferenceFunction1DParaCrystal_wrapper : InterferenceFunction1DParaCry virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -124,11 +124,11 @@ struct InterferenceFunction1DParaCrystal_wrapper : InterferenceFunction1DParaCry virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -155,11 +155,11 @@ struct InterferenceFunction1DParaCrystal_wrapper : InterferenceFunction1DParaCry virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -167,11 +167,11 @@ struct InterferenceFunction1DParaCrystal_wrapper : InterferenceFunction1DParaCry virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -179,11 +179,11 @@ struct InterferenceFunction1DParaCrystal_wrapper : InterferenceFunction1DParaCry virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/InterferenceFunction2DLattice.pypp.cpp b/Core/PythonAPI/src/InterferenceFunction2DLattice.pypp.cpp index 16dc31d06030467973f68fb04dd6962d231c5efc..0c93a4ff106a3895a0f8a0d4c034589f6d5f94fc 100644 --- a/Core/PythonAPI/src/InterferenceFunction2DLattice.pypp.cpp +++ b/Core/PythonAPI/src/InterferenceFunction2DLattice.pypp.cpp @@ -28,11 +28,11 @@ struct InterferenceFunction2DLattice_wrapper : InterferenceFunction2DLattice, bp virtual ::InterferenceFunction2DLattice * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->InterferenceFunction2DLattice::clone( ); - } } + ::InterferenceFunction2DLattice * default_clone( ) const { return InterferenceFunction2DLattice::clone( ); } @@ -40,11 +40,11 @@ struct InterferenceFunction2DLattice_wrapper : InterferenceFunction2DLattice, bp virtual double evaluate( ::cvector_t const & q ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(q) ); - else{ + else return this->InterferenceFunction2DLattice::evaluate( boost::ref(q) ); - } } + double default_evaluate( ::cvector_t const & q ) const { return InterferenceFunction2DLattice::evaluate( boost::ref(q) ); } @@ -52,11 +52,11 @@ struct InterferenceFunction2DLattice_wrapper : InterferenceFunction2DLattice, bp virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -64,11 +64,11 @@ struct InterferenceFunction2DLattice_wrapper : InterferenceFunction2DLattice, bp virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -76,11 +76,11 @@ struct InterferenceFunction2DLattice_wrapper : InterferenceFunction2DLattice, bp virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } @@ -88,11 +88,11 @@ struct InterferenceFunction2DLattice_wrapper : InterferenceFunction2DLattice, bp virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -100,11 +100,11 @@ struct InterferenceFunction2DLattice_wrapper : InterferenceFunction2DLattice, bp virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -112,11 +112,11 @@ struct InterferenceFunction2DLattice_wrapper : InterferenceFunction2DLattice, bp virtual double getKappa( ) const { if( bp::override func_getKappa = this->get_override( "getKappa" ) ) return func_getKappa( ); - else{ + else return this->IInterferenceFunction::getKappa( ); - } } + double default_getKappa( ) const { return IInterferenceFunction::getKappa( ); } @@ -124,11 +124,11 @@ struct InterferenceFunction2DLattice_wrapper : InterferenceFunction2DLattice, bp virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -155,11 +155,11 @@ struct InterferenceFunction2DLattice_wrapper : InterferenceFunction2DLattice, bp virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -167,11 +167,11 @@ struct InterferenceFunction2DLattice_wrapper : InterferenceFunction2DLattice, bp virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -179,11 +179,11 @@ struct InterferenceFunction2DLattice_wrapper : InterferenceFunction2DLattice, bp virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/InterferenceFunction2DParaCrystal.pypp.cpp b/Core/PythonAPI/src/InterferenceFunction2DParaCrystal.pypp.cpp index 0d7dc9a550c6d24b9b3f8353bd7ecace3d6555b5..cbcc2011468d5e86ec54c04e3e95da86d3bd0999 100644 --- a/Core/PythonAPI/src/InterferenceFunction2DParaCrystal.pypp.cpp +++ b/Core/PythonAPI/src/InterferenceFunction2DParaCrystal.pypp.cpp @@ -28,11 +28,11 @@ struct InterferenceFunction2DParaCrystal_wrapper : InterferenceFunction2DParaCry virtual ::InterferenceFunction2DParaCrystal * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->InterferenceFunction2DParaCrystal::clone( ); - } } + ::InterferenceFunction2DParaCrystal * default_clone( ) const { return InterferenceFunction2DParaCrystal::clone( ); } @@ -40,11 +40,11 @@ struct InterferenceFunction2DParaCrystal_wrapper : InterferenceFunction2DParaCry virtual double evaluate( ::cvector_t const & q ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(q) ); - else{ + else return this->InterferenceFunction2DParaCrystal::evaluate( boost::ref(q) ); - } } + double default_evaluate( ::cvector_t const & q ) const { return InterferenceFunction2DParaCrystal::evaluate( boost::ref(q) ); } @@ -52,11 +52,11 @@ struct InterferenceFunction2DParaCrystal_wrapper : InterferenceFunction2DParaCry virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -64,11 +64,11 @@ struct InterferenceFunction2DParaCrystal_wrapper : InterferenceFunction2DParaCry virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -76,11 +76,11 @@ struct InterferenceFunction2DParaCrystal_wrapper : InterferenceFunction2DParaCry virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } @@ -88,11 +88,11 @@ struct InterferenceFunction2DParaCrystal_wrapper : InterferenceFunction2DParaCry virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -100,11 +100,11 @@ struct InterferenceFunction2DParaCrystal_wrapper : InterferenceFunction2DParaCry virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -112,11 +112,11 @@ struct InterferenceFunction2DParaCrystal_wrapper : InterferenceFunction2DParaCry virtual double getKappa( ) const { if( bp::override func_getKappa = this->get_override( "getKappa" ) ) return func_getKappa( ); - else{ + else return this->IInterferenceFunction::getKappa( ); - } } + double default_getKappa( ) const { return IInterferenceFunction::getKappa( ); } @@ -124,11 +124,11 @@ struct InterferenceFunction2DParaCrystal_wrapper : InterferenceFunction2DParaCry virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -155,11 +155,11 @@ struct InterferenceFunction2DParaCrystal_wrapper : InterferenceFunction2DParaCry virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -167,11 +167,11 @@ struct InterferenceFunction2DParaCrystal_wrapper : InterferenceFunction2DParaCry virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -179,11 +179,11 @@ struct InterferenceFunction2DParaCrystal_wrapper : InterferenceFunction2DParaCry virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/InterferenceFunctionNone.pypp.cpp b/Core/PythonAPI/src/InterferenceFunctionNone.pypp.cpp index 3215e69713ef111b9fb747e50e46e3cf132327f3..b3e384add2ade4f268807cab8b046df706246d4a 100644 --- a/Core/PythonAPI/src/InterferenceFunctionNone.pypp.cpp +++ b/Core/PythonAPI/src/InterferenceFunctionNone.pypp.cpp @@ -28,11 +28,11 @@ struct InterferenceFunctionNone_wrapper : InterferenceFunctionNone, bp::wrapper< virtual ::InterferenceFunctionNone * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->InterferenceFunctionNone::clone( ); - } } + ::InterferenceFunctionNone * default_clone( ) const { return InterferenceFunctionNone::clone( ); } @@ -40,11 +40,11 @@ struct InterferenceFunctionNone_wrapper : InterferenceFunctionNone, bp::wrapper< virtual double evaluate( ::cvector_t const & q ) const { if( bp::override func_evaluate = this->get_override( "evaluate" ) ) return func_evaluate( boost::ref(q) ); - else{ + else return this->InterferenceFunctionNone::evaluate( boost::ref(q) ); - } } + double default_evaluate( ::cvector_t const & q ) const { return InterferenceFunctionNone::evaluate( boost::ref(q) ); } @@ -52,11 +52,11 @@ struct InterferenceFunctionNone_wrapper : InterferenceFunctionNone, bp::wrapper< virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -64,11 +64,11 @@ struct InterferenceFunctionNone_wrapper : InterferenceFunctionNone, bp::wrapper< virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -76,11 +76,11 @@ struct InterferenceFunctionNone_wrapper : InterferenceFunctionNone, bp::wrapper< virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } @@ -88,11 +88,11 @@ struct InterferenceFunctionNone_wrapper : InterferenceFunctionNone, bp::wrapper< virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -100,11 +100,11 @@ struct InterferenceFunctionNone_wrapper : InterferenceFunctionNone, bp::wrapper< virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -112,11 +112,11 @@ struct InterferenceFunctionNone_wrapper : InterferenceFunctionNone, bp::wrapper< virtual double getKappa( ) const { if( bp::override func_getKappa = this->get_override( "getKappa" ) ) return func_getKappa( ); - else{ + else return this->IInterferenceFunction::getKappa( ); - } } + double default_getKappa( ) const { return IInterferenceFunction::getKappa( ); } @@ -124,11 +124,11 @@ struct InterferenceFunctionNone_wrapper : InterferenceFunctionNone, bp::wrapper< virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -155,11 +155,11 @@ struct InterferenceFunctionNone_wrapper : InterferenceFunctionNone, bp::wrapper< virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -167,11 +167,11 @@ struct InterferenceFunctionNone_wrapper : InterferenceFunctionNone, bp::wrapper< virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -179,11 +179,11 @@ struct InterferenceFunctionNone_wrapper : InterferenceFunctionNone, bp::wrapper< virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/LatticeBasis.pypp.cpp b/Core/PythonAPI/src/LatticeBasis.pypp.cpp index d2e62372b8ef7d64715c9e8a6c14723c90adf3c7..fb688ed575856611908d97177878594ded4aa55c 100644 --- a/Core/PythonAPI/src/LatticeBasis.pypp.cpp +++ b/Core/PythonAPI/src/LatticeBasis.pypp.cpp @@ -28,11 +28,11 @@ struct LatticeBasis_wrapper : LatticeBasis, bp::wrapper< LatticeBasis > { virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -40,11 +40,11 @@ struct LatticeBasis_wrapper : LatticeBasis, bp::wrapper< LatticeBasis > { virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -52,11 +52,11 @@ struct LatticeBasis_wrapper : LatticeBasis, bp::wrapper< LatticeBasis > { virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -64,11 +64,11 @@ struct LatticeBasis_wrapper : LatticeBasis, bp::wrapper< LatticeBasis > { virtual ::IMaterial const * getMaterial( ) const { if( bp::override func_getMaterial = this->get_override( "getMaterial" ) ) return func_getMaterial( ); - else{ + else return this->Particle::getMaterial( ); - } } + ::IMaterial const * default_getMaterial( ) const { return Particle::getMaterial( ); } @@ -76,11 +76,11 @@ struct LatticeBasis_wrapper : LatticeBasis, bp::wrapper< LatticeBasis > { virtual ::complex_t getRefractiveIndex( ) const { if( bp::override func_getRefractiveIndex = this->get_override( "getRefractiveIndex" ) ) return func_getRefractiveIndex( ); - else{ + else return this->Particle::getRefractiveIndex( ); - } } + ::complex_t default_getRefractiveIndex( ) const { return Particle::getRefractiveIndex( ); } @@ -88,11 +88,11 @@ struct LatticeBasis_wrapper : LatticeBasis, bp::wrapper< LatticeBasis > { virtual ::IFormFactor const * getSimpleFormFactor( ) const { if( bp::override func_getSimpleFormFactor = this->get_override( "getSimpleFormFactor" ) ) return func_getSimpleFormFactor( ); - else{ + else return this->Particle::getSimpleFormFactor( ); - } } + ::IFormFactor const * default_getSimpleFormFactor( ) const { return Particle::getSimpleFormFactor( ); } @@ -100,11 +100,11 @@ struct LatticeBasis_wrapper : LatticeBasis, bp::wrapper< LatticeBasis > { virtual bool hasDistributedFormFactor( ) const { if( bp::override func_hasDistributedFormFactor = this->get_override( "hasDistributedFormFactor" ) ) return func_hasDistributedFormFactor( ); - else{ + else return this->Particle::hasDistributedFormFactor( ); - } } + bool default_hasDistributedFormFactor( ) const { return Particle::hasDistributedFormFactor( ); } @@ -112,11 +112,11 @@ struct LatticeBasis_wrapper : LatticeBasis, bp::wrapper< LatticeBasis > { virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -143,11 +143,11 @@ struct LatticeBasis_wrapper : LatticeBasis, bp::wrapper< LatticeBasis > { virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -155,11 +155,11 @@ struct LatticeBasis_wrapper : LatticeBasis, bp::wrapper< LatticeBasis > { virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -167,11 +167,11 @@ struct LatticeBasis_wrapper : LatticeBasis, bp::wrapper< LatticeBasis > { virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -179,11 +179,11 @@ struct LatticeBasis_wrapper : LatticeBasis, bp::wrapper< LatticeBasis > { virtual void setTransform( ::Geometry::PTransform3D const & transform ) { if( bp::override func_setTransform = this->get_override( "setTransform" ) ) func_setTransform( transform ); - else{ + else this->Particle::setTransform( transform ); - } } + void default_setTransform( ::Geometry::PTransform3D const & transform ) { Particle::setTransform( transform ); } diff --git a/Core/PythonAPI/src/Layer.pypp.cpp b/Core/PythonAPI/src/Layer.pypp.cpp index b33f0a0225ea932c16fdcfc4330ba463b2d0dbca..ab10dc15397f7d5908eb6d65c044b2f49675f715 100644 --- a/Core/PythonAPI/src/Layer.pypp.cpp +++ b/Core/PythonAPI/src/Layer.pypp.cpp @@ -49,11 +49,11 @@ struct Layer_wrapper : Layer, bp::wrapper< Layer > { virtual ::Layer * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->Layer::clone( ); - } } + ::Layer * default_clone( ) const { return Layer::clone( ); } @@ -61,11 +61,11 @@ struct Layer_wrapper : Layer, bp::wrapper< Layer > { virtual ::Layer * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->Layer::cloneInvertB( ); - } } + ::Layer * default_cloneInvertB( ) const { return Layer::cloneInvertB( ); } @@ -73,11 +73,11 @@ struct Layer_wrapper : Layer, bp::wrapper< Layer > { virtual ::IDecoration const * getDecoration( ) const { if( bp::override func_getDecoration = this->get_override( "getDecoration" ) ) return func_getDecoration( ); - else{ + else return this->Layer::getDecoration( ); - } } + ::IDecoration const * default_getDecoration( ) const { return Layer::getDecoration( ); } @@ -85,11 +85,11 @@ struct Layer_wrapper : Layer, bp::wrapper< Layer > { virtual ::IMaterial const * getMaterial( ) const { if( bp::override func_getMaterial = this->get_override( "getMaterial" ) ) return func_getMaterial( ); - else{ + else return this->Layer::getMaterial( ); - } } + ::IMaterial const * default_getMaterial( ) const { return Layer::getMaterial( ); } @@ -97,11 +97,11 @@ struct Layer_wrapper : Layer, bp::wrapper< Layer > { virtual ::complex_t getRefractiveIndex( ) const { if( bp::override func_getRefractiveIndex = this->get_override( "getRefractiveIndex" ) ) return func_getRefractiveIndex( ); - else{ + else return this->Layer::getRefractiveIndex( ); - } } + ::complex_t default_getRefractiveIndex( ) const { return Layer::getRefractiveIndex( ); } @@ -109,11 +109,11 @@ struct Layer_wrapper : Layer, bp::wrapper< Layer > { virtual double getThickness( ) const { if( bp::override func_getThickness = this->get_override( "getThickness" ) ) return func_getThickness( ); - else{ + else return this->Layer::getThickness( ); - } } + double default_getThickness( ) const { return Layer::getThickness( ); } @@ -121,11 +121,11 @@ struct Layer_wrapper : Layer, bp::wrapper< Layer > { virtual double getTotalParticleSurfaceDensity( ) const { if( bp::override func_getTotalParticleSurfaceDensity = this->get_override( "getTotalParticleSurfaceDensity" ) ) return func_getTotalParticleSurfaceDensity( ); - else{ + else return this->Layer::getTotalParticleSurfaceDensity( ); - } } + double default_getTotalParticleSurfaceDensity( ) const { return Layer::getTotalParticleSurfaceDensity( ); } @@ -133,11 +133,11 @@ struct Layer_wrapper : Layer, bp::wrapper< Layer > { virtual void setDecoration( ::IDecoration const & decoration ) { if( bp::override func_setDecoration = this->get_override( "setDecoration" ) ) func_setDecoration( boost::ref(decoration) ); - else{ + else this->Layer::setDecoration( boost::ref(decoration) ); - } } + void default_setDecoration( ::IDecoration const & decoration ) { Layer::setDecoration( boost::ref(decoration) ); } @@ -145,11 +145,11 @@ struct Layer_wrapper : Layer, bp::wrapper< Layer > { virtual void setMaterial( ::IMaterial const * material ) { if( bp::override func_setMaterial = this->get_override( "setMaterial" ) ) func_setMaterial( boost::python::ptr(material) ); - else{ + else this->Layer::setMaterial( boost::python::ptr(material) ); - } } + void default_setMaterial( ::IMaterial const * material ) { Layer::setMaterial( boost::python::ptr(material) ); } @@ -157,11 +157,11 @@ struct Layer_wrapper : Layer, bp::wrapper< Layer > { virtual void setMaterial( ::IMaterial const * material, double thickness ) { if( bp::override func_setMaterial = this->get_override( "setMaterial" ) ) func_setMaterial( boost::python::ptr(material), thickness ); - else{ + else this->Layer::setMaterial( boost::python::ptr(material), thickness ); - } } + void default_setMaterial( ::IMaterial const * material, double thickness ) { Layer::setMaterial( boost::python::ptr(material), thickness ); } @@ -169,11 +169,11 @@ struct Layer_wrapper : Layer, bp::wrapper< Layer > { virtual void setThickness( double thickness ) { if( bp::override func_setThickness = this->get_override( "setThickness" ) ) func_setThickness( thickness ); - else{ + else this->Layer::setThickness( thickness ); - } } + void default_setThickness( double thickness ) { Layer::setThickness( thickness ); } @@ -181,11 +181,11 @@ struct Layer_wrapper : Layer, bp::wrapper< Layer > { virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -193,11 +193,11 @@ struct Layer_wrapper : Layer, bp::wrapper< Layer > { virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -205,11 +205,11 @@ struct Layer_wrapper : Layer, bp::wrapper< Layer > { virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -217,11 +217,11 @@ struct Layer_wrapper : Layer, bp::wrapper< Layer > { virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -248,11 +248,11 @@ struct Layer_wrapper : Layer, bp::wrapper< Layer > { virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -260,11 +260,11 @@ struct Layer_wrapper : Layer, bp::wrapper< Layer > { virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -272,11 +272,11 @@ struct Layer_wrapper : Layer, bp::wrapper< Layer > { virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/LayerInterface.pypp.cpp b/Core/PythonAPI/src/LayerInterface.pypp.cpp index b600ce47ceb31ee75ee4827eabf24f825a178b70..e798f090083c032b06f2a818ef39237398685c57 100644 --- a/Core/PythonAPI/src/LayerInterface.pypp.cpp +++ b/Core/PythonAPI/src/LayerInterface.pypp.cpp @@ -21,11 +21,11 @@ struct LayerInterface_wrapper : LayerInterface, bp::wrapper< LayerInterface > { virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -33,11 +33,11 @@ struct LayerInterface_wrapper : LayerInterface, bp::wrapper< LayerInterface > { virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -45,11 +45,11 @@ struct LayerInterface_wrapper : LayerInterface, bp::wrapper< LayerInterface > { virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } @@ -57,11 +57,11 @@ struct LayerInterface_wrapper : LayerInterface, bp::wrapper< LayerInterface > { virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -69,11 +69,11 @@ struct LayerInterface_wrapper : LayerInterface, bp::wrapper< LayerInterface > { virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -100,11 +100,11 @@ struct LayerInterface_wrapper : LayerInterface, bp::wrapper< LayerInterface > { virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -112,11 +112,11 @@ struct LayerInterface_wrapper : LayerInterface, bp::wrapper< LayerInterface > { virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -124,11 +124,11 @@ struct LayerInterface_wrapper : LayerInterface, bp::wrapper< LayerInterface > { virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/LayerRoughness.pypp.cpp b/Core/PythonAPI/src/LayerRoughness.pypp.cpp index f8a0c6491c4edc04af782e1d89625d9292ec1e9f..96f299af1aef788a37a94be69beac3bfe2fbe069 100644 --- a/Core/PythonAPI/src/LayerRoughness.pypp.cpp +++ b/Core/PythonAPI/src/LayerRoughness.pypp.cpp @@ -35,11 +35,11 @@ struct LayerRoughness_wrapper : LayerRoughness, bp::wrapper< LayerRoughness > { virtual ::LayerRoughness * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->LayerRoughness::clone( ); - } } + ::LayerRoughness * default_clone( ) const { return LayerRoughness::clone( ); } @@ -47,11 +47,11 @@ struct LayerRoughness_wrapper : LayerRoughness, bp::wrapper< LayerRoughness > { virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -59,11 +59,11 @@ struct LayerRoughness_wrapper : LayerRoughness, bp::wrapper< LayerRoughness > { virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -71,11 +71,11 @@ struct LayerRoughness_wrapper : LayerRoughness, bp::wrapper< LayerRoughness > { virtual ::ISample * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ISample::cloneInvertB( ); - } } + ::ISample * default_cloneInvertB( ) const { return ISample::cloneInvertB( ); } @@ -83,11 +83,11 @@ struct LayerRoughness_wrapper : LayerRoughness, bp::wrapper< LayerRoughness > { virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -95,11 +95,11 @@ struct LayerRoughness_wrapper : LayerRoughness, bp::wrapper< LayerRoughness > { virtual ::ICompositeSample const * getCompositeSample( ) const { if( bp::override func_getCompositeSample = this->get_override( "getCompositeSample" ) ) return func_getCompositeSample( ); - else{ + else return this->ISample::getCompositeSample( ); - } } + ::ICompositeSample const * default_getCompositeSample( ) const { return ISample::getCompositeSample( ); } @@ -107,11 +107,11 @@ struct LayerRoughness_wrapper : LayerRoughness, bp::wrapper< LayerRoughness > { virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -138,11 +138,11 @@ struct LayerRoughness_wrapper : LayerRoughness, bp::wrapper< LayerRoughness > { virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -150,11 +150,11 @@ struct LayerRoughness_wrapper : LayerRoughness, bp::wrapper< LayerRoughness > { virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -162,11 +162,11 @@ struct LayerRoughness_wrapper : LayerRoughness, bp::wrapper< LayerRoughness > { virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/MesoCrystal.pypp.cpp b/Core/PythonAPI/src/MesoCrystal.pypp.cpp index 6a2f367506a5b59d151f5dc5dd0cae5f8bc6d405..bb98f62c6dbfc86dfb975e0a87fc26d793e39aa1 100644 --- a/Core/PythonAPI/src/MesoCrystal.pypp.cpp +++ b/Core/PythonAPI/src/MesoCrystal.pypp.cpp @@ -28,11 +28,11 @@ struct MesoCrystal_wrapper : MesoCrystal, bp::wrapper< MesoCrystal > { virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -40,11 +40,11 @@ struct MesoCrystal_wrapper : MesoCrystal, bp::wrapper< MesoCrystal > { virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -52,11 +52,11 @@ struct MesoCrystal_wrapper : MesoCrystal, bp::wrapper< MesoCrystal > { virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -64,11 +64,11 @@ struct MesoCrystal_wrapper : MesoCrystal, bp::wrapper< MesoCrystal > { virtual ::IMaterial const * getMaterial( ) const { if( bp::override func_getMaterial = this->get_override( "getMaterial" ) ) return func_getMaterial( ); - else{ + else return this->Particle::getMaterial( ); - } } + ::IMaterial const * default_getMaterial( ) const { return Particle::getMaterial( ); } @@ -76,11 +76,11 @@ struct MesoCrystal_wrapper : MesoCrystal, bp::wrapper< MesoCrystal > { virtual ::complex_t getRefractiveIndex( ) const { if( bp::override func_getRefractiveIndex = this->get_override( "getRefractiveIndex" ) ) return func_getRefractiveIndex( ); - else{ + else return this->Particle::getRefractiveIndex( ); - } } + ::complex_t default_getRefractiveIndex( ) const { return Particle::getRefractiveIndex( ); } @@ -88,11 +88,11 @@ struct MesoCrystal_wrapper : MesoCrystal, bp::wrapper< MesoCrystal > { virtual bool hasDistributedFormFactor( ) const { if( bp::override func_hasDistributedFormFactor = this->get_override( "hasDistributedFormFactor" ) ) return func_hasDistributedFormFactor( ); - else{ + else return this->Particle::hasDistributedFormFactor( ); - } } + bool default_hasDistributedFormFactor( ) const { return Particle::hasDistributedFormFactor( ); } @@ -100,11 +100,11 @@ struct MesoCrystal_wrapper : MesoCrystal, bp::wrapper< MesoCrystal > { virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -131,11 +131,11 @@ struct MesoCrystal_wrapper : MesoCrystal, bp::wrapper< MesoCrystal > { virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -143,11 +143,11 @@ struct MesoCrystal_wrapper : MesoCrystal, bp::wrapper< MesoCrystal > { virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -155,11 +155,11 @@ struct MesoCrystal_wrapper : MesoCrystal, bp::wrapper< MesoCrystal > { virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -167,11 +167,11 @@ struct MesoCrystal_wrapper : MesoCrystal, bp::wrapper< MesoCrystal > { virtual void setTransform( ::Geometry::PTransform3D const & transform ) { if( bp::override func_setTransform = this->get_override( "setTransform" ) ) func_setTransform( transform ); - else{ + else this->Particle::setTransform( transform ); - } } + void default_setTransform( ::Geometry::PTransform3D const & transform ) { Particle::setTransform( transform ); } diff --git a/Core/PythonAPI/src/MultiLayer.pypp.cpp b/Core/PythonAPI/src/MultiLayer.pypp.cpp index dde8ee8de51a1495cb63445e94e6eaa7b250f3d6..952e7ef6edf4e0cf450b630af996cb4d07e83a61 100644 --- a/Core/PythonAPI/src/MultiLayer.pypp.cpp +++ b/Core/PythonAPI/src/MultiLayer.pypp.cpp @@ -28,11 +28,11 @@ struct MultiLayer_wrapper : MultiLayer, bp::wrapper< MultiLayer > { virtual ::MultiLayer * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->MultiLayer::clone( ); - } } + ::MultiLayer * default_clone( ) const { return MultiLayer::clone( ); } @@ -40,11 +40,11 @@ struct MultiLayer_wrapper : MultiLayer, bp::wrapper< MultiLayer > { virtual ::MultiLayer * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->MultiLayer::cloneInvertB( ); - } } + ::MultiLayer * default_cloneInvertB( ) const { return MultiLayer::cloneInvertB( ); } @@ -52,11 +52,11 @@ struct MultiLayer_wrapper : MultiLayer, bp::wrapper< MultiLayer > { virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -64,11 +64,11 @@ struct MultiLayer_wrapper : MultiLayer, bp::wrapper< MultiLayer > { virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -76,11 +76,11 @@ struct MultiLayer_wrapper : MultiLayer, bp::wrapper< MultiLayer > { virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -88,11 +88,11 @@ struct MultiLayer_wrapper : MultiLayer, bp::wrapper< MultiLayer > { virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -119,11 +119,11 @@ struct MultiLayer_wrapper : MultiLayer, bp::wrapper< MultiLayer > { virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -131,11 +131,11 @@ struct MultiLayer_wrapper : MultiLayer, bp::wrapper< MultiLayer > { virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -143,11 +143,11 @@ struct MultiLayer_wrapper : MultiLayer, bp::wrapper< MultiLayer > { virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -224,7 +224,7 @@ void register_MultiLayer_class(){ } { //::MultiLayer::getCrossCorrSpectralFun - typedef double ( ::MultiLayer::*getCrossCorrSpectralFun_function_type )( ::kvector_t const &,::size_t,::size_t ) const; + typedef double ( ::MultiLayer::*getCrossCorrSpectralFun_function_type )( ::kvector_t const &,::std::size_t,::std::size_t ) const; MultiLayer_exposer.def( "getCrossCorrSpectralFun" @@ -234,7 +234,7 @@ void register_MultiLayer_class(){ } { //::MultiLayer::getLayer - typedef ::Layer const * ( ::MultiLayer::*getLayer_function_type )( ::size_t ) const; + typedef ::Layer const * ( ::MultiLayer::*getLayer_function_type )( ::std::size_t ) const; MultiLayer_exposer.def( "getLayer" @@ -245,7 +245,7 @@ void register_MultiLayer_class(){ } { //::MultiLayer::getLayerBottomInterface - typedef ::LayerInterface const * ( ::MultiLayer::*getLayerBottomInterface_function_type )( ::size_t ) const; + typedef ::LayerInterface const * ( ::MultiLayer::*getLayerBottomInterface_function_type )( ::std::size_t ) const; MultiLayer_exposer.def( "getLayerBottomInterface" @@ -256,7 +256,7 @@ void register_MultiLayer_class(){ } { //::MultiLayer::getLayerBottomZ - typedef double ( ::MultiLayer::*getLayerBottomZ_function_type )( ::size_t ) const; + typedef double ( ::MultiLayer::*getLayerBottomZ_function_type )( ::std::size_t ) const; MultiLayer_exposer.def( "getLayerBottomZ" @@ -266,7 +266,7 @@ void register_MultiLayer_class(){ } { //::MultiLayer::getLayerInterface - typedef ::LayerInterface const * ( ::MultiLayer::*getLayerInterface_function_type )( ::size_t ) const; + typedef ::LayerInterface const * ( ::MultiLayer::*getLayerInterface_function_type )( ::std::size_t ) const; MultiLayer_exposer.def( "getLayerInterface" @@ -277,7 +277,7 @@ void register_MultiLayer_class(){ } { //::MultiLayer::getLayerThickness - typedef double ( ::MultiLayer::*getLayerThickness_function_type )( ::size_t ) const; + typedef double ( ::MultiLayer::*getLayerThickness_function_type )( ::std::size_t ) const; MultiLayer_exposer.def( "getLayerThickness" @@ -287,7 +287,7 @@ void register_MultiLayer_class(){ } { //::MultiLayer::getLayerTopInterface - typedef ::LayerInterface const * ( ::MultiLayer::*getLayerTopInterface_function_type )( ::size_t ) const; + typedef ::LayerInterface const * ( ::MultiLayer::*getLayerTopInterface_function_type )( ::std::size_t ) const; MultiLayer_exposer.def( "getLayerTopInterface" @@ -298,7 +298,7 @@ void register_MultiLayer_class(){ } { //::MultiLayer::getNumberOfInterfaces - typedef ::size_t ( ::MultiLayer::*getNumberOfInterfaces_function_type )( ) const; + typedef ::std::size_t ( ::MultiLayer::*getNumberOfInterfaces_function_type )( ) const; MultiLayer_exposer.def( "getNumberOfInterfaces" @@ -307,7 +307,7 @@ void register_MultiLayer_class(){ } { //::MultiLayer::getNumberOfLayers - typedef ::size_t ( ::MultiLayer::*getNumberOfLayers_function_type )( ) const; + typedef ::std::size_t ( ::MultiLayer::*getNumberOfLayers_function_type )( ) const; MultiLayer_exposer.def( "getNumberOfLayers" @@ -326,7 +326,7 @@ void register_MultiLayer_class(){ } { //::MultiLayer::setLayerThickness - typedef void ( ::MultiLayer::*setLayerThickness_function_type )( ::size_t,double ) ; + typedef void ( ::MultiLayer::*setLayerThickness_function_type )( ::std::size_t,double ) ; MultiLayer_exposer.def( "setLayerThickness" diff --git a/Core/PythonAPI/src/ParameterPool.pypp.cpp b/Core/PythonAPI/src/ParameterPool.pypp.cpp index 914cffcceb87c743ab97a780af190e5900711dce..88a890adef42f8d7457b59117ee8e8606bba2a3c 100644 --- a/Core/PythonAPI/src/ParameterPool.pypp.cpp +++ b/Core/PythonAPI/src/ParameterPool.pypp.cpp @@ -26,11 +26,11 @@ struct ParameterPool_wrapper : ParameterPool, bp::wrapper< ParameterPool > { virtual ::ParameterPool * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->ParameterPool::clone( ); - } } + ::ParameterPool * default_clone( ) const { return ParameterPool::clone( ); } @@ -127,7 +127,7 @@ void register_ParameterPool_class(){ } { //::ParameterPool::size - typedef ::size_t ( ::ParameterPool::*size_function_type )( ) const; + typedef ::std::size_t ( ::ParameterPool::*size_function_type )( ) const; ParameterPool_exposer.def( "size" diff --git a/Core/PythonAPI/src/Particle.pypp.cpp b/Core/PythonAPI/src/Particle.pypp.cpp index 14998ed4fb092e26f6a31474b676b26af22591b5..0862c04e8d5b9b4c02a6a48bbbf77ccad7d0fa97 100644 --- a/Core/PythonAPI/src/Particle.pypp.cpp +++ b/Core/PythonAPI/src/Particle.pypp.cpp @@ -42,11 +42,11 @@ struct Particle_wrapper : Particle, bp::wrapper< Particle > { virtual ::Particle * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->Particle::clone( ); - } } + ::Particle * default_clone( ) const { return Particle::clone( ); } @@ -54,11 +54,11 @@ struct Particle_wrapper : Particle, bp::wrapper< Particle > { virtual ::Particle * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->Particle::cloneInvertB( ); - } } + ::Particle * default_cloneInvertB( ) const { return Particle::cloneInvertB( ); } @@ -66,11 +66,11 @@ struct Particle_wrapper : Particle, bp::wrapper< Particle > { virtual ::IFormFactor * createFormFactor( ::complex_t wavevector_scattering_factor ) const { if( bp::override func_createFormFactor = this->get_override( "createFormFactor" ) ) return func_createFormFactor( wavevector_scattering_factor ); - else{ + else return this->Particle::createFormFactor( wavevector_scattering_factor ); - } } + ::IFormFactor * default_createFormFactor( ::complex_t wavevector_scattering_factor ) const { return Particle::createFormFactor( wavevector_scattering_factor ); } @@ -78,11 +78,11 @@ struct Particle_wrapper : Particle, bp::wrapper< Particle > { virtual ::IMaterial const * getMaterial( ) const { if( bp::override func_getMaterial = this->get_override( "getMaterial" ) ) return func_getMaterial( ); - else{ + else return this->Particle::getMaterial( ); - } } + ::IMaterial const * default_getMaterial( ) const { return Particle::getMaterial( ); } @@ -90,11 +90,11 @@ struct Particle_wrapper : Particle, bp::wrapper< Particle > { virtual ::complex_t getRefractiveIndex( ) const { if( bp::override func_getRefractiveIndex = this->get_override( "getRefractiveIndex" ) ) return func_getRefractiveIndex( ); - else{ + else return this->Particle::getRefractiveIndex( ); - } } + ::complex_t default_getRefractiveIndex( ) const { return Particle::getRefractiveIndex( ); } @@ -102,11 +102,11 @@ struct Particle_wrapper : Particle, bp::wrapper< Particle > { virtual ::IFormFactor const * getSimpleFormFactor( ) const { if( bp::override func_getSimpleFormFactor = this->get_override( "getSimpleFormFactor" ) ) return func_getSimpleFormFactor( ); - else{ + else return this->Particle::getSimpleFormFactor( ); - } } + ::IFormFactor const * default_getSimpleFormFactor( ) const { return Particle::getSimpleFormFactor( ); } @@ -114,11 +114,11 @@ struct Particle_wrapper : Particle, bp::wrapper< Particle > { virtual bool hasDistributedFormFactor( ) const { if( bp::override func_hasDistributedFormFactor = this->get_override( "hasDistributedFormFactor" ) ) return func_hasDistributedFormFactor( ); - else{ + else return this->Particle::hasDistributedFormFactor( ); - } } + bool default_hasDistributedFormFactor( ) const { return Particle::hasDistributedFormFactor( ); } @@ -126,11 +126,11 @@ struct Particle_wrapper : Particle, bp::wrapper< Particle > { virtual void setTransform( ::Geometry::PTransform3D const & transform ) { if( bp::override func_setTransform = this->get_override( "setTransform" ) ) func_setTransform( transform ); - else{ + else this->Particle::setTransform( transform ); - } } + void default_setTransform( ::Geometry::PTransform3D const & transform ) { Particle::setTransform( transform ); } @@ -138,11 +138,11 @@ struct Particle_wrapper : Particle, bp::wrapper< Particle > { virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -150,11 +150,11 @@ struct Particle_wrapper : Particle, bp::wrapper< Particle > { virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -162,11 +162,11 @@ struct Particle_wrapper : Particle, bp::wrapper< Particle > { virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -174,11 +174,11 @@ struct Particle_wrapper : Particle, bp::wrapper< Particle > { virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -205,11 +205,11 @@ struct Particle_wrapper : Particle, bp::wrapper< Particle > { virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -217,11 +217,11 @@ struct Particle_wrapper : Particle, bp::wrapper< Particle > { virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -229,11 +229,11 @@ struct Particle_wrapper : Particle, bp::wrapper< Particle > { virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/ParticleCoreShell.pypp.cpp b/Core/PythonAPI/src/ParticleCoreShell.pypp.cpp index 9bf73f518ba0795cfe418b221f2439645360a147..cb29797283e495f116959f17658550f8410fb87f 100644 --- a/Core/PythonAPI/src/ParticleCoreShell.pypp.cpp +++ b/Core/PythonAPI/src/ParticleCoreShell.pypp.cpp @@ -28,11 +28,11 @@ struct ParticleCoreShell_wrapper : ParticleCoreShell, bp::wrapper< ParticleCoreS virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -40,11 +40,11 @@ struct ParticleCoreShell_wrapper : ParticleCoreShell, bp::wrapper< ParticleCoreS virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -52,11 +52,11 @@ struct ParticleCoreShell_wrapper : ParticleCoreShell, bp::wrapper< ParticleCoreS virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -64,11 +64,11 @@ struct ParticleCoreShell_wrapper : ParticleCoreShell, bp::wrapper< ParticleCoreS virtual ::IMaterial const * getMaterial( ) const { if( bp::override func_getMaterial = this->get_override( "getMaterial" ) ) return func_getMaterial( ); - else{ + else return this->Particle::getMaterial( ); - } } + ::IMaterial const * default_getMaterial( ) const { return Particle::getMaterial( ); } @@ -76,11 +76,11 @@ struct ParticleCoreShell_wrapper : ParticleCoreShell, bp::wrapper< ParticleCoreS virtual ::complex_t getRefractiveIndex( ) const { if( bp::override func_getRefractiveIndex = this->get_override( "getRefractiveIndex" ) ) return func_getRefractiveIndex( ); - else{ + else return this->Particle::getRefractiveIndex( ); - } } + ::complex_t default_getRefractiveIndex( ) const { return Particle::getRefractiveIndex( ); } @@ -88,11 +88,11 @@ struct ParticleCoreShell_wrapper : ParticleCoreShell, bp::wrapper< ParticleCoreS virtual bool hasDistributedFormFactor( ) const { if( bp::override func_hasDistributedFormFactor = this->get_override( "hasDistributedFormFactor" ) ) return func_hasDistributedFormFactor( ); - else{ + else return this->Particle::hasDistributedFormFactor( ); - } } + bool default_hasDistributedFormFactor( ) const { return Particle::hasDistributedFormFactor( ); } @@ -100,11 +100,11 @@ struct ParticleCoreShell_wrapper : ParticleCoreShell, bp::wrapper< ParticleCoreS virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -131,11 +131,11 @@ struct ParticleCoreShell_wrapper : ParticleCoreShell, bp::wrapper< ParticleCoreS virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -143,11 +143,11 @@ struct ParticleCoreShell_wrapper : ParticleCoreShell, bp::wrapper< ParticleCoreS virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -155,11 +155,11 @@ struct ParticleCoreShell_wrapper : ParticleCoreShell, bp::wrapper< ParticleCoreS virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -167,11 +167,11 @@ struct ParticleCoreShell_wrapper : ParticleCoreShell, bp::wrapper< ParticleCoreS virtual void setTransform( ::Geometry::PTransform3D const & transform ) { if( bp::override func_setTransform = this->get_override( "setTransform" ) ) func_setTransform( transform ); - else{ + else this->Particle::setTransform( transform ); - } } + void default_setTransform( ::Geometry::PTransform3D const & transform ) { Particle::setTransform( transform ); } diff --git a/Core/PythonAPI/src/ParticleDecoration.pypp.cpp b/Core/PythonAPI/src/ParticleDecoration.pypp.cpp index 43ff146e9391d6b4a2505c282a072300d84681d1..8760f2b84a7779458155d5bee7a1733bcdf28239 100644 --- a/Core/PythonAPI/src/ParticleDecoration.pypp.cpp +++ b/Core/PythonAPI/src/ParticleDecoration.pypp.cpp @@ -28,11 +28,11 @@ struct ParticleDecoration_wrapper : ParticleDecoration, bp::wrapper< ParticleDec virtual ::ParticleDecoration * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->ParticleDecoration::clone( ); - } } + ::ParticleDecoration * default_clone( ) const { return ParticleDecoration::clone( ); } @@ -40,83 +40,83 @@ struct ParticleDecoration_wrapper : ParticleDecoration, bp::wrapper< ParticleDec virtual ::ParticleDecoration * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ParticleDecoration::cloneInvertB( ); - } } + ::ParticleDecoration * default_cloneInvertB( ) const { return ParticleDecoration::cloneInvertB( ); } - virtual double getAbundanceFractionOfParticle( ::size_t index ) const { + virtual double getAbundanceFractionOfParticle( ::std::size_t index ) const { if( bp::override func_getAbundanceFractionOfParticle = this->get_override( "getAbundanceFractionOfParticle" ) ) return func_getAbundanceFractionOfParticle( index ); - else{ + else return this->ParticleDecoration::getAbundanceFractionOfParticle( index ); - } } - double default_getAbundanceFractionOfParticle( ::size_t index ) const { + + double default_getAbundanceFractionOfParticle( ::std::size_t index ) const { return ParticleDecoration::getAbundanceFractionOfParticle( index ); } virtual ::SafePointerVector< IInterferenceFunction > getInterferenceFunctions( ) const { if( bp::override func_getInterferenceFunctions = this->get_override( "getInterferenceFunctions" ) ) return func_getInterferenceFunctions( ); - else{ + else return this->ParticleDecoration::getInterferenceFunctions( ); - } } + ::SafePointerVector< IInterferenceFunction > default_getInterferenceFunctions( ) const { return ParticleDecoration::getInterferenceFunctions( ); } - virtual ::size_t getNumberOfInterferenceFunctions( ) const { + virtual ::std::size_t getNumberOfInterferenceFunctions( ) const { if( bp::override func_getNumberOfInterferenceFunctions = this->get_override( "getNumberOfInterferenceFunctions" ) ) return func_getNumberOfInterferenceFunctions( ); - else{ + else return this->ParticleDecoration::getNumberOfInterferenceFunctions( ); - } } - ::size_t default_getNumberOfInterferenceFunctions( ) const { + + ::std::size_t default_getNumberOfInterferenceFunctions( ) const { return ParticleDecoration::getNumberOfInterferenceFunctions( ); } - virtual ::size_t getNumberOfParticles( ) const { + virtual ::std::size_t getNumberOfParticles( ) const { if( bp::override func_getNumberOfParticles = this->get_override( "getNumberOfParticles" ) ) return func_getNumberOfParticles( ); - else{ + else return this->ParticleDecoration::getNumberOfParticles( ); - } } - ::size_t default_getNumberOfParticles( ) const { + + ::std::size_t default_getNumberOfParticles( ) const { return ParticleDecoration::getNumberOfParticles( ); } - virtual ::ParticleInfo const * getParticleInfo( ::size_t index ) const { + virtual ::ParticleInfo const * getParticleInfo( ::std::size_t index ) const { if( bp::override func_getParticleInfo = this->get_override( "getParticleInfo" ) ) return func_getParticleInfo( index ); - else{ + else return this->ParticleDecoration::getParticleInfo( index ); - } } - ::ParticleInfo const * default_getParticleInfo( ::size_t index ) const { + + ::ParticleInfo const * default_getParticleInfo( ::std::size_t index ) const { return ParticleDecoration::getParticleInfo( index ); } virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -124,11 +124,11 @@ struct ParticleDecoration_wrapper : ParticleDecoration, bp::wrapper< ParticleDec virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -136,11 +136,11 @@ struct ParticleDecoration_wrapper : ParticleDecoration, bp::wrapper< ParticleDec virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -148,11 +148,11 @@ struct ParticleDecoration_wrapper : ParticleDecoration, bp::wrapper< ParticleDec virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -179,11 +179,11 @@ struct ParticleDecoration_wrapper : ParticleDecoration, bp::wrapper< ParticleDec virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -191,11 +191,11 @@ struct ParticleDecoration_wrapper : ParticleDecoration, bp::wrapper< ParticleDec virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -203,11 +203,11 @@ struct ParticleDecoration_wrapper : ParticleDecoration, bp::wrapper< ParticleDec virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -286,8 +286,8 @@ void register_ParticleDecoration_class(){ } { //::ParticleDecoration::getAbundanceFractionOfParticle - typedef double ( ::ParticleDecoration::*getAbundanceFractionOfParticle_function_type )( ::size_t ) const; - typedef double ( ParticleDecoration_wrapper::*default_getAbundanceFractionOfParticle_function_type )( ::size_t ) const; + typedef double ( ::ParticleDecoration::*getAbundanceFractionOfParticle_function_type )( ::std::size_t ) const; + typedef double ( ParticleDecoration_wrapper::*default_getAbundanceFractionOfParticle_function_type )( ::std::size_t ) const; ParticleDecoration_exposer.def( "getAbundanceFractionOfParticle" @@ -298,7 +298,7 @@ void register_ParticleDecoration_class(){ } { //::ParticleDecoration::getInterferenceFunction - typedef ::IInterferenceFunction const * ( ::ParticleDecoration::*getInterferenceFunction_function_type )( ::size_t ) const; + typedef ::IInterferenceFunction const * ( ::ParticleDecoration::*getInterferenceFunction_function_type )( ::std::size_t ) const; ParticleDecoration_exposer.def( "getInterferenceFunction" @@ -320,8 +320,8 @@ void register_ParticleDecoration_class(){ } { //::ParticleDecoration::getNumberOfInterferenceFunctions - typedef ::size_t ( ::ParticleDecoration::*getNumberOfInterferenceFunctions_function_type )( ) const; - typedef ::size_t ( ParticleDecoration_wrapper::*default_getNumberOfInterferenceFunctions_function_type )( ) const; + typedef ::std::size_t ( ::ParticleDecoration::*getNumberOfInterferenceFunctions_function_type )( ) const; + typedef ::std::size_t ( ParticleDecoration_wrapper::*default_getNumberOfInterferenceFunctions_function_type )( ) const; ParticleDecoration_exposer.def( "getNumberOfInterferenceFunctions" @@ -331,8 +331,8 @@ void register_ParticleDecoration_class(){ } { //::ParticleDecoration::getNumberOfParticles - typedef ::size_t ( ::ParticleDecoration::*getNumberOfParticles_function_type )( ) const; - typedef ::size_t ( ParticleDecoration_wrapper::*default_getNumberOfParticles_function_type )( ) const; + typedef ::std::size_t ( ::ParticleDecoration::*getNumberOfParticles_function_type )( ) const; + typedef ::std::size_t ( ParticleDecoration_wrapper::*default_getNumberOfParticles_function_type )( ) const; ParticleDecoration_exposer.def( "getNumberOfParticles" @@ -342,8 +342,8 @@ void register_ParticleDecoration_class(){ } { //::ParticleDecoration::getParticleInfo - typedef ::ParticleInfo const * ( ::ParticleDecoration::*getParticleInfo_function_type )( ::size_t ) const; - typedef ::ParticleInfo const * ( ParticleDecoration_wrapper::*default_getParticleInfo_function_type )( ::size_t ) const; + typedef ::ParticleInfo const * ( ::ParticleDecoration::*getParticleInfo_function_type )( ::std::size_t ) const; + typedef ::ParticleInfo const * ( ParticleDecoration_wrapper::*default_getParticleInfo_function_type )( ::std::size_t ) const; ParticleDecoration_exposer.def( "getParticleInfo" diff --git a/Core/PythonAPI/src/ParticleInfo.pypp.cpp b/Core/PythonAPI/src/ParticleInfo.pypp.cpp index a5cb7be1f6c20e8a0ee154e3bb4bd1ab20df79bd..8abca7748194fbfb60739876042c36a7a9768dce 100644 --- a/Core/PythonAPI/src/ParticleInfo.pypp.cpp +++ b/Core/PythonAPI/src/ParticleInfo.pypp.cpp @@ -28,11 +28,11 @@ struct ParticleInfo_wrapper : ParticleInfo, bp::wrapper< ParticleInfo > { virtual ::ParticleInfo * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->ParticleInfo::clone( ); - } } + ::ParticleInfo * default_clone( ) const { return ParticleInfo::clone( ); } @@ -40,11 +40,11 @@ struct ParticleInfo_wrapper : ParticleInfo, bp::wrapper< ParticleInfo > { virtual ::ParticleInfo * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ParticleInfo::cloneInvertB( ); - } } + ::ParticleInfo * default_cloneInvertB( ) const { return ParticleInfo::cloneInvertB( ); } @@ -52,11 +52,11 @@ struct ParticleInfo_wrapper : ParticleInfo, bp::wrapper< ParticleInfo > { virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -64,11 +64,11 @@ struct ParticleInfo_wrapper : ParticleInfo, bp::wrapper< ParticleInfo > { virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -76,11 +76,11 @@ struct ParticleInfo_wrapper : ParticleInfo, bp::wrapper< ParticleInfo > { virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -88,11 +88,11 @@ struct ParticleInfo_wrapper : ParticleInfo, bp::wrapper< ParticleInfo > { virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -119,11 +119,11 @@ struct ParticleInfo_wrapper : ParticleInfo, bp::wrapper< ParticleInfo > { virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -131,11 +131,11 @@ struct ParticleInfo_wrapper : ParticleInfo, bp::wrapper< ParticleInfo > { virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -143,11 +143,11 @@ struct ParticleInfo_wrapper : ParticleInfo, bp::wrapper< ParticleInfo > { virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/PositionParticleInfo.pypp.cpp b/Core/PythonAPI/src/PositionParticleInfo.pypp.cpp index 3e94fdb5370189ec341d03d99d23d3237efacf2c..55d6ffaab413be8c78dedf2a28a83d18af1f6747 100644 --- a/Core/PythonAPI/src/PositionParticleInfo.pypp.cpp +++ b/Core/PythonAPI/src/PositionParticleInfo.pypp.cpp @@ -28,11 +28,11 @@ struct PositionParticleInfo_wrapper : PositionParticleInfo, bp::wrapper< Positio virtual ::PositionParticleInfo * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->PositionParticleInfo::clone( ); - } } + ::PositionParticleInfo * default_clone( ) const { return PositionParticleInfo::clone( ); } @@ -40,11 +40,11 @@ struct PositionParticleInfo_wrapper : PositionParticleInfo, bp::wrapper< Positio virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -52,11 +52,11 @@ struct PositionParticleInfo_wrapper : PositionParticleInfo, bp::wrapper< Positio virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -64,11 +64,11 @@ struct PositionParticleInfo_wrapper : PositionParticleInfo, bp::wrapper< Positio virtual ::ParticleInfo * cloneInvertB( ) const { if( bp::override func_cloneInvertB = this->get_override( "cloneInvertB" ) ) return func_cloneInvertB( ); - else{ + else return this->ParticleInfo::cloneInvertB( ); - } } + ::ParticleInfo * default_cloneInvertB( ) const { return ParticleInfo::cloneInvertB( ); } @@ -76,11 +76,11 @@ struct PositionParticleInfo_wrapper : PositionParticleInfo, bp::wrapper< Positio virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -88,11 +88,11 @@ struct PositionParticleInfo_wrapper : PositionParticleInfo, bp::wrapper< Positio virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -119,11 +119,11 @@ struct PositionParticleInfo_wrapper : PositionParticleInfo, bp::wrapper< Positio virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -131,11 +131,11 @@ struct PositionParticleInfo_wrapper : PositionParticleInfo, bp::wrapper< Positio virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -143,11 +143,11 @@ struct PositionParticleInfo_wrapper : PositionParticleInfo, bp::wrapper< Positio virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/PythonModule.cpp b/Core/PythonAPI/src/PythonModule.cpp index 8b364db0c182221d42206b0978fd09509caeb764..4fcc2fff62a0335cd417aee12dd9c9ed99e8851f 100644 --- a/Core/PythonAPI/src/PythonModule.cpp +++ b/Core/PythonAPI/src/PythonModule.cpp @@ -3,91 +3,91 @@ #include "numpy/arrayobject.h" // the order of 3 guys above is important -#include "Beam.pypp.h" -#include "Bin1D.pypp.h" -#include "Bin1DCVector.pypp.h" -#include "Crystal.pypp.h" -#include "cvector_t.pypp.h" +#include "RotateZ_3D.pypp.h" +#include "IFTDistribution2D.pypp.h" #include "Detector.pypp.h" -#include "FormFactorBox.pypp.h" -#include "FormFactorCone.pypp.h" -#include "FormFactorCrystal.pypp.h" +#include "LatticeBasis.pypp.h" +#include "ParticleCoreShell.pypp.h" +#include "Beam.pypp.h" +#include "Lattice.pypp.h" #include "FormFactorCylinder.pypp.h" -#include "FormFactorDecoratorDebyeWaller.pypp.h" -#include "FormFactorEllipsoid.pypp.h" -#include "FormFactorFullSphere.pypp.h" -#include "FormFactorFullSpheroid.pypp.h" -#include "FormFactorGauss.pypp.h" -#include "FormFactorHemiSpheroid.pypp.h" -#include "FormFactorLorentz.pypp.h" +#include "ICloneable.pypp.h" +#include "StochasticSampledParameter.pypp.h" +#include "HomogeneousMaterial.pypp.h" +#include "vector_integer_t.pypp.h" +#include "IAxis.pypp.h" +#include "Layer.pypp.h" +#include "IFormFactor.pypp.h" #include "FormFactorParallelepiped.pypp.h" -#include "FormFactorPrism3.pypp.h" +#include "RealParameterWrapper.pypp.h" +#include "MaterialManager.pypp.h" +#include "ResolutionFunction2DSimple.pypp.h" +#include "SimulationParameters.pypp.h" +#include "FormFactorGauss.pypp.h" +#include "FormFactorFullSpheroid.pypp.h" +#include "PythonInterface_global_variables.pypp.h" +#include "ISampleBuilder.pypp.h" +#include "StochasticParameter_t.pypp.h" +#include "StochasticDoubleGaussian.pypp.h" #include "FormFactorPrism6.pypp.h" +#include "InterferenceFunction2DLattice.pypp.h" #include "FormFactorPyramid.pypp.h" -#include "FormFactorSphere.pypp.h" -#include "FormFactorSphereGaussianRadius.pypp.h" +#include "FormFactorBox.pypp.h" +#include "IResolutionFunction2D.pypp.h" +#include "IFormFactorBorn.pypp.h" +#include "MultiLayer.pypp.h" +#include "ITransform3D.pypp.h" +#include "ParticleDecoration.pypp.h" +#include "IDecoration.pypp.h" #include "FTDistribution2DCauchy.pypp.h" -#include "HomogeneousMaterial.pypp.h" -#include "IAxis.pypp.h" -#include "ICloneable.pypp.h" -#include "IClusteredParticles.pypp.h" #include "ICompositeSample.pypp.h" -#include "IDecoration.pypp.h" -#include "IDetectorResolution.pypp.h" -#include "IFormFactor.pypp.h" -#include "IFormFactorBorn.pypp.h" -#include "IFormFactorDecorator.pypp.h" -#include "IFTDistribution2D.pypp.h" -#include "IInterferenceFunction.pypp.h" +#include "cvector_t.pypp.h" +#include "ParameterPool.pypp.h" +#include "Particle.pypp.h" +#include "FormFactorCone.pypp.h" +#include "FormFactorPrism3.pypp.h" +#include "InterferenceFunction2DParaCrystal.pypp.h" +#include "vdouble1d_t.pypp.h" +#include "MesoCrystal.pypp.h" +#include "RotateY_3D.pypp.h" +#include "FormFactorDecoratorDebyeWaller.pypp.h" +#include "vector_IFormFactorPtr_t.pypp.h" #include "IMaterial.pypp.h" +#include "IFormFactorDecorator.pypp.h" #include "Instrument.pypp.h" -#include "InterferenceFunction1DParaCrystal.pypp.h" -#include "InterferenceFunction2DLattice.pypp.h" -#include "InterferenceFunction2DParaCrystal.pypp.h" -#include "InterferenceFunctionNone.pypp.h" -#include "IParameterized.pypp.h" -#include "IResolutionFunction2D.pypp.h" -#include "ISample.pypp.h" -#include "ISampleBuilder.pypp.h" +#include "IDetectorResolution.pypp.h" #include "ISelectionRule.pypp.h" -#include "ITransform3D.pypp.h" -#include "kvector_t.pypp.h" -#include "Lattice.pypp.h" -#include "Lattice2DIFParameters.pypp.h" -#include "LatticeBasis.pypp.h" -#include "Layer.pypp.h" +#include "Bin1D.pypp.h" +#include "ParticleInfo.pypp.h" +#include "vector_longinteger_t.pypp.h" +#include "FormFactorHemiSpheroid.pypp.h" #include "LayerInterface.pypp.h" +#include "FormFactorFullSphere.pypp.h" +#include "PositionParticleInfo.pypp.h" #include "LayerRoughness.pypp.h" -#include "MaterialManager.pypp.h" -#include "MesoCrystal.pypp.h" -#include "MultiLayer.pypp.h" +#include "FormFactorCrystal.pypp.h" +#include "IParameterized.pypp.h" +#include "Bin1DCVector.pypp.h" +#include "StochasticDoubleGate.pypp.h" +#include "IClusteredParticles.pypp.h" +#include "IInterferenceFunction.pypp.h" +#include "SimpleSelectionRule.pypp.h" #include "ndimdata_t.pypp.h" +#include "FormFactorLorentz.pypp.h" #include "OutputDataIOFactory.pypp.h" -#include "ParameterPool.pypp.h" -#include "Particle.pypp.h" -#include "ParticleBuilder.pypp.h" -#include "ParticleCoreShell.pypp.h" -#include "ParticleDecoration.pypp.h" -#include "ParticleInfo.pypp.h" -#include "PositionParticleInfo.pypp.h" +#include "vector_kvector_t.pypp.h" +#include "InterferenceFunction1DParaCrystal.pypp.h" +#include "InterferenceFunctionNone.pypp.h" +#include "Crystal.pypp.h" #include "PythonInterface_free_functions.pypp.h" -#include "PythonInterface_global_variables.pypp.h" -#include "RealParameterWrapper.pypp.h" -#include "ResolutionFunction2DSimple.pypp.h" -#include "RotateY_3D.pypp.h" -#include "RotateZ_3D.pypp.h" -#include "SimpleSelectionRule.pypp.h" +#include "kvector_t.pypp.h" +#include "FormFactorEllipsoid.pypp.h" #include "Simulation.pypp.h" -#include "SimulationParameters.pypp.h" -#include "StochasticDoubleGate.pypp.h" -#include "StochasticDoubleGaussian.pypp.h" -#include "StochasticParameter_t.pypp.h" -#include "StochasticSampledParameter.pypp.h" -#include "vdouble1d_t.pypp.h" -#include "vector_IFormFactorPtr_t.pypp.h" -#include "vector_integer_t.pypp.h" -#include "vector_kvector_t.pypp.h" -#include "vector_longinteger_t.pypp.h" +#include "ISample.pypp.h" +#include "ParticleBuilder.pypp.h" +#include "FormFactorSphereGaussianRadius.pypp.h" +#include "Lattice2DIFParameters.pypp.h" +#include "FormFactorSphere.pypp.h" #include "__call_policies.pypp.hpp" #include "__convenience.pypp.hpp" diff --git a/Core/PythonAPI/src/ResolutionFunction2DSimple.pypp.cpp b/Core/PythonAPI/src/ResolutionFunction2DSimple.pypp.cpp index 2b60275edbe18de579def50a3085769c8da7b354..e28260c83791ca0b473ed83b168ed4f94a6acc64 100644 --- a/Core/PythonAPI/src/ResolutionFunction2DSimple.pypp.cpp +++ b/Core/PythonAPI/src/ResolutionFunction2DSimple.pypp.cpp @@ -28,11 +28,11 @@ struct ResolutionFunction2DSimple_wrapper : ResolutionFunction2DSimple, bp::wrap virtual ::ResolutionFunction2DSimple * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->ResolutionFunction2DSimple::clone( ); - } } + ::ResolutionFunction2DSimple * default_clone( ) const { return ResolutionFunction2DSimple::clone( ); } @@ -40,11 +40,11 @@ struct ResolutionFunction2DSimple_wrapper : ResolutionFunction2DSimple, bp::wrap virtual double evaluateCDF( double x, double y ) const { if( bp::override func_evaluateCDF = this->get_override( "evaluateCDF" ) ) return func_evaluateCDF( x, y ); - else{ + else return this->ResolutionFunction2DSimple::evaluateCDF( x, y ); - } } + double default_evaluateCDF( double x, double y ) const { return ResolutionFunction2DSimple::evaluateCDF( x, y ); } @@ -52,11 +52,11 @@ struct ResolutionFunction2DSimple_wrapper : ResolutionFunction2DSimple, bp::wrap virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -64,11 +64,11 @@ struct ResolutionFunction2DSimple_wrapper : ResolutionFunction2DSimple, bp::wrap virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -76,11 +76,11 @@ struct ResolutionFunction2DSimple_wrapper : ResolutionFunction2DSimple, bp::wrap virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -88,11 +88,11 @@ struct ResolutionFunction2DSimple_wrapper : ResolutionFunction2DSimple, bp::wrap virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -119,11 +119,11 @@ struct ResolutionFunction2DSimple_wrapper : ResolutionFunction2DSimple, bp::wrap virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -131,11 +131,11 @@ struct ResolutionFunction2DSimple_wrapper : ResolutionFunction2DSimple, bp::wrap virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -143,11 +143,11 @@ struct ResolutionFunction2DSimple_wrapper : ResolutionFunction2DSimple, bp::wrap virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } diff --git a/Core/PythonAPI/src/RotateY_3D.pypp.cpp b/Core/PythonAPI/src/RotateY_3D.pypp.cpp index 6e5f4d29836e4457b904e226a981e7b3026df602..a82637d4c36c3fa80bfc6f9416549f80f307987a 100644 --- a/Core/PythonAPI/src/RotateY_3D.pypp.cpp +++ b/Core/PythonAPI/src/RotateY_3D.pypp.cpp @@ -33,11 +33,11 @@ struct RotateY_3D_wrapper : Geometry::RotateY_3D, bp::wrapper< Geometry::RotateY virtual void print( ::std::ostream & ostr ) const { if( bp::override func_print = this->get_override( "print" ) ) func_print( boost::ref(ostr) ); - else{ + else this->Geometry::RotateY_3D::print( boost::ref(ostr) ); - } } + void default_print( ::std::ostream & ostr ) const { Geometry::RotateY_3D::print( boost::ref(ostr) ); } diff --git a/Core/PythonAPI/src/RotateZ_3D.pypp.cpp b/Core/PythonAPI/src/RotateZ_3D.pypp.cpp index 659a51c1edbabe49952091a365e69788ea4664a8..e494b3136a38ebc4932bf7ba25844e088f12d5fb 100644 --- a/Core/PythonAPI/src/RotateZ_3D.pypp.cpp +++ b/Core/PythonAPI/src/RotateZ_3D.pypp.cpp @@ -33,11 +33,11 @@ struct RotateZ_3D_wrapper : Geometry::RotateZ_3D, bp::wrapper< Geometry::RotateZ virtual void print( ::std::ostream & ostr ) const { if( bp::override func_print = this->get_override( "print" ) ) func_print( boost::ref(ostr) ); - else{ + else this->Geometry::RotateZ_3D::print( boost::ref(ostr) ); - } } + void default_print( ::std::ostream & ostr ) const { Geometry::RotateZ_3D::print( boost::ref(ostr) ); } diff --git a/Core/PythonAPI/src/SimpleSelectionRule.pypp.cpp b/Core/PythonAPI/src/SimpleSelectionRule.pypp.cpp index cb07c7da7f228d0ed0627c2ad86dc6ba479e1229..b66737013bbb60b02e5b57ca8a9ffcc1cd795f14 100644 --- a/Core/PythonAPI/src/SimpleSelectionRule.pypp.cpp +++ b/Core/PythonAPI/src/SimpleSelectionRule.pypp.cpp @@ -33,11 +33,11 @@ struct SimpleSelectionRule_wrapper : SimpleSelectionRule, bp::wrapper< SimpleSel virtual ::SimpleSelectionRule * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->SimpleSelectionRule::clone( ); - } } + ::SimpleSelectionRule * default_clone( ) const { return SimpleSelectionRule::clone( ); } @@ -45,11 +45,11 @@ struct SimpleSelectionRule_wrapper : SimpleSelectionRule, bp::wrapper< SimpleSel virtual bool coordinateSelected( ::IndexVector3D const & coordinate ) const { if( bp::override func_coordinateSelected = this->get_override( "coordinateSelected" ) ) return func_coordinateSelected( boost::ref(coordinate) ); - else{ + else return this->SimpleSelectionRule::coordinateSelected( boost::ref(coordinate) ); - } } + bool default_coordinateSelected( ::IndexVector3D const & coordinate ) const { return SimpleSelectionRule::coordinateSelected( boost::ref(coordinate) ); } diff --git a/Core/PythonAPI/src/Simulation.pypp.cpp b/Core/PythonAPI/src/Simulation.pypp.cpp index b91ac645550325d0b5d82071368635e8f45692f8..90fc635aa48616d19e4aed8e9221ba579d409bcf 100644 --- a/Core/PythonAPI/src/Simulation.pypp.cpp +++ b/Core/PythonAPI/src/Simulation.pypp.cpp @@ -28,11 +28,11 @@ struct Simulation_wrapper : Simulation, bp::wrapper< Simulation > { virtual ::Simulation * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->Simulation::clone( ); - } } + ::Simulation * default_clone( ) const { return Simulation::clone( ); } @@ -40,11 +40,11 @@ struct Simulation_wrapper : Simulation, bp::wrapper< Simulation > { virtual bool areParametersChanged( ) { if( bp::override func_areParametersChanged = this->get_override( "areParametersChanged" ) ) return func_areParametersChanged( ); - else{ + else return this->IParameterized::areParametersChanged( ); - } } + bool default_areParametersChanged( ) { return IParameterized::areParametersChanged( ); } @@ -52,11 +52,11 @@ struct Simulation_wrapper : Simulation, bp::wrapper< Simulation > { virtual void clearParameterPool( ) { if( bp::override func_clearParameterPool = this->get_override( "clearParameterPool" ) ) func_clearParameterPool( ); - else{ + else this->IParameterized::clearParameterPool( ); - } } + void default_clearParameterPool( ) { IParameterized::clearParameterPool( ); } @@ -64,11 +64,11 @@ struct Simulation_wrapper : Simulation, bp::wrapper< Simulation > { virtual ::ParameterPool * createParameterTree( ) const { if( bp::override func_createParameterTree = this->get_override( "createParameterTree" ) ) return func_createParameterTree( ); - else{ + else return this->IParameterized::createParameterTree( ); - } } + ::ParameterPool * default_createParameterTree( ) const { return IParameterized::createParameterTree( ); } @@ -76,11 +76,11 @@ struct Simulation_wrapper : Simulation, bp::wrapper< Simulation > { virtual void printParameters( ) const { if( bp::override func_printParameters = this->get_override( "printParameters" ) ) func_printParameters( ); - else{ + else this->IParameterized::printParameters( ); - } } + void default_printParameters( ) const { IParameterized::printParameters( ); } @@ -107,11 +107,11 @@ struct Simulation_wrapper : Simulation, bp::wrapper< Simulation > { virtual int setMatchedParametersValue( ::std::string const & wildcards, double value ) { if( bp::override func_setMatchedParametersValue = this->get_override( "setMatchedParametersValue" ) ) return func_setMatchedParametersValue( wildcards, value ); - else{ + else return this->IParameterized::setMatchedParametersValue( wildcards, value ); - } } + int default_setMatchedParametersValue( ::std::string const & wildcards, double value ) { return IParameterized::setMatchedParametersValue( wildcards, value ); } @@ -119,11 +119,11 @@ struct Simulation_wrapper : Simulation, bp::wrapper< Simulation > { virtual bool setParameterValue( ::std::string const & name, double value ) { if( bp::override func_setParameterValue = this->get_override( "setParameterValue" ) ) return func_setParameterValue( name, value ); - else{ + else return this->IParameterized::setParameterValue( name, value ); - } } + bool default_setParameterValue( ::std::string const & name, double value ) { return IParameterized::setParameterValue( name, value ); } @@ -131,11 +131,11 @@ struct Simulation_wrapper : Simulation, bp::wrapper< Simulation > { virtual void setParametersAreChanged( ) { if( bp::override func_setParametersAreChanged = this->get_override( "setParametersAreChanged" ) ) func_setParametersAreChanged( ); - else{ + else this->IParameterized::setParametersAreChanged( ); - } } + void default_setParametersAreChanged( ) { IParameterized::setParametersAreChanged( ); } @@ -238,7 +238,7 @@ void register_Simulation_class(){ } { //::Simulation::runSimulationElement - typedef void ( ::Simulation::*runSimulationElement_function_type )( ::size_t ) ; + typedef void ( ::Simulation::*runSimulationElement_function_type )( ::std::size_t ) ; Simulation_exposer.def( "runSimulationElement" @@ -278,7 +278,7 @@ void register_Simulation_class(){ } { //::Simulation::setDetectorParameters - typedef void ( ::Simulation::*setDetectorParameters_function_type )( ::size_t,double,double,::size_t,double,double,bool ) ; + typedef void ( ::Simulation::*setDetectorParameters_function_type )( ::std::size_t,double,double,::std::size_t,double,double,bool ) ; Simulation_exposer.def( "setDetectorParameters" diff --git a/Core/PythonAPI/src/StochasticDoubleGate.pypp.cpp b/Core/PythonAPI/src/StochasticDoubleGate.pypp.cpp index ea0d2bcc00b58e26f953ab1f8c5b8d497e51565b..a2c2e6ca95bf639e8c92a7e2947e72283af1c1eb 100644 --- a/Core/PythonAPI/src/StochasticDoubleGate.pypp.cpp +++ b/Core/PythonAPI/src/StochasticDoubleGate.pypp.cpp @@ -26,11 +26,11 @@ struct StochasticDoubleGate_wrapper : StochasticDoubleGate, bp::wrapper< Stochas virtual ::StochasticDoubleGate * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->StochasticDoubleGate::clone( ); - } } + ::StochasticDoubleGate * default_clone( ) const { return StochasticDoubleGate::clone( ); } @@ -38,11 +38,11 @@ struct StochasticDoubleGate_wrapper : StochasticDoubleGate, bp::wrapper< Stochas virtual double getFWHM( ) const { if( bp::override func_getFWHM = this->get_override( "getFWHM" ) ) return func_getFWHM( ); - else{ + else return this->StochasticDoubleGate::getFWHM( ); - } } + double default_getFWHM( ) const { return StochasticDoubleGate::getFWHM( ); } @@ -50,11 +50,11 @@ struct StochasticDoubleGate_wrapper : StochasticDoubleGate, bp::wrapper< Stochas virtual double probabilityDensity( double value ) const { if( bp::override func_probabilityDensity = this->get_override( "probabilityDensity" ) ) return func_probabilityDensity( value ); - else{ + else return this->StochasticDoubleGate::probabilityDensity( value ); - } } + double default_probabilityDensity( double value ) const { return StochasticDoubleGate::probabilityDensity( value ); } @@ -62,11 +62,11 @@ struct StochasticDoubleGate_wrapper : StochasticDoubleGate, bp::wrapper< Stochas virtual void setToRandom( ) { if( bp::override func_setToRandom = this->get_override( "setToRandom" ) ) func_setToRandom( ); - else{ + else this->StochasticDoubleGate::setToRandom( ); - } } + void default_setToRandom( ) { StochasticDoubleGate::setToRandom( ); } @@ -74,11 +74,11 @@ struct StochasticDoubleGate_wrapper : StochasticDoubleGate, bp::wrapper< Stochas virtual double getRandom( ) { if( bp::override func_getRandom = this->get_override( "getRandom" ) ) return func_getRandom( ); - else{ + else return this->StochasticParameter< double >::getRandom( ); - } } + double default_getRandom( ) { return StochasticParameter< double >::getRandom( ); } @@ -86,11 +86,11 @@ struct StochasticDoubleGate_wrapper : StochasticDoubleGate, bp::wrapper< Stochas virtual void setToAverage( ) { if( bp::override func_setToAverage = this->get_override( "setToAverage" ) ) func_setToAverage( ); - else{ + else this->StochasticParameter< double >::setToAverage( ); - } } + void default_setToAverage( ) { StochasticParameter< double >::setToAverage( ); } diff --git a/Core/PythonAPI/src/StochasticDoubleGaussian.pypp.cpp b/Core/PythonAPI/src/StochasticDoubleGaussian.pypp.cpp index 820e29c3e451eda7af03306e5dd63852ca7c9913..ec0bb290500ff2041944e8335e9be278491390af 100644 --- a/Core/PythonAPI/src/StochasticDoubleGaussian.pypp.cpp +++ b/Core/PythonAPI/src/StochasticDoubleGaussian.pypp.cpp @@ -26,11 +26,11 @@ struct StochasticDoubleGaussian_wrapper : StochasticDoubleGaussian, bp::wrapper< virtual ::StochasticDoubleGaussian * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->StochasticDoubleGaussian::clone( ); - } } + ::StochasticDoubleGaussian * default_clone( ) const { return StochasticDoubleGaussian::clone( ); } @@ -38,11 +38,11 @@ struct StochasticDoubleGaussian_wrapper : StochasticDoubleGaussian, bp::wrapper< virtual double getFWHM( ) const { if( bp::override func_getFWHM = this->get_override( "getFWHM" ) ) return func_getFWHM( ); - else{ + else return this->StochasticDoubleGaussian::getFWHM( ); - } } + double default_getFWHM( ) const { return StochasticDoubleGaussian::getFWHM( ); } @@ -50,11 +50,11 @@ struct StochasticDoubleGaussian_wrapper : StochasticDoubleGaussian, bp::wrapper< virtual double probabilityDensity( double value ) const { if( bp::override func_probabilityDensity = this->get_override( "probabilityDensity" ) ) return func_probabilityDensity( value ); - else{ + else return this->StochasticDoubleGaussian::probabilityDensity( value ); - } } + double default_probabilityDensity( double value ) const { return StochasticDoubleGaussian::probabilityDensity( value ); } @@ -62,11 +62,11 @@ struct StochasticDoubleGaussian_wrapper : StochasticDoubleGaussian, bp::wrapper< virtual void setToRandom( ) { if( bp::override func_setToRandom = this->get_override( "setToRandom" ) ) func_setToRandom( ); - else{ + else this->StochasticDoubleGaussian::setToRandom( ); - } } + void default_setToRandom( ) { StochasticDoubleGaussian::setToRandom( ); } @@ -74,11 +74,11 @@ struct StochasticDoubleGaussian_wrapper : StochasticDoubleGaussian, bp::wrapper< virtual double getRandom( ) { if( bp::override func_getRandom = this->get_override( "getRandom" ) ) return func_getRandom( ); - else{ + else return this->StochasticParameter< double >::getRandom( ); - } } + double default_getRandom( ) { return StochasticParameter< double >::getRandom( ); } @@ -86,11 +86,11 @@ struct StochasticDoubleGaussian_wrapper : StochasticDoubleGaussian, bp::wrapper< virtual void setToAverage( ) { if( bp::override func_setToAverage = this->get_override( "setToAverage" ) ) func_setToAverage( ); - else{ + else this->StochasticParameter< double >::setToAverage( ); - } } + void default_setToAverage( ) { StochasticParameter< double >::setToAverage( ); } diff --git a/Core/PythonAPI/src/StochasticParameter_t.pypp.cpp b/Core/PythonAPI/src/StochasticParameter_t.pypp.cpp index 1c7f4060708c9de5ed217052a0046dc0d45ae2ba..e6cd435ac44605b2a56bb0a5ef8f60d430c7f15d 100644 --- a/Core/PythonAPI/src/StochasticParameter_t.pypp.cpp +++ b/Core/PythonAPI/src/StochasticParameter_t.pypp.cpp @@ -31,11 +31,11 @@ struct StochasticParameter_less__double__greater__wrapper : StochasticParameter< virtual double getFWHM( ) const { if( bp::override func_getFWHM = this->get_override( "getFWHM" ) ) return func_getFWHM( ); - else{ + else return this->StochasticParameter< double >::getFWHM( ); - } } + double default_getFWHM( ) const { return StochasticParameter< double >::getFWHM( ); } @@ -43,11 +43,11 @@ struct StochasticParameter_less__double__greater__wrapper : StochasticParameter< virtual double getRandom( ) { if( bp::override func_getRandom = this->get_override( "getRandom" ) ) return func_getRandom( ); - else{ + else return this->StochasticParameter< double >::getRandom( ); - } } + double default_getRandom( ) { return StochasticParameter< double >::getRandom( ); } @@ -60,11 +60,11 @@ struct StochasticParameter_less__double__greater__wrapper : StochasticParameter< virtual void setToAverage( ) { if( bp::override func_setToAverage = this->get_override( "setToAverage" ) ) func_setToAverage( ); - else{ + else this->StochasticParameter< double >::setToAverage( ); - } } + void default_setToAverage( ) { StochasticParameter< double >::setToAverage( ); } diff --git a/Core/PythonAPI/src/StochasticSampledParameter.pypp.cpp b/Core/PythonAPI/src/StochasticSampledParameter.pypp.cpp index 26fc062960c37ebca48c2c814e930d4a27534734..6868e315885f63e6e03aec579237a42e2dde5cfc 100644 --- a/Core/PythonAPI/src/StochasticSampledParameter.pypp.cpp +++ b/Core/PythonAPI/src/StochasticSampledParameter.pypp.cpp @@ -16,14 +16,14 @@ namespace bp = boost::python; struct StochasticSampledParameter_wrapper : StochasticSampledParameter, bp::wrapper< StochasticSampledParameter > { - StochasticSampledParameter_wrapper(::StochasticParameter< double > const & par, ::size_t nbins, double xmin, double xmax ) + StochasticSampledParameter_wrapper(::StochasticParameter< double > const & par, ::std::size_t nbins, double xmin, double xmax ) : StochasticSampledParameter( boost::ref(par), nbins, xmin, xmax ) , bp::wrapper< StochasticSampledParameter >(){ // constructor } - StochasticSampledParameter_wrapper(::StochasticParameter< double > const & par, ::size_t nbins, int nfwhm=3 ) + StochasticSampledParameter_wrapper(::StochasticParameter< double > const & par, ::std::size_t nbins, int nfwhm=3 ) : StochasticSampledParameter( boost::ref(par), nbins, nfwhm ) , bp::wrapper< StochasticSampledParameter >(){ // constructor @@ -33,11 +33,11 @@ struct StochasticSampledParameter_wrapper : StochasticSampledParameter, bp::wrap virtual ::StochasticSampledParameter * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->StochasticSampledParameter::clone( ); - } } + ::StochasticSampledParameter * default_clone( ) const { return StochasticSampledParameter::clone( ); } @@ -45,11 +45,11 @@ struct StochasticSampledParameter_wrapper : StochasticSampledParameter, bp::wrap virtual double probabilityDensity( double value ) const { if( bp::override func_probabilityDensity = this->get_override( "probabilityDensity" ) ) return func_probabilityDensity( value ); - else{ + else return this->StochasticSampledParameter::probabilityDensity( value ); - } } + double default_probabilityDensity( double value ) const { return StochasticSampledParameter::probabilityDensity( value ); } @@ -57,11 +57,11 @@ struct StochasticSampledParameter_wrapper : StochasticSampledParameter, bp::wrap virtual void setToRandom( ) { if( bp::override func_setToRandom = this->get_override( "setToRandom" ) ) func_setToRandom( ); - else{ + else this->StochasticSampledParameter::setToRandom( ); - } } + void default_setToRandom( ) { StochasticSampledParameter::setToRandom( ); } @@ -69,11 +69,11 @@ struct StochasticSampledParameter_wrapper : StochasticSampledParameter, bp::wrap virtual double getFWHM( ) const { if( bp::override func_getFWHM = this->get_override( "getFWHM" ) ) return func_getFWHM( ); - else{ + else return this->StochasticParameter< double >::getFWHM( ); - } } + double default_getFWHM( ) const { return StochasticParameter< double >::getFWHM( ); } @@ -81,11 +81,11 @@ struct StochasticSampledParameter_wrapper : StochasticSampledParameter, bp::wrap virtual double getRandom( ) { if( bp::override func_getRandom = this->get_override( "getRandom" ) ) return func_getRandom( ); - else{ + else return this->StochasticParameter< double >::getRandom( ); - } } + double default_getRandom( ) { return StochasticParameter< double >::getRandom( ); } @@ -93,11 +93,11 @@ struct StochasticSampledParameter_wrapper : StochasticSampledParameter, bp::wrap virtual void setToAverage( ) { if( bp::override func_setToAverage = this->get_override( "setToAverage" ) ) func_setToAverage( ); - else{ + else this->StochasticParameter< double >::setToAverage( ); - } } + void default_setToAverage( ) { StochasticParameter< double >::setToAverage( ); } @@ -108,9 +108,9 @@ void register_StochasticSampledParameter_class(){ { //::StochasticSampledParameter typedef bp::class_< StochasticSampledParameter_wrapper, bp::bases< StochasticParameter< double > >, boost::noncopyable > StochasticSampledParameter_exposer_t; - StochasticSampledParameter_exposer_t StochasticSampledParameter_exposer = StochasticSampledParameter_exposer_t( "StochasticSampledParameter", bp::init< StochasticParameter< double > const &, size_t, double, double >(( bp::arg("par"), bp::arg("nbins"), bp::arg("xmin"), bp::arg("xmax") )) ); + StochasticSampledParameter_exposer_t StochasticSampledParameter_exposer = StochasticSampledParameter_exposer_t( "StochasticSampledParameter", bp::init< StochasticParameter< double > const &, std::size_t, double, double >(( bp::arg("par"), bp::arg("nbins"), bp::arg("xmin"), bp::arg("xmax") )) ); bp::scope StochasticSampledParameter_scope( StochasticSampledParameter_exposer ); - StochasticSampledParameter_exposer.def( bp::init< StochasticParameter< double > const &, size_t, bp::optional< int > >(( bp::arg("par"), bp::arg("nbins"), bp::arg("nfwhm")=(int)(3) )) ); + StochasticSampledParameter_exposer.def( bp::init< StochasticParameter< double > const &, std::size_t, bp::optional< int > >(( bp::arg("par"), bp::arg("nbins"), bp::arg("nfwhm")=(int)(3) )) ); { //::StochasticSampledParameter::clone typedef ::StochasticSampledParameter * ( ::StochasticSampledParameter::*clone_function_type )( ) const; @@ -125,7 +125,7 @@ void register_StochasticSampledParameter_class(){ } { //::StochasticSampledParameter::getBinValue - typedef double ( ::StochasticSampledParameter::*getBinValue_function_type )( ::size_t ) const; + typedef double ( ::StochasticSampledParameter::*getBinValue_function_type )( ::std::size_t ) const; StochasticSampledParameter_exposer.def( "getBinValue" @@ -135,7 +135,7 @@ void register_StochasticSampledParameter_class(){ } { //::StochasticSampledParameter::getNbins - typedef ::size_t ( ::StochasticSampledParameter::*getNbins_function_type )( ) const; + typedef ::std::size_t ( ::StochasticSampledParameter::*getNbins_function_type )( ) const; StochasticSampledParameter_exposer.def( "getNbins" @@ -144,7 +144,7 @@ void register_StochasticSampledParameter_class(){ } { //::StochasticSampledParameter::getNormalizedProbability - typedef double ( ::StochasticSampledParameter::*getNormalizedProbability_function_type )( ::size_t ) const; + typedef double ( ::StochasticSampledParameter::*getNormalizedProbability_function_type )( ::std::size_t ) const; StochasticSampledParameter_exposer.def( "getNormalizedProbability" @@ -154,7 +154,7 @@ void register_StochasticSampledParameter_class(){ } { //::StochasticSampledParameter::probabilityBinDensity - typedef double ( ::StochasticSampledParameter::*probabilityBinDensity_function_type )( ::size_t ) const; + typedef double ( ::StochasticSampledParameter::*probabilityBinDensity_function_type )( ::std::size_t ) const; StochasticSampledParameter_exposer.def( "probabilityBinDensity" diff --git a/Core/PythonAPI/src/ndimdata_t.pypp.cpp b/Core/PythonAPI/src/ndimdata_t.pypp.cpp index 2553ec6532b3ed04b86e96555a9e1504ea4820eb..15fcfc77c13c6ae1be9462dbbadc497093db8395 100644 --- a/Core/PythonAPI/src/ndimdata_t.pypp.cpp +++ b/Core/PythonAPI/src/ndimdata_t.pypp.cpp @@ -34,7 +34,7 @@ void register_ndimdata_t_class(){ { //::OutputData< double >::addAxis typedef OutputData< double > exported_class_t; - typedef void ( exported_class_t::*addAxis_function_type )( ::std::string const &,::size_t,double,double ) ; + typedef void ( exported_class_t::*addAxis_function_type )( ::std::string const &,::std::size_t,double,double ) ; ndimdata_t_exposer.def( "addAxis" @@ -87,7 +87,7 @@ void register_ndimdata_t_class(){ { //::OutputData< double >::getAllocatedSize typedef OutputData< double > exported_class_t; - typedef ::size_t ( exported_class_t::*getAllocatedSize_function_type )( ) const; + typedef ::std::size_t ( exported_class_t::*getAllocatedSize_function_type )( ) const; ndimdata_t_exposer.def( "getAllocatedSize" @@ -97,7 +97,7 @@ void register_ndimdata_t_class(){ { //::OutputData< double >::getAxis typedef OutputData< double > exported_class_t; - typedef ::IAxis const * ( exported_class_t::*getAxis_function_type )( ::size_t ) const; + typedef ::IAxis const * ( exported_class_t::*getAxis_function_type )( ::std::size_t ) const; ndimdata_t_exposer.def( "getAxis" @@ -121,7 +121,7 @@ void register_ndimdata_t_class(){ { //::OutputData< double >::getAxisIndex typedef OutputData< double > exported_class_t; - typedef ::size_t ( exported_class_t::*getAxisIndex_function_type )( ::std::string const & ) const; + typedef ::std::size_t ( exported_class_t::*getAxisIndex_function_type )( ::std::string const & ) const; ndimdata_t_exposer.def( "getAxisIndex" @@ -132,7 +132,7 @@ void register_ndimdata_t_class(){ { //::OutputData< double >::getIndexOfAxis typedef OutputData< double > exported_class_t; - typedef ::size_t ( exported_class_t::*getIndexOfAxis_function_type )( ::std::string const &,::size_t ) const; + typedef ::std::size_t ( exported_class_t::*getIndexOfAxis_function_type )( ::std::string const &,::std::size_t ) const; ndimdata_t_exposer.def( "getIndexOfAxis" @@ -143,7 +143,7 @@ void register_ndimdata_t_class(){ { //::OutputData< double >::getRank typedef OutputData< double > exported_class_t; - typedef ::size_t ( exported_class_t::*getRank_function_type )( ) const; + typedef ::std::size_t ( exported_class_t::*getRank_function_type )( ) const; ndimdata_t_exposer.def( "getRank" @@ -163,7 +163,7 @@ void register_ndimdata_t_class(){ { //::OutputData< double >::getValueOfAxis typedef OutputData< double > exported_class_t; - typedef double ( exported_class_t::*getValueOfAxis_function_type )( ::std::string const &,::size_t ) const; + typedef double ( exported_class_t::*getValueOfAxis_function_type )( ::std::string const &,::std::size_t ) const; ndimdata_t_exposer.def( "getValueOfAxis" @@ -200,7 +200,7 @@ void register_ndimdata_t_class(){ { //::OutputData< double >::operator[] typedef OutputData< double > exported_class_t; - typedef double & ( exported_class_t::*__getitem___function_type )( ::size_t ) ; + typedef double & ( exported_class_t::*__getitem___function_type )( ::std::size_t ) ; ndimdata_t_exposer.def( "__getitem__" @@ -212,7 +212,7 @@ void register_ndimdata_t_class(){ { //::OutputData< double >::operator[] typedef OutputData< double > exported_class_t; - typedef double const & ( exported_class_t::*__getitem___function_type )( ::size_t ) const; + typedef double const & ( exported_class_t::*__getitem___function_type )( ::std::size_t ) const; ndimdata_t_exposer.def( "__getitem__" @@ -267,7 +267,7 @@ void register_ndimdata_t_class(){ { //::OutputData< double >::toCoordinate typedef OutputData< double > exported_class_t; - typedef int ( exported_class_t::*toCoordinate_function_type )( ::size_t,::size_t ) const; + typedef int ( exported_class_t::*toCoordinate_function_type )( ::std::size_t,::std::size_t ) const; ndimdata_t_exposer.def( "toCoordinate" @@ -278,7 +278,7 @@ void register_ndimdata_t_class(){ { //::OutputData< double >::toCoordinates typedef OutputData< double > exported_class_t; - typedef ::std::vector< int > ( exported_class_t::*toCoordinates_function_type )( ::size_t ) const; + typedef ::std::vector< int > ( exported_class_t::*toCoordinates_function_type )( ::std::size_t ) const; ndimdata_t_exposer.def( "toCoordinates" @@ -289,7 +289,7 @@ void register_ndimdata_t_class(){ { //::OutputData< double >::toIndex typedef OutputData< double > exported_class_t; - typedef ::size_t ( exported_class_t::*toIndex_function_type )( ::std::vector< int > ) const; + typedef ::std::size_t ( exported_class_t::*toIndex_function_type )( ::std::vector< int > ) const; ndimdata_t_exposer.def( "toIndex" diff --git a/Core/Tools/inc/IParameterized.h b/Core/Tools/inc/IParameterized.h index 3b28cc2b637183d4c429a851f20ed37d8cbe1685..73271e1714cb934f43d14cee49dcf92e6465ac4e 100644 --- a/Core/Tools/inc/IParameterized.h +++ b/Core/Tools/inc/IParameterized.h @@ -58,18 +58,15 @@ public: { m_parameters.registerParameter(name, parpointer); } //! set parameter value, return true in the case of success - virtual bool setParameterValue(const std::string &name, double value) - { return m_parameters.setParameterValue(name, value); } + virtual bool setParameterValue(const std::string &name, double value); //! Sets parameter value, return number of changed parameters - virtual int setMatchedParametersValue(const std::string& wildcards, double value) - { - return m_parameters.setMatchedParametersValue(wildcards, value); - } + virtual int setMatchedParametersValue(const std::string& wildcards, double value); //! clear parameter pool virtual void clearParameterPool() { m_parameters.clear(); } + protected: //! Throw non-implemented exception (needed for Python). virtual void init_parameters(); diff --git a/Core/Tools/src/IParameterized.cpp b/Core/Tools/src/IParameterized.cpp index 4772a2a042e3ea622af8dff83432af66458c9ae9..4eeeb5622fbd54e49f407ed52716bdf51d944b6c 100644 --- a/Core/Tools/src/IParameterized.cpp +++ b/Core/Tools/src/IParameterized.cpp @@ -59,6 +59,24 @@ std::string IParameterized::addParametersToExternalPool( return path; } + +//! set parameter value, return true in the case of success +bool IParameterized::setParameterValue(const std::string &name, double value) +{ + ParameterPool *p_pool = createParameterTree(); + return p_pool->setParameterValue(name, value); + delete p_pool; +} + +//! Sets parameter value, return number of changed parameters +int IParameterized::setMatchedParametersValue(const std::string& wildcards, double value) +{ + ParameterPool *p_pool = createParameterTree(); + return p_pool->setMatchedParametersValue(wildcards, value); + delete p_pool; +} + + void IParameterized::printParameters() const { ParameterPool *p_pool = createParameterTree(); @@ -66,9 +84,7 @@ void IParameterized::printParameters() const delete p_pool; } -//! Throw non-implemented exception (needed for Python). - -//! No pure virtual function here, +//! No pure virtual function here, have to throw here, //! due to problems in exporting abstract classes to python //! void IParameterized::init_parameters() @@ -78,3 +94,5 @@ void IParameterized::init_parameters() } + + diff --git a/Core/python_module.pri b/Core/python_module.pri index b46099939988d568e799b033e646cdca2632f9af..b7e8f7cb9f75158bd22e8b9026b92dd58fcb7f78 100644 --- a/Core/python_module.pri +++ b/Core/python_module.pri @@ -4,91 +4,91 @@ HEADERS += \ PythonAPI/inc/PythonOutputData.h \ PythonAPI/inc/PythonCoreExposer.h \ PythonAPI/inc/PythonCoreList.h \ - PythonAPI/inc/Beam.pypp.h \ - PythonAPI/inc/Bin1D.pypp.h \ - PythonAPI/inc/Bin1DCVector.pypp.h \ - PythonAPI/inc/Crystal.pypp.h \ - PythonAPI/inc/cvector_t.pypp.h \ + PythonAPI/inc/RotateZ_3D.pypp.h \ + PythonAPI/inc/IFTDistribution2D.pypp.h \ PythonAPI/inc/Detector.pypp.h \ - PythonAPI/inc/FormFactorBox.pypp.h \ - PythonAPI/inc/FormFactorCone.pypp.h \ - PythonAPI/inc/FormFactorCrystal.pypp.h \ + PythonAPI/inc/LatticeBasis.pypp.h \ + PythonAPI/inc/ParticleCoreShell.pypp.h \ + PythonAPI/inc/Beam.pypp.h \ + PythonAPI/inc/Lattice.pypp.h \ PythonAPI/inc/FormFactorCylinder.pypp.h \ - PythonAPI/inc/FormFactorDecoratorDebyeWaller.pypp.h \ - PythonAPI/inc/FormFactorEllipsoid.pypp.h \ - PythonAPI/inc/FormFactorFullSphere.pypp.h \ - PythonAPI/inc/FormFactorFullSpheroid.pypp.h \ - PythonAPI/inc/FormFactorGauss.pypp.h \ - PythonAPI/inc/FormFactorHemiSpheroid.pypp.h \ - PythonAPI/inc/FormFactorLorentz.pypp.h \ + PythonAPI/inc/ICloneable.pypp.h \ + PythonAPI/inc/StochasticSampledParameter.pypp.h \ + PythonAPI/inc/HomogeneousMaterial.pypp.h \ + PythonAPI/inc/vector_integer_t.pypp.h \ + PythonAPI/inc/IAxis.pypp.h \ + PythonAPI/inc/Layer.pypp.h \ + PythonAPI/inc/IFormFactor.pypp.h \ PythonAPI/inc/FormFactorParallelepiped.pypp.h \ - PythonAPI/inc/FormFactorPrism3.pypp.h \ + PythonAPI/inc/RealParameterWrapper.pypp.h \ + PythonAPI/inc/MaterialManager.pypp.h \ + PythonAPI/inc/ResolutionFunction2DSimple.pypp.h \ + PythonAPI/inc/SimulationParameters.pypp.h \ + PythonAPI/inc/FormFactorGauss.pypp.h \ + PythonAPI/inc/FormFactorFullSpheroid.pypp.h \ + PythonAPI/inc/PythonInterface_global_variables.pypp.h \ + PythonAPI/inc/ISampleBuilder.pypp.h \ + PythonAPI/inc/StochasticParameter_t.pypp.h \ + PythonAPI/inc/StochasticDoubleGaussian.pypp.h \ PythonAPI/inc/FormFactorPrism6.pypp.h \ + PythonAPI/inc/InterferenceFunction2DLattice.pypp.h \ PythonAPI/inc/FormFactorPyramid.pypp.h \ - PythonAPI/inc/FormFactorSphere.pypp.h \ - PythonAPI/inc/FormFactorSphereGaussianRadius.pypp.h \ + PythonAPI/inc/FormFactorBox.pypp.h \ + PythonAPI/inc/IResolutionFunction2D.pypp.h \ + PythonAPI/inc/IFormFactorBorn.pypp.h \ + PythonAPI/inc/MultiLayer.pypp.h \ + PythonAPI/inc/ITransform3D.pypp.h \ + PythonAPI/inc/ParticleDecoration.pypp.h \ + PythonAPI/inc/IDecoration.pypp.h \ PythonAPI/inc/FTDistribution2DCauchy.pypp.h \ - PythonAPI/inc/HomogeneousMaterial.pypp.h \ - PythonAPI/inc/IAxis.pypp.h \ - PythonAPI/inc/ICloneable.pypp.h \ - PythonAPI/inc/IClusteredParticles.pypp.h \ PythonAPI/inc/ICompositeSample.pypp.h \ - PythonAPI/inc/IDecoration.pypp.h \ - PythonAPI/inc/IDetectorResolution.pypp.h \ - PythonAPI/inc/IFormFactor.pypp.h \ - PythonAPI/inc/IFormFactorBorn.pypp.h \ - PythonAPI/inc/IFormFactorDecorator.pypp.h \ - PythonAPI/inc/IFTDistribution2D.pypp.h \ - PythonAPI/inc/IInterferenceFunction.pypp.h \ + PythonAPI/inc/cvector_t.pypp.h \ + PythonAPI/inc/ParameterPool.pypp.h \ + PythonAPI/inc/Particle.pypp.h \ + PythonAPI/inc/FormFactorCone.pypp.h \ + PythonAPI/inc/FormFactorPrism3.pypp.h \ + PythonAPI/inc/InterferenceFunction2DParaCrystal.pypp.h \ + PythonAPI/inc/vdouble1d_t.pypp.h \ + PythonAPI/inc/MesoCrystal.pypp.h \ + PythonAPI/inc/RotateY_3D.pypp.h \ + PythonAPI/inc/FormFactorDecoratorDebyeWaller.pypp.h \ + PythonAPI/inc/vector_IFormFactorPtr_t.pypp.h \ PythonAPI/inc/IMaterial.pypp.h \ + PythonAPI/inc/IFormFactorDecorator.pypp.h \ PythonAPI/inc/Instrument.pypp.h \ - PythonAPI/inc/InterferenceFunction1DParaCrystal.pypp.h \ - PythonAPI/inc/InterferenceFunction2DLattice.pypp.h \ - PythonAPI/inc/InterferenceFunction2DParaCrystal.pypp.h \ - PythonAPI/inc/InterferenceFunctionNone.pypp.h \ - PythonAPI/inc/IParameterized.pypp.h \ - PythonAPI/inc/IResolutionFunction2D.pypp.h \ - PythonAPI/inc/ISample.pypp.h \ - PythonAPI/inc/ISampleBuilder.pypp.h \ + PythonAPI/inc/IDetectorResolution.pypp.h \ PythonAPI/inc/ISelectionRule.pypp.h \ - PythonAPI/inc/ITransform3D.pypp.h \ - PythonAPI/inc/kvector_t.pypp.h \ - PythonAPI/inc/Lattice.pypp.h \ - PythonAPI/inc/Lattice2DIFParameters.pypp.h \ - PythonAPI/inc/LatticeBasis.pypp.h \ - PythonAPI/inc/Layer.pypp.h \ + PythonAPI/inc/Bin1D.pypp.h \ + PythonAPI/inc/ParticleInfo.pypp.h \ + PythonAPI/inc/vector_longinteger_t.pypp.h \ + PythonAPI/inc/FormFactorHemiSpheroid.pypp.h \ PythonAPI/inc/LayerInterface.pypp.h \ + PythonAPI/inc/FormFactorFullSphere.pypp.h \ + PythonAPI/inc/PositionParticleInfo.pypp.h \ PythonAPI/inc/LayerRoughness.pypp.h \ - PythonAPI/inc/MaterialManager.pypp.h \ - PythonAPI/inc/MesoCrystal.pypp.h \ - PythonAPI/inc/MultiLayer.pypp.h \ + PythonAPI/inc/FormFactorCrystal.pypp.h \ + PythonAPI/inc/IParameterized.pypp.h \ + PythonAPI/inc/Bin1DCVector.pypp.h \ + PythonAPI/inc/StochasticDoubleGate.pypp.h \ + PythonAPI/inc/IClusteredParticles.pypp.h \ + PythonAPI/inc/IInterferenceFunction.pypp.h \ + PythonAPI/inc/SimpleSelectionRule.pypp.h \ PythonAPI/inc/ndimdata_t.pypp.h \ + PythonAPI/inc/FormFactorLorentz.pypp.h \ PythonAPI/inc/OutputDataIOFactory.pypp.h \ - PythonAPI/inc/ParameterPool.pypp.h \ - PythonAPI/inc/Particle.pypp.h \ - PythonAPI/inc/ParticleBuilder.pypp.h \ - PythonAPI/inc/ParticleCoreShell.pypp.h \ - PythonAPI/inc/ParticleDecoration.pypp.h \ - PythonAPI/inc/ParticleInfo.pypp.h \ - PythonAPI/inc/PositionParticleInfo.pypp.h \ + PythonAPI/inc/vector_kvector_t.pypp.h \ + PythonAPI/inc/InterferenceFunction1DParaCrystal.pypp.h \ + PythonAPI/inc/InterferenceFunctionNone.pypp.h \ + PythonAPI/inc/Crystal.pypp.h \ PythonAPI/inc/PythonInterface_free_functions.pypp.h \ - PythonAPI/inc/PythonInterface_global_variables.pypp.h \ - PythonAPI/inc/RealParameterWrapper.pypp.h \ - PythonAPI/inc/ResolutionFunction2DSimple.pypp.h \ - PythonAPI/inc/RotateY_3D.pypp.h \ - PythonAPI/inc/RotateZ_3D.pypp.h \ - PythonAPI/inc/SimpleSelectionRule.pypp.h \ + PythonAPI/inc/kvector_t.pypp.h \ + PythonAPI/inc/FormFactorEllipsoid.pypp.h \ PythonAPI/inc/Simulation.pypp.h \ - PythonAPI/inc/SimulationParameters.pypp.h \ - PythonAPI/inc/StochasticDoubleGate.pypp.h \ - PythonAPI/inc/StochasticDoubleGaussian.pypp.h \ - PythonAPI/inc/StochasticParameter_t.pypp.h \ - PythonAPI/inc/StochasticSampledParameter.pypp.h \ - PythonAPI/inc/vdouble1d_t.pypp.h \ - PythonAPI/inc/vector_IFormFactorPtr_t.pypp.h \ - PythonAPI/inc/vector_integer_t.pypp.h \ - PythonAPI/inc/vector_kvector_t.pypp.h \ - PythonAPI/inc/vector_longinteger_t.pypp.h \ + PythonAPI/inc/ISample.pypp.h \ + PythonAPI/inc/ParticleBuilder.pypp.h \ + PythonAPI/inc/FormFactorSphereGaussianRadius.pypp.h \ + PythonAPI/inc/Lattice2DIFParameters.pypp.h \ + PythonAPI/inc/FormFactorSphere.pypp.h \ PythonAPI/inc/__call_policies.pypp.hpp \ PythonAPI/inc/__convenience.pypp.hpp @@ -96,91 +96,91 @@ SOURCES += \ PythonAPI/src/PythonModule.cpp \ PythonAPI/src/PythonListConverter.cpp \ PythonAPI/src/PythonOutputData.cpp \ - PythonAPI/src/Beam.pypp.cpp \ - PythonAPI/src/Bin1D.pypp.cpp \ - PythonAPI/src/Bin1DCVector.pypp.cpp \ - PythonAPI/src/Crystal.pypp.cpp \ - PythonAPI/src/cvector_t.pypp.cpp \ - PythonAPI/src/Detector.pypp.cpp \ - PythonAPI/src/FormFactorBox.pypp.cpp \ - PythonAPI/src/FormFactorCone.pypp.cpp \ - PythonAPI/src/FormFactorCrystal.pypp.cpp \ - PythonAPI/src/FormFactorCylinder.pypp.cpp \ - PythonAPI/src/FormFactorDecoratorDebyeWaller.pypp.cpp \ - PythonAPI/src/FormFactorEllipsoid.pypp.cpp \ - PythonAPI/src/FormFactorFullSphere.pypp.cpp \ - PythonAPI/src/FormFactorFullSpheroid.pypp.cpp \ - PythonAPI/src/FormFactorGauss.pypp.cpp \ - PythonAPI/src/FormFactorHemiSpheroid.pypp.cpp \ + PythonAPI/src/ParticleCoreShell.pypp.cpp \ + PythonAPI/src/kvector_t.pypp.cpp \ + PythonAPI/src/vector_IFormFactorPtr_t.pypp.cpp \ + PythonAPI/src/FormFactorSphere.pypp.cpp \ PythonAPI/src/FormFactorLorentz.pypp.cpp \ + PythonAPI/src/FormFactorCylinder.pypp.cpp \ + PythonAPI/src/ISelectionRule.pypp.cpp \ + PythonAPI/src/InterferenceFunctionNone.pypp.cpp \ + PythonAPI/src/IResolutionFunction2D.pypp.cpp \ + PythonAPI/src/ITransform3D.pypp.cpp \ + PythonAPI/src/Layer.pypp.cpp \ + PythonAPI/src/Lattice2DIFParameters.pypp.cpp \ PythonAPI/src/FormFactorParallelepiped.pypp.cpp \ - PythonAPI/src/FormFactorPrism3.pypp.cpp \ + PythonAPI/src/ISample.pypp.cpp \ + PythonAPI/src/MultiLayer.pypp.cpp \ PythonAPI/src/FormFactorPrism6.pypp.cpp \ PythonAPI/src/FormFactorPyramid.pypp.cpp \ - PythonAPI/src/FormFactorSphere.pypp.cpp \ - PythonAPI/src/FormFactorSphereGaussianRadius.pypp.cpp \ - PythonAPI/src/FTDistribution2DCauchy.pypp.cpp \ - PythonAPI/src/HomogeneousMaterial.pypp.cpp \ PythonAPI/src/IAxis.pypp.cpp \ - PythonAPI/src/ICloneable.pypp.cpp \ - PythonAPI/src/IClusteredParticles.pypp.cpp \ - PythonAPI/src/ICompositeSample.pypp.cpp \ - PythonAPI/src/IDecoration.pypp.cpp \ - PythonAPI/src/IDetectorResolution.pypp.cpp \ - PythonAPI/src/IFormFactor.pypp.cpp \ - PythonAPI/src/IFormFactorBorn.pypp.cpp \ + PythonAPI/src/vdouble1d_t.pypp.cpp \ PythonAPI/src/IFormFactorDecorator.pypp.cpp \ - PythonAPI/src/IFTDistribution2D.pypp.cpp \ - PythonAPI/src/IInterferenceFunction.pypp.cpp \ - PythonAPI/src/IMaterial.pypp.cpp \ - PythonAPI/src/Instrument.pypp.cpp \ - PythonAPI/src/InterferenceFunction1DParaCrystal.pypp.cpp \ - PythonAPI/src/InterferenceFunction2DLattice.pypp.cpp \ - PythonAPI/src/InterferenceFunction2DParaCrystal.pypp.cpp \ - PythonAPI/src/InterferenceFunctionNone.pypp.cpp \ + PythonAPI/src/Bin1D.pypp.cpp \ PythonAPI/src/IParameterized.pypp.cpp \ - PythonAPI/src/IResolutionFunction2D.pypp.cpp \ - PythonAPI/src/ISample.pypp.cpp \ + PythonAPI/src/PythonInterface_global_variables.pypp.cpp \ + PythonAPI/src/IInterferenceFunction.pypp.cpp \ + PythonAPI/src/RealParameterWrapper.pypp.cpp \ + PythonAPI/src/PythonInterface_free_functions.pypp.cpp \ + PythonAPI/src/MesoCrystal.pypp.cpp \ + PythonAPI/src/FormFactorCrystal.pypp.cpp \ PythonAPI/src/ISampleBuilder.pypp.cpp \ - PythonAPI/src/ISelectionRule.pypp.cpp \ - PythonAPI/src/ITransform3D.pypp.cpp \ - PythonAPI/src/kvector_t.pypp.cpp \ + PythonAPI/src/StochasticSampledParameter.pypp.cpp \ + PythonAPI/src/FormFactorFullSphere.pypp.cpp \ + PythonAPI/src/StochasticParameter_t.pypp.cpp \ + PythonAPI/src/SimpleSelectionRule.pypp.cpp \ + PythonAPI/src/IDecoration.pypp.cpp \ + PythonAPI/src/FTDistribution2DCauchy.pypp.cpp \ + PythonAPI/src/IFTDistribution2D.pypp.cpp \ + PythonAPI/src/ICloneable.pypp.cpp \ + PythonAPI/src/ParticleInfo.pypp.cpp \ + PythonAPI/src/ParticleDecoration.pypp.cpp \ + PythonAPI/src/FormFactorSphereGaussianRadius.pypp.cpp \ + PythonAPI/src/IClusteredParticles.pypp.cpp \ + PythonAPI/src/Particle.pypp.cpp \ PythonAPI/src/Lattice.pypp.cpp \ - PythonAPI/src/Lattice2DIFParameters.pypp.cpp \ - PythonAPI/src/LatticeBasis.pypp.cpp \ - PythonAPI/src/Layer.pypp.cpp \ - PythonAPI/src/LayerInterface.pypp.cpp \ - PythonAPI/src/LayerRoughness.pypp.cpp \ - PythonAPI/src/MaterialManager.pypp.cpp \ - PythonAPI/src/MesoCrystal.pypp.cpp \ - PythonAPI/src/MultiLayer.pypp.cpp \ - PythonAPI/src/ndimdata_t.pypp.cpp \ + PythonAPI/src/vector_longinteger_t.pypp.cpp \ + PythonAPI/src/IMaterial.pypp.cpp \ + PythonAPI/src/InterferenceFunction2DLattice.pypp.cpp \ + PythonAPI/src/ResolutionFunction2DSimple.pypp.cpp \ + PythonAPI/src/Detector.pypp.cpp \ + PythonAPI/src/Bin1DCVector.pypp.cpp \ + PythonAPI/src/HomogeneousMaterial.pypp.cpp \ + PythonAPI/src/FormFactorHemiSpheroid.pypp.cpp \ + PythonAPI/src/vector_integer_t.pypp.cpp \ PythonAPI/src/OutputDataIOFactory.pypp.cpp \ PythonAPI/src/ParameterPool.pypp.cpp \ - PythonAPI/src/Particle.pypp.cpp \ + PythonAPI/src/InterferenceFunction2DParaCrystal.pypp.cpp \ + PythonAPI/src/FormFactorCone.pypp.cpp \ + PythonAPI/src/Simulation.pypp.cpp \ + PythonAPI/src/FormFactorFullSpheroid.pypp.cpp \ + PythonAPI/src/MaterialManager.pypp.cpp \ PythonAPI/src/ParticleBuilder.pypp.cpp \ - PythonAPI/src/ParticleCoreShell.pypp.cpp \ - PythonAPI/src/ParticleDecoration.pypp.cpp \ - PythonAPI/src/ParticleInfo.pypp.cpp \ + PythonAPI/src/Instrument.pypp.cpp \ + PythonAPI/src/FormFactorGauss.pypp.cpp \ + PythonAPI/src/FormFactorPrism3.pypp.cpp \ PythonAPI/src/PositionParticleInfo.pypp.cpp \ - PythonAPI/src/PythonInterface_free_functions.pypp.cpp \ - PythonAPI/src/PythonInterface_global_variables.pypp.cpp \ - PythonAPI/src/RealParameterWrapper.pypp.cpp \ - PythonAPI/src/ResolutionFunction2DSimple.pypp.cpp \ - PythonAPI/src/RotateY_3D.pypp.cpp \ + PythonAPI/src/ICompositeSample.pypp.cpp \ + PythonAPI/src/ndimdata_t.pypp.cpp \ + PythonAPI/src/Beam.pypp.cpp \ + PythonAPI/src/FormFactorDecoratorDebyeWaller.pypp.cpp \ + PythonAPI/src/IFormFactor.pypp.cpp \ + PythonAPI/src/FormFactorBox.pypp.cpp \ + PythonAPI/src/IDetectorResolution.pypp.cpp \ PythonAPI/src/RotateZ_3D.pypp.cpp \ - PythonAPI/src/SimpleSelectionRule.pypp.cpp \ - PythonAPI/src/Simulation.pypp.cpp \ - PythonAPI/src/SimulationParameters.pypp.cpp \ + PythonAPI/src/LayerInterface.pypp.cpp \ + PythonAPI/src/InterferenceFunction1DParaCrystal.pypp.cpp \ + PythonAPI/src/RotateY_3D.pypp.cpp \ PythonAPI/src/StochasticDoubleGate.pypp.cpp \ - PythonAPI/src/StochasticDoubleGaussian.pypp.cpp \ - PythonAPI/src/StochasticParameter_t.pypp.cpp \ - PythonAPI/src/StochasticSampledParameter.pypp.cpp \ - PythonAPI/src/vdouble1d_t.pypp.cpp \ - PythonAPI/src/vector_IFormFactorPtr_t.pypp.cpp \ - PythonAPI/src/vector_integer_t.pypp.cpp \ + PythonAPI/src/cvector_t.pypp.cpp \ + PythonAPI/src/SimulationParameters.pypp.cpp \ + PythonAPI/src/IFormFactorBorn.pypp.cpp \ PythonAPI/src/vector_kvector_t.pypp.cpp \ - PythonAPI/src/vector_longinteger_t.pypp.cpp + PythonAPI/src/FormFactorEllipsoid.pypp.cpp \ + PythonAPI/src/LayerRoughness.pypp.cpp \ + PythonAPI/src/LatticeBasis.pypp.cpp \ + PythonAPI/src/StochasticDoubleGaussian.pypp.cpp \ + PythonAPI/src/Crystal.pypp.cpp INCLUDEPATH += ./PythonAPI/inc DEPENDPATH += ./PythonAPI/inc diff --git a/Doc/UserManual/Fitting.tex b/Doc/UserManual/Fitting.tex index 5eec518f2e2aada4af50bb2431018c557f836ff8..2c13c694104b87661268bc89c992ed486b6776b1 100644 --- a/Doc/UserManual/Fitting.tex +++ b/Doc/UserManual/Fitting.tex @@ -11,7 +11,7 @@ of the software is discussed in the following chapter. The chapter starts from the short introduction to the basic concept of data fitting in \SecRef{Fit::BasicConcept}. Details of the implementation in \BornAgain\ are given in \SecRef{Fit::ImplementationBornAgain}. -\SecRef{Fit::SimpleExample} contains Python fitting example with detailed explanations of every fitting step. +\SecRef{BasicPythonFittingExample} contains Python fitting example with detailed explanations of every fitting step. \section{Gentle introduction to the data fitting.} \SecLabel{Fit::BasicConcept} @@ -102,50 +102,35 @@ output detector. \subsection{Choice of parameters to be fitted} In principle, every parameter used in the construction of the sample can be used as a fitting parameter. For example, the particles' -heights, radii or the layer's roughness or thickness could be selected. These selected parameters - represent the variables on which the minimizer will operate. +heights, radii or the layer's roughness or thickness could be selected using +parameter pool mechanism explained in \SecRef{WorkingWithSampleParameters} (we recommend +reading of this section before proceeding further). +User specifies selected sample parameters as a fit parameter using \Code{FitSuite} +and its \Code{addFitParameter} method -\SecRef{WorkingWithSampleParameters} - +\begin{lstlisting}[language=shell, style=commandline] +fit_suite = FitSuite() +fit_suite.addFitParameter(<name>, <value>, <AttLimits>) +\end{lstlisting} +Here the \Code{<name>} correspond to the name of the parameter in the sample's parameter pool. +By using wildcard's in the parameter name the group of sample parameters, corresponding to the given +pattern, can be associated with single fitting parameter and +fitted simultaneously to get common optimal value. -In \BornAgain, the parameters used for the fit are specified using the -function \Code{addFitParameter} with the following list -of variables: \Code{(<name>, <value>, <step>, <AttLimits>, <error>)} where \Code{<value>}, \Code{<step>} and \Code{<error>} are double -values corresponding to the initial value of the parameter, the -iteration step (optional parameter equal to 0.01 by default) and the error respectively. By default the input value -of \Code{<error>} is 0. \Code{<AttLimits>} corresponds to -the boundaries imposed on the range of variations of the fitting -parameter's value. It can be +The second parameter \Code <value> correspond to the initial value of fitting parameter +while the third one \Code{<AttLimits>} corresponds to +the boundaries imposed on the range of variations of that value. It can be \begin{itemize} +\item \Code{limitless()} by default, \item \Code{fixed()}, \item \Code{lowerLimited(<min\_value>)}, +\item \Code{upperLimited(<max\_value>)}, \item \Code{limited(<min\_value>, <max\_value>)}. \end{itemize} where \Code{<min\_value>} and \Code{<max\_value>} are double values corresponding to the lower and higher boundary respectively. -The unit of \Code{<AttLimits>} is identical to the one used to characterize the -parameter's \Code{<value>}.\\ - -\noindent \Code{<name>} is the reference to the parameter as it had been registered -using \Code{RegisterParameter}. For example, to add the beam -intensity to the list, \Code{<name>} would be -\Code{"*Beam/intensity"}. In the case of the cylindrical particles's - height, it would become \Code{"*FormFactorCylinder/height"}.\\ - -\noindent If the sample contains different types of particles, the heights of different particles can be associated to two different -fitting parameters and minimized separately.\\ - - -\MakeRemark{Hints:}{ -\begin{itemize} -\item initially choose a small number of fitting - parameters. -\item provide a ``good'' initial guess to save time and reduce the - risk of failure to find the minimum looked for. -\end{itemize}} - @@ -158,12 +143,109 @@ is required to provide reduced and \textbf{normalized} data. +\subsection{Minimizer settings.} + +\BornAgain\ contains a variety of minimization engines from \Code{ROOT} and \Code{GSL} +libraries. By default \Code{Minuit2} minimizer with default settings will be used. +The remainder of this section explains expert setting which can be applied to get better +fit results. + +The default minimization algorithm can be changed using +\Code{MinimizerFactory} as shown below +\begin{lstlisting}[language=python, style=eclipseboxed,numbers=none] +fit_suite = FitSuite() +minimizer = MinimizerFactory.createMinimizer("<Minimizer name>","<algorithm>") +fit_suite.setMinimizer(minimizer) +\end{lstlisting} + +where \Code{<Minimizer +name>} and \Code{<algorithm>} can be chosen from the first and +second column of Table~\ref{table:fit_minimizers} respectively. + + +\begin{table}[h] +\centering +\begin{tabular}{@{}lll@{}} +\hline +\hline +\textbf{Minimizer name} & \textbf{Algorithm} & \textbf{Description}\\ +\hline +\Code{Minuit2} \cite{MinuitURL} & \Code{Migrad} & According to +\cite{mntutorial} best minimizer for nearly all functions,\\ + & & variable-metric method with inexact line search, \\ + & & a stable metric updating scheme,\\ + & & and checks for positive-definiteness.\\ +\hline + & \Code{Simplex} & simplex method of + Nelder and Mead\\ + & & usually slower than \Code{Migrad}, \\ + & & rather robust with respect to gross fluctuations in the\\ & & function + value, gives no reliable information about \\ & & parameter errors, \\ +\hline + & \Code{Combined} & minimization with + \Code{Migrad} \\ + & & but switches to Simplex if + Migrad fails to converge.\\ +\hline + & \Code{Scan} & not intended to + minimize, just scans the + function,\\ + & & one parameter at a + time, retains the best value + after\\ & & each scan\\ +\hline + & \Code{Fumili} & optimized + method for least square and log + likelihood\\ & & minimizations \\ +\hline +\Code{GSLMultiMin} \cite{GSLMultiMinURL} & \Code{ConjugateFR} & Fletcher-Reeves conjugate gradient + algorithm,\\ +\hline +& \Code{ConjugatePR} & Polak-Ribiere conjugate gradient algorithm,\\ +\hline +& \Code{BFGS} & Broyden-Fletcher-Goldfarb-Shanno algorithm,\\ +\hline +& \Code{BFGS2} & improved version of BFGS,\\ +\hline +& \Code{SteepestDescent} & follows the downhill gradient of the function at each step\\ +\hline +\Code{GSLMultiFit} \cite{GSLMultiFitURL} & & Levenberg-Marquardt +Algorithm\\ +\hline +\Code{GSLSimAn} \cite{GSLSimAnURL}& & Simulated Annealing Algorithm\\ +\hline +\hline +\end{tabular} +\caption{List of minimizers implemented in \BornAgain. } +\label{table:fit_minimizers} +\end{table} + + +Every minimization algorithm have a number of setting which is set by default to the most + +which can be changed to tune minimization +flow and achieve best results. + +They will be explained elsewhere. + + + + + \input{FittingExamples} +\section {How to get right answer from \BornAgain\ fitting.} + +\begin{itemize} +\item It is recommended to start from default minimizer settings and turn to the fine tunings +only after some experience has been acquired. + +\end{itemize} + diff --git a/Doc/UserManual/FittingExamples.tex b/Doc/UserManual/FittingExamples.tex index e57b2a58dc149aadd865a7f4b210baaa73ec0904..b98058d15e2ff1ada709b62efc9c3fefe0b5ba56 100644 --- a/Doc/UserManual/FittingExamples.tex +++ b/Doc/UserManual/FittingExamples.tex @@ -1 +1,2 @@ -\section{Basic Python fitting example/} +\section{Basic Python fitting example/} \SecLabel{BasicPythonFittingExample} + diff --git a/Doc/UserManual/SimulationExamples.tex b/Doc/UserManual/SimulationExamples.tex index c8815c650db68cd4e748de3dcfe830a0de739940..fcba8d8c8b1933bb442fb0fca4fd7ac8ef8c1e8c 100644 --- a/Doc/UserManual/SimulationExamples.tex +++ b/Doc/UserManual/SimulationExamples.tex @@ -404,8 +404,8 @@ represented as shown in Fig.~\ref{fig:sample_tree}. The top \Code{MultiLayer} object is composed of three children, namely \Code{Layer \#0, Layer Interface \#0} and \Code{Layer \#1}. Children objects by turn might also be composed into tree-like structure. For example, -\Code{Layer \#0} contains \Code{ParticleDecoration} object which holds all information -related to the particles populating the layer. All numerical values which have been used +\Code{Layer \#0} contains \Code{ParticleDecoration} object which holds information +related to the two types of particles populating the layer. All numerical values which have been used during sample construction (thickness of layers, size of particles, roughness parameters) are the part of the same tree structure. They are marked in the figure with shaded gray boxes. diff --git a/Doc/UserManual/UserManual.pdf b/Doc/UserManual/UserManual.pdf index 4f8a9ebb2b7cf222d1c41d43d45e2fef7dfc695c..edee993ceeeaa3b1bdbd0a6573530bc1979dc83d 100644 Binary files a/Doc/UserManual/UserManual.pdf and b/Doc/UserManual/UserManual.pdf differ diff --git a/Examples/python/fitting/ex001_SampleParametersIntro/SampleParametersIntro.py b/Examples/python/fitting/ex001_SampleParametersIntro/SampleParametersIntro.py index c030a84e2fbd194f7ef4d7ebe4ba7646b16d9e7f..96b9bad3e75cae5c711119672446afd66007049f 100644 --- a/Examples/python/fitting/ex001_SampleParametersIntro/SampleParametersIntro.py +++ b/Examples/python/fitting/ex001_SampleParametersIntro/SampleParametersIntro.py @@ -60,6 +60,7 @@ def run_simulations(): simulation = get_simulation() + results = [] # FIXME below as soon as GetOutputData() and CreateParameterTree() are refactored @@ -72,7 +73,7 @@ def run_simulations(): # simulation #2 # one sample parameter (height of the cylinder) is changed using exact parameter name - sample.createParameterTree().setParameterValue( + sample.setParameterValue( "/MultiLayer/Layer0/ParticleDecoration/ParticleInfo0/Particle/FormFactorCylinder/height", 10*nanometer) simulation.setSample(sample) @@ -81,16 +82,16 @@ def run_simulations(): # simulation #3 # all parameters which are matching criteria will be changed (height of the cylinder in this case) - sample.createParameterTree().setMatchedParametersValue("*/FormFactorCylinder/height", 100*nanometer) + sample.setMatchedParametersValue("*/FormFactorCylinder/height", 100*nanometer) simulation.setSample(sample) simulation.runSimulation() results.append(GetOutputData(simulation)) # simulation #4 # all parameters which are matching criteria will be changed - sample.createParameterTree().setMatchedParametersValue("*/FormFactorCylinder/height", 10*nanometer) + sample.setMatchedParametersValue("*/FormFactorCylinder/height", 10*nanometer) # both FormFactorPrism3/half_side and FormFactorPrism3/height will be set to 10 nanometer - sample.createParameterTree().setMatchedParametersValue("*/FormFactorPrism3/*", 10*nanometer) + sample.setMatchedParametersValue("*/FormFactorPrism3/*", 10*nanometer) simulation.setSample(sample) simulation.runSimulation() results.append(GetOutputData(simulation)) diff --git a/Examples/python/fitting/ex002_FitCylindersAndPrisms/FitCylindersPrisms.py b/Examples/python/fitting/ex002_FitCylindersAndPrisms/FitCylindersPrisms.py index d0f6fb0096b7630c29bbc92c88050cd1a0956976..f3a14f856d327abc53193adda0d5e848722fe49c 100644 --- a/Examples/python/fitting/ex002_FitCylindersAndPrisms/FitCylindersPrisms.py +++ b/Examples/python/fitting/ex002_FitCylindersAndPrisms/FitCylindersPrisms.py @@ -134,7 +134,9 @@ def run_fitting(): #chiModule.setChiSquaredFunction( SquaredFunctionWithSystematicError() ) fitSuite = FitSuite() fitSuite.addSimulationAndRealData(simulation, real_data)#, chiModule) - + + MinimizerFactory.print_catalogue() + # setting fitting minimizer fitSuite.setMinimizer(MinimizerFactory.createMinimizer("Minuit2","Migrad")) #: Minuit2, Migrad #fitSuite.setMinimizer(MinimizerFactory.createMinimizer ("Minuit2","Simplex")) diff --git a/Fit/Factory/inc/MinimizerFactory.h b/Fit/Factory/inc/MinimizerFactory.h index 9ff3e61ca6df7d86dfe22b539dd46ffcb208fb68..a0868655ab78aee56ff90ca9d3bdbb718ffe31e7 100644 --- a/Fit/Factory/inc/MinimizerFactory.h +++ b/Fit/Factory/inc/MinimizerFactory.h @@ -28,7 +28,7 @@ class BA_CORE_API_ MinimizerFactory { public: static IMinimizer *createMinimizer(const std::string& minimizer, const std::string& algorithm = std::string(), const std::string& options=std::string() ); - static void print_catalogue(); + static void printCatalogue(); private: diff --git a/Fit/Factory/src/FitSuite.cpp b/Fit/Factory/src/FitSuite.cpp index f4c4659cf670b50231cb4457e6f0d49b73090232..d99bee6f235b950d44e97c2df068e7c5b6bee8cd 100644 --- a/Fit/Factory/src/FitSuite.cpp +++ b/Fit/Factory/src/FitSuite.cpp @@ -18,9 +18,10 @@ #include "IMinimizer.h" #include "MessageService.h" #include "FitSuitePrintObserver.h" +#include "MinimizerFactory.h" #include <boost/bind.hpp> -FitSuite::FitSuite() : m_minimizer(0), m_is_last_iteration(false) +FitSuite::FitSuite() : m_minimizer(MinimizerFactory::createMinimizer("Minuit2", "Migrad")), m_is_last_iteration(false) { m_function_chi2.init(this); m_function_gradient.init(this); diff --git a/Fit/Factory/src/MinimizerFactory.cpp b/Fit/Factory/src/MinimizerFactory.cpp index df0c05f5a731f11697bc7995e7f225677ccdebb7..efe9b5600ee07e7aab556473c7076b4e88ecae08 100644 --- a/Fit/Factory/src/MinimizerFactory.cpp +++ b/Fit/Factory/src/MinimizerFactory.cpp @@ -12,17 +12,19 @@ MinimizerFactory::Catalogue MinimizerFactory::m_catalogue = MinimizerFactory::Ca // constructing map of minimizer names holding list of defined algorithms for every minimizer MinimizerFactory::Catalogue::Catalogue() { + // TODO FIXME As soon as we got rid from ROOT in our dependencies, we've lost Genetic minimizer and it is not easy to get it back + // our minimizers - m_data["Test"] = boost::assign::list_of(""); - m_data["Scan"] = boost::assign::list_of(""); + //m_data["Test"] = boost::assign::list_of(""); + //m_data["Scan"] = boost::assign::list_of(""); // ROOT minimizers - m_data["Minuit"] = boost::assign::list_of("Migrad")("Simplex")("Combined")("Scan"); + //m_data["Minuit"] = boost::assign::list_of("Migrad")("Simplex")("Combined")("Scan"); m_data["Minuit2"] = boost::assign::list_of("Migrad")("Simplex")("Combined")("Scan")("Fumili"); - m_data["Fumili"] = boost::assign::list_of(""); + //m_data["Fumili"] = boost::assign::list_of(""); m_data["GSLMultiMin"] = boost::assign::list_of("ConjugateFR")("ConjugatePR")("BFGS")("BFGS2")("SteepestDescent"); m_data["GSLMultiFit"] = boost::assign::list_of(""); m_data["GSLSimAn"] = boost::assign::list_of(""); - m_data["Genetic"] = boost::assign::list_of(""); + //m_data["Genetic"] = boost::assign::list_of(""); // available only with ROOT libraries } @@ -50,7 +52,7 @@ bool MinimizerFactory::Catalogue::isValid(const std::string& minimizer, const st return false; } -void MinimizerFactory::print_catalogue() +void MinimizerFactory::printCatalogue() { std::cout << m_catalogue; } diff --git a/Fit/PythonAPI/src/AttLimits.pypp.cpp b/Fit/PythonAPI/src/AttLimits.pypp.cpp index e9ebeee424eb2c646fdbec7c49aea06ddc19540b..9faa92236e7264e872e5aa990419aca05dc8b399 100644 --- a/Fit/PythonAPI/src/AttLimits.pypp.cpp +++ b/Fit/PythonAPI/src/AttLimits.pypp.cpp @@ -33,11 +33,11 @@ struct AttLimits_wrapper : AttLimits, bp::wrapper< AttLimits > { virtual double getLowerLimit( ) const { if( bp::override func_getLowerLimit = this->get_override( "getLowerLimit" ) ) return func_getLowerLimit( ); - else{ + else return this->AttLimits::getLowerLimit( ); - } } + double default_getLowerLimit( ) const { return AttLimits::getLowerLimit( ); } @@ -45,11 +45,11 @@ struct AttLimits_wrapper : AttLimits, bp::wrapper< AttLimits > { virtual double getUpperLimit( ) const { if( bp::override func_getUpperLimit = this->get_override( "getUpperLimit" ) ) return func_getUpperLimit( ); - else{ + else return this->AttLimits::getUpperLimit( ); - } } + double default_getUpperLimit( ) const { return AttLimits::getUpperLimit( ); } @@ -57,11 +57,11 @@ struct AttLimits_wrapper : AttLimits, bp::wrapper< AttLimits > { virtual bool hasLowerAndUpperLimits( ) const { if( bp::override func_hasLowerAndUpperLimits = this->get_override( "hasLowerAndUpperLimits" ) ) return func_hasLowerAndUpperLimits( ); - else{ + else return this->AttLimits::hasLowerAndUpperLimits( ); - } } + bool default_hasLowerAndUpperLimits( ) const { return AttLimits::hasLowerAndUpperLimits( ); } @@ -69,11 +69,11 @@ struct AttLimits_wrapper : AttLimits, bp::wrapper< AttLimits > { virtual bool hasLowerLimit( ) const { if( bp::override func_hasLowerLimit = this->get_override( "hasLowerLimit" ) ) return func_hasLowerLimit( ); - else{ + else return this->AttLimits::hasLowerLimit( ); - } } + bool default_hasLowerLimit( ) const { return AttLimits::hasLowerLimit( ); } @@ -81,11 +81,11 @@ struct AttLimits_wrapper : AttLimits, bp::wrapper< AttLimits > { virtual bool hasUpperLimit( ) const { if( bp::override func_hasUpperLimit = this->get_override( "hasUpperLimit" ) ) return func_hasUpperLimit( ); - else{ + else return this->AttLimits::hasUpperLimit( ); - } } + bool default_hasUpperLimit( ) const { return AttLimits::hasUpperLimit( ); } @@ -93,11 +93,11 @@ struct AttLimits_wrapper : AttLimits, bp::wrapper< AttLimits > { virtual bool isFixed( ) const { if( bp::override func_isFixed = this->get_override( "isFixed" ) ) return func_isFixed( ); - else{ + else return this->AttLimits::isFixed( ); - } } + bool default_isFixed( ) const { return AttLimits::isFixed( ); } @@ -105,11 +105,11 @@ struct AttLimits_wrapper : AttLimits, bp::wrapper< AttLimits > { virtual void removeLimits( ) { if( bp::override func_removeLimits = this->get_override( "removeLimits" ) ) func_removeLimits( ); - else{ + else this->AttLimits::removeLimits( ); - } } + void default_removeLimits( ) { AttLimits::removeLimits( ); } @@ -117,11 +117,11 @@ struct AttLimits_wrapper : AttLimits, bp::wrapper< AttLimits > { virtual void removeLowerLimit( ) { if( bp::override func_removeLowerLimit = this->get_override( "removeLowerLimit" ) ) func_removeLowerLimit( ); - else{ + else this->AttLimits::removeLowerLimit( ); - } } + void default_removeLowerLimit( ) { AttLimits::removeLowerLimit( ); } @@ -129,11 +129,11 @@ struct AttLimits_wrapper : AttLimits, bp::wrapper< AttLimits > { virtual void removeUpperLimit( ) { if( bp::override func_removeUpperLimit = this->get_override( "removeUpperLimit" ) ) func_removeUpperLimit( ); - else{ + else this->AttLimits::removeUpperLimit( ); - } } + void default_removeUpperLimit( ) { AttLimits::removeUpperLimit( ); } @@ -141,11 +141,11 @@ struct AttLimits_wrapper : AttLimits, bp::wrapper< AttLimits > { virtual void setFixed( bool is_fixed ) { if( bp::override func_setFixed = this->get_override( "setFixed" ) ) func_setFixed( is_fixed ); - else{ + else this->AttLimits::setFixed( is_fixed ); - } } + void default_setFixed( bool is_fixed ) { AttLimits::setFixed( is_fixed ); } @@ -153,11 +153,11 @@ struct AttLimits_wrapper : AttLimits, bp::wrapper< AttLimits > { virtual void setLimits( double xmin, double xmax ) { if( bp::override func_setLimits = this->get_override( "setLimits" ) ) func_setLimits( xmin, xmax ); - else{ + else this->AttLimits::setLimits( xmin, xmax ); - } } + void default_setLimits( double xmin, double xmax ) { AttLimits::setLimits( xmin, xmax ); } @@ -165,11 +165,11 @@ struct AttLimits_wrapper : AttLimits, bp::wrapper< AttLimits > { virtual void setLowerLimit( double value ) { if( bp::override func_setLowerLimit = this->get_override( "setLowerLimit" ) ) func_setLowerLimit( value ); - else{ + else this->AttLimits::setLowerLimit( value ); - } } + void default_setLowerLimit( double value ) { AttLimits::setLowerLimit( value ); } @@ -177,11 +177,11 @@ struct AttLimits_wrapper : AttLimits, bp::wrapper< AttLimits > { virtual void setUpperLimit( double value ) { if( bp::override func_setUpperLimit = this->get_override( "setUpperLimit" ) ) func_setUpperLimit( value ); - else{ + else this->AttLimits::setUpperLimit( value ); - } } + void default_setUpperLimit( double value ) { AttLimits::setUpperLimit( value ); } diff --git a/Fit/PythonAPI/src/ChiSquaredModule.pypp.cpp b/Fit/PythonAPI/src/ChiSquaredModule.pypp.cpp index 85ec4492f73bcc75250442d5e346b3def2042761..b2e416fca359015f2890a5d361248bb319b20c11 100644 --- a/Fit/PythonAPI/src/ChiSquaredModule.pypp.cpp +++ b/Fit/PythonAPI/src/ChiSquaredModule.pypp.cpp @@ -33,11 +33,11 @@ struct ChiSquaredModule_wrapper : ChiSquaredModule, bp::wrapper< ChiSquaredModul virtual double calculateChiSquared( ) { if( bp::override func_calculateChiSquared = this->get_override( "calculateChiSquared" ) ) return func_calculateChiSquared( ); - else{ + else return this->ChiSquaredModule::calculateChiSquared( ); - } } + double default_calculateChiSquared( ) { return ChiSquaredModule::calculateChiSquared( ); } @@ -45,11 +45,11 @@ struct ChiSquaredModule_wrapper : ChiSquaredModule, bp::wrapper< ChiSquaredModul virtual ::ChiSquaredModule * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->ChiSquaredModule::clone( ); - } } + ::ChiSquaredModule * default_clone( ) const { return ChiSquaredModule::clone( ); } @@ -57,35 +57,35 @@ struct ChiSquaredModule_wrapper : ChiSquaredModule, bp::wrapper< ChiSquaredModul virtual ::OutputData< double > * createChi2DifferenceMap( ) const { if( bp::override func_createChi2DifferenceMap = this->get_override( "createChi2DifferenceMap" ) ) return func_createChi2DifferenceMap( ); - else{ + else return this->ChiSquaredModule::createChi2DifferenceMap( ); - } } + ::OutputData< double > * default_createChi2DifferenceMap( ) const { return ChiSquaredModule::createChi2DifferenceMap( ); } - virtual double getResidualValue( ::size_t index ) const { + virtual double getResidualValue( ::std::size_t index ) const { if( bp::override func_getResidualValue = this->get_override( "getResidualValue" ) ) return func_getResidualValue( index ); - else{ + else return this->ChiSquaredModule::getResidualValue( index ); - } } - double default_getResidualValue( ::size_t index ) const { + + double default_getResidualValue( ::std::size_t index ) const { return ChiSquaredModule::getResidualValue( index ); } virtual ::IFittingDataSelector const * getFittingDataSelector( ) const { if( bp::override func_getFittingDataSelector = this->get_override( "getFittingDataSelector" ) ) return func_getFittingDataSelector( ); - else{ + else return this->IChiSquaredModule::getFittingDataSelector( ); - } } + ::IFittingDataSelector const * default_getFittingDataSelector( ) const { return IChiSquaredModule::getFittingDataSelector( ); } @@ -93,11 +93,11 @@ struct ChiSquaredModule_wrapper : ChiSquaredModule, bp::wrapper< ChiSquaredModul virtual ::IIntensityFunction const * getIntensityFunction( ) const { if( bp::override func_getIntensityFunction = this->get_override( "getIntensityFunction" ) ) return func_getIntensityFunction( ); - else{ + else return this->IChiSquaredModule::getIntensityFunction( ); - } } + ::IIntensityFunction const * default_getIntensityFunction( ) const { return IChiSquaredModule::getIntensityFunction( ); } @@ -105,11 +105,11 @@ struct ChiSquaredModule_wrapper : ChiSquaredModule, bp::wrapper< ChiSquaredModul virtual ::IOutputDataNormalizer const * getOutputDataNormalizer( ) const { if( bp::override func_getOutputDataNormalizer = this->get_override( "getOutputDataNormalizer" ) ) return func_getOutputDataNormalizer( ); - else{ + else return this->IChiSquaredModule::getOutputDataNormalizer( ); - } } + ::IOutputDataNormalizer const * default_getOutputDataNormalizer( ) const { return IChiSquaredModule::getOutputDataNormalizer( ); } @@ -117,11 +117,11 @@ struct ChiSquaredModule_wrapper : ChiSquaredModule, bp::wrapper< ChiSquaredModul virtual ::IOutputDataNormalizer * getOutputDataNormalizer( ) { if( bp::override func_getOutputDataNormalizer = this->get_override( "getOutputDataNormalizer" ) ) return func_getOutputDataNormalizer( ); - else{ + else return this->IChiSquaredModule::getOutputDataNormalizer( ); - } } + ::IOutputDataNormalizer * default_getOutputDataNormalizer( ) { return IChiSquaredModule::getOutputDataNormalizer( ); } @@ -129,11 +129,11 @@ struct ChiSquaredModule_wrapper : ChiSquaredModule, bp::wrapper< ChiSquaredModul virtual void setFittingDataSelector( ::IFittingDataSelector const & selector ) { if( bp::override func_setFittingDataSelector = this->get_override( "setFittingDataSelector" ) ) func_setFittingDataSelector( boost::ref(selector) ); - else{ + else this->IChiSquaredModule::setFittingDataSelector( boost::ref(selector) ); - } } + void default_setFittingDataSelector( ::IFittingDataSelector const & selector ) { IChiSquaredModule::setFittingDataSelector( boost::ref(selector) ); } @@ -141,11 +141,11 @@ struct ChiSquaredModule_wrapper : ChiSquaredModule, bp::wrapper< ChiSquaredModul virtual void setIntensityFunction( ::IIntensityFunction const & intensity_function ) { if( bp::override func_setIntensityFunction = this->get_override( "setIntensityFunction" ) ) func_setIntensityFunction( boost::ref(intensity_function) ); - else{ + else this->IChiSquaredModule::setIntensityFunction( boost::ref(intensity_function) ); - } } + void default_setIntensityFunction( ::IIntensityFunction const & intensity_function ) { IChiSquaredModule::setIntensityFunction( boost::ref(intensity_function) ); } @@ -153,11 +153,11 @@ struct ChiSquaredModule_wrapper : ChiSquaredModule, bp::wrapper< ChiSquaredModul virtual void setOutputDataNormalizer( ::IOutputDataNormalizer const & data_normalizer ) { if( bp::override func_setOutputDataNormalizer = this->get_override( "setOutputDataNormalizer" ) ) func_setOutputDataNormalizer( boost::ref(data_normalizer) ); - else{ + else this->IChiSquaredModule::setOutputDataNormalizer( boost::ref(data_normalizer) ); - } } + void default_setOutputDataNormalizer( ::IOutputDataNormalizer const & data_normalizer ) { IChiSquaredModule::setOutputDataNormalizer( boost::ref(data_normalizer) ); } @@ -208,8 +208,8 @@ void register_ChiSquaredModule_class(){ } { //::ChiSquaredModule::getResidualValue - typedef double ( ::ChiSquaredModule::*getResidualValue_function_type )( ::size_t ) const; - typedef double ( ChiSquaredModule_wrapper::*default_getResidualValue_function_type )( ::size_t ) const; + typedef double ( ::ChiSquaredModule::*getResidualValue_function_type )( ::std::size_t ) const; + typedef double ( ChiSquaredModule_wrapper::*default_getResidualValue_function_type )( ::std::size_t ) const; ChiSquaredModule_exposer.def( "getResidualValue" diff --git a/Fit/PythonAPI/src/FitSuite.pypp.cpp b/Fit/PythonAPI/src/FitSuite.pypp.cpp index d7d4ba051dfa20b45e02d8e546a232e2501d3c16..15b46b56cf11d8ca2b34c5980527c8ffeb4f4db8 100644 --- a/Fit/PythonAPI/src/FitSuite.pypp.cpp +++ b/Fit/PythonAPI/src/FitSuite.pypp.cpp @@ -26,11 +26,11 @@ struct FitSuite_wrapper : FitSuite, bp::wrapper< FitSuite > { virtual void runFit( ) { if( bp::override func_runFit = this->get_override( "runFit" ) ) func_runFit( ); - else{ + else this->FitSuite::runFit( ); - } } + void default_runFit( ) { FitSuite::runFit( ); } @@ -96,7 +96,7 @@ void register_FitSuite_class(){ } { //::FitSuite::getNCalls - typedef ::size_t ( ::FitSuite::*getNCalls_function_type )( ) const; + typedef ::std::size_t ( ::FitSuite::*getNCalls_function_type )( ) const; FitSuite_exposer.def( "getNCalls" diff --git a/Fit/PythonAPI/src/IChiSquaredModule.pypp.cpp b/Fit/PythonAPI/src/IChiSquaredModule.pypp.cpp index 5952056df869de4fc60756008917ad0859e6a21c..2d8c14cad8db365d3eb2da910988874caa6c3c49 100644 --- a/Fit/PythonAPI/src/IChiSquaredModule.pypp.cpp +++ b/Fit/PythonAPI/src/IChiSquaredModule.pypp.cpp @@ -41,11 +41,11 @@ struct IChiSquaredModule_wrapper : IChiSquaredModule, bp::wrapper< IChiSquaredMo virtual ::IFittingDataSelector const * getFittingDataSelector( ) const { if( bp::override func_getFittingDataSelector = this->get_override( "getFittingDataSelector" ) ) return func_getFittingDataSelector( ); - else{ + else return this->IChiSquaredModule::getFittingDataSelector( ); - } } + ::IFittingDataSelector const * default_getFittingDataSelector( ) const { return IChiSquaredModule::getFittingDataSelector( ); } @@ -53,11 +53,11 @@ struct IChiSquaredModule_wrapper : IChiSquaredModule, bp::wrapper< IChiSquaredMo virtual ::IIntensityFunction const * getIntensityFunction( ) const { if( bp::override func_getIntensityFunction = this->get_override( "getIntensityFunction" ) ) return func_getIntensityFunction( ); - else{ + else return this->IChiSquaredModule::getIntensityFunction( ); - } } + ::IIntensityFunction const * default_getIntensityFunction( ) const { return IChiSquaredModule::getIntensityFunction( ); } @@ -65,11 +65,11 @@ struct IChiSquaredModule_wrapper : IChiSquaredModule, bp::wrapper< IChiSquaredMo virtual ::IOutputDataNormalizer const * getOutputDataNormalizer( ) const { if( bp::override func_getOutputDataNormalizer = this->get_override( "getOutputDataNormalizer" ) ) return func_getOutputDataNormalizer( ); - else{ + else return this->IChiSquaredModule::getOutputDataNormalizer( ); - } } + ::IOutputDataNormalizer const * default_getOutputDataNormalizer( ) const { return IChiSquaredModule::getOutputDataNormalizer( ); } @@ -77,35 +77,35 @@ struct IChiSquaredModule_wrapper : IChiSquaredModule, bp::wrapper< IChiSquaredMo virtual ::IOutputDataNormalizer * getOutputDataNormalizer( ) { if( bp::override func_getOutputDataNormalizer = this->get_override( "getOutputDataNormalizer" ) ) return func_getOutputDataNormalizer( ); - else{ + else return this->IChiSquaredModule::getOutputDataNormalizer( ); - } } + ::IOutputDataNormalizer * default_getOutputDataNormalizer( ) { return IChiSquaredModule::getOutputDataNormalizer( ); } - virtual double getResidualValue( ::size_t arg0 ) const { + virtual double getResidualValue( ::std::size_t arg0 ) const { if( bp::override func_getResidualValue = this->get_override( "getResidualValue" ) ) return func_getResidualValue( arg0 ); - else{ + else return this->IChiSquaredModule::getResidualValue( arg0 ); - } } - double default_getResidualValue( ::size_t arg0 ) const { + + double default_getResidualValue( ::std::size_t arg0 ) const { return IChiSquaredModule::getResidualValue( arg0 ); } virtual void setFittingDataSelector( ::IFittingDataSelector const & selector ) { if( bp::override func_setFittingDataSelector = this->get_override( "setFittingDataSelector" ) ) func_setFittingDataSelector( boost::ref(selector) ); - else{ + else this->IChiSquaredModule::setFittingDataSelector( boost::ref(selector) ); - } } + void default_setFittingDataSelector( ::IFittingDataSelector const & selector ) { IChiSquaredModule::setFittingDataSelector( boost::ref(selector) ); } @@ -113,11 +113,11 @@ struct IChiSquaredModule_wrapper : IChiSquaredModule, bp::wrapper< IChiSquaredMo virtual void setIntensityFunction( ::IIntensityFunction const & intensity_function ) { if( bp::override func_setIntensityFunction = this->get_override( "setIntensityFunction" ) ) func_setIntensityFunction( boost::ref(intensity_function) ); - else{ + else this->IChiSquaredModule::setIntensityFunction( boost::ref(intensity_function) ); - } } + void default_setIntensityFunction( ::IIntensityFunction const & intensity_function ) { IChiSquaredModule::setIntensityFunction( boost::ref(intensity_function) ); } @@ -125,11 +125,11 @@ struct IChiSquaredModule_wrapper : IChiSquaredModule, bp::wrapper< IChiSquaredMo virtual void setOutputDataNormalizer( ::IOutputDataNormalizer const & data_normalizer ) { if( bp::override func_setOutputDataNormalizer = this->get_override( "setOutputDataNormalizer" ) ) func_setOutputDataNormalizer( boost::ref(data_normalizer) ); - else{ + else this->IChiSquaredModule::setOutputDataNormalizer( boost::ref(data_normalizer) ); - } } + void default_setOutputDataNormalizer( ::IOutputDataNormalizer const & data_normalizer ) { IChiSquaredModule::setOutputDataNormalizer( boost::ref(data_normalizer) ); } @@ -231,8 +231,8 @@ void register_IChiSquaredModule_class(){ } { //::IChiSquaredModule::getResidualValue - typedef double ( ::IChiSquaredModule::*getResidualValue_function_type )( ::size_t ) const; - typedef double ( IChiSquaredModule_wrapper::*default_getResidualValue_function_type )( ::size_t ) const; + typedef double ( ::IChiSquaredModule::*getResidualValue_function_type )( ::std::size_t ) const; + typedef double ( IChiSquaredModule_wrapper::*default_getResidualValue_function_type )( ::std::size_t ) const; IChiSquaredModule_exposer.def( "getResidualValue" diff --git a/Fit/PythonAPI/src/IMinimizer.pypp.cpp b/Fit/PythonAPI/src/IMinimizer.pypp.cpp index 57e46db05b73e9ab610fb141884531a23c938395..dd5847e04e1cbbc605ea53fbc101052b26b5b99e 100644 --- a/Fit/PythonAPI/src/IMinimizer.pypp.cpp +++ b/Fit/PythonAPI/src/IMinimizer.pypp.cpp @@ -26,83 +26,83 @@ struct IMinimizer_wrapper : IMinimizer, bp::wrapper< IMinimizer > { virtual void clear( ) { if( bp::override func_clear = this->get_override( "clear" ) ) func_clear( ); - else{ + else this->IMinimizer::clear( ); - } } + void default_clear( ) { IMinimizer::clear( ); } - virtual double getErrorOfVariable( ::size_t arg0 ) const { + virtual double getErrorOfVariable( ::std::size_t arg0 ) const { if( bp::override func_getErrorOfVariable = this->get_override( "getErrorOfVariable" ) ) return func_getErrorOfVariable( arg0 ); - else{ + else return this->IMinimizer::getErrorOfVariable( arg0 ); - } } - double default_getErrorOfVariable( ::size_t arg0 ) const { + + double default_getErrorOfVariable( ::std::size_t arg0 ) const { return IMinimizer::getErrorOfVariable( arg0 ); } virtual double getMinValue( ) const { if( bp::override func_getMinValue = this->get_override( "getMinValue" ) ) return func_getMinValue( ); - else{ + else return this->IMinimizer::getMinValue( ); - } } + double default_getMinValue( ) const { return IMinimizer::getMinValue( ); } - virtual ::size_t getNCalls( ) const { + virtual ::std::size_t getNCalls( ) const { if( bp::override func_getNCalls = this->get_override( "getNCalls" ) ) return func_getNCalls( ); - else{ + else return this->IMinimizer::getNCalls( ); - } } - ::size_t default_getNCalls( ) const { + + ::std::size_t default_getNCalls( ) const { return IMinimizer::getNCalls( ); } - virtual ::size_t getNumberOfVariables( ) const { + virtual ::std::size_t getNumberOfVariables( ) const { if( bp::override func_getNumberOfVariables = this->get_override( "getNumberOfVariables" ) ) return func_getNumberOfVariables( ); - else{ + else return this->IMinimizer::getNumberOfVariables( ); - } } - ::size_t default_getNumberOfVariables( ) const { + + ::std::size_t default_getNumberOfVariables( ) const { return IMinimizer::getNumberOfVariables( ); } - virtual double getValueOfVariableAtMinimum( ::size_t arg0 ) const { + virtual double getValueOfVariableAtMinimum( ::std::size_t arg0 ) const { if( bp::override func_getValueOfVariableAtMinimum = this->get_override( "getValueOfVariableAtMinimum" ) ) return func_getValueOfVariableAtMinimum( arg0 ); - else{ + else return this->IMinimizer::getValueOfVariableAtMinimum( arg0 ); - } } - double default_getValueOfVariableAtMinimum( ::size_t arg0 ) const { + + double default_getValueOfVariableAtMinimum( ::std::size_t arg0 ) const { return IMinimizer::getValueOfVariableAtMinimum( arg0 ); } virtual ::std::vector< double > getValueOfVariablesAtMinimum( ) const { if( bp::override func_getValueOfVariablesAtMinimum = this->get_override( "getValueOfVariablesAtMinimum" ) ) return func_getValueOfVariablesAtMinimum( ); - else{ + else return this->IMinimizer::getValueOfVariablesAtMinimum( ); - } } + ::std::vector< double > default_getValueOfVariablesAtMinimum( ) const { return IMinimizer::getValueOfVariablesAtMinimum( ); } @@ -115,11 +115,11 @@ struct IMinimizer_wrapper : IMinimizer, bp::wrapper< IMinimizer > { virtual void printResults( ) const { if( bp::override func_printResults = this->get_override( "printResults" ) ) func_printResults( ); - else{ + else this->IMinimizer::printResults( ); - } } + void default_printResults( ) const { IMinimizer::printResults( ); } @@ -127,11 +127,11 @@ struct IMinimizer_wrapper : IMinimizer, bp::wrapper< IMinimizer > { virtual void setOptions( ::std::string const & arg0 ) { if( bp::override func_setOptions = this->get_override( "setOptions" ) ) func_setOptions( arg0 ); - else{ + else this->IMinimizer::setOptions( arg0 ); - } } + void default_setOptions( ::std::string const & arg0 ) { IMinimizer::setOptions( arg0 ); } @@ -139,11 +139,11 @@ struct IMinimizer_wrapper : IMinimizer, bp::wrapper< IMinimizer > { virtual void setParameters( ::FitSuiteParameters const & arg0 ) { if( bp::override func_setParameters = this->get_override( "setParameters" ) ) func_setParameters( boost::ref(arg0) ); - else{ + else this->IMinimizer::setParameters( boost::ref(arg0) ); - } } + void default_setParameters( ::FitSuiteParameters const & arg0 ) { IMinimizer::setParameters( boost::ref(arg0) ); } @@ -169,8 +169,8 @@ void register_IMinimizer_class(){ } { //::IMinimizer::getErrorOfVariable - typedef double ( ::IMinimizer::*getErrorOfVariable_function_type )( ::size_t ) const; - typedef double ( IMinimizer_wrapper::*default_getErrorOfVariable_function_type )( ::size_t ) const; + typedef double ( ::IMinimizer::*getErrorOfVariable_function_type )( ::std::size_t ) const; + typedef double ( IMinimizer_wrapper::*default_getErrorOfVariable_function_type )( ::std::size_t ) const; IMinimizer_exposer.def( "getErrorOfVariable" @@ -192,8 +192,8 @@ void register_IMinimizer_class(){ } { //::IMinimizer::getNCalls - typedef ::size_t ( ::IMinimizer::*getNCalls_function_type )( ) const; - typedef ::size_t ( IMinimizer_wrapper::*default_getNCalls_function_type )( ) const; + typedef ::std::size_t ( ::IMinimizer::*getNCalls_function_type )( ) const; + typedef ::std::size_t ( IMinimizer_wrapper::*default_getNCalls_function_type )( ) const; IMinimizer_exposer.def( "getNCalls" @@ -203,8 +203,8 @@ void register_IMinimizer_class(){ } { //::IMinimizer::getNumberOfVariables - typedef ::size_t ( ::IMinimizer::*getNumberOfVariables_function_type )( ) const; - typedef ::size_t ( IMinimizer_wrapper::*default_getNumberOfVariables_function_type )( ) const; + typedef ::std::size_t ( ::IMinimizer::*getNumberOfVariables_function_type )( ) const; + typedef ::std::size_t ( IMinimizer_wrapper::*default_getNumberOfVariables_function_type )( ) const; IMinimizer_exposer.def( "getNumberOfVariables" @@ -214,8 +214,8 @@ void register_IMinimizer_class(){ } { //::IMinimizer::getValueOfVariableAtMinimum - typedef double ( ::IMinimizer::*getValueOfVariableAtMinimum_function_type )( ::size_t ) const; - typedef double ( IMinimizer_wrapper::*default_getValueOfVariableAtMinimum_function_type )( ::size_t ) const; + typedef double ( ::IMinimizer::*getValueOfVariableAtMinimum_function_type )( ::std::size_t ) const; + typedef double ( IMinimizer_wrapper::*default_getValueOfVariableAtMinimum_function_type )( ::std::size_t ) const; IMinimizer_exposer.def( "getValueOfVariableAtMinimum" diff --git a/Fit/PythonAPI/src/ISquaredFunction.pypp.cpp b/Fit/PythonAPI/src/ISquaredFunction.pypp.cpp index d3102be1a4b8578ccb595113353c8de045bf2187..03961fd42f54edf9f09a3ad4ce233f78b6345e0e 100644 --- a/Fit/PythonAPI/src/ISquaredFunction.pypp.cpp +++ b/Fit/PythonAPI/src/ISquaredFunction.pypp.cpp @@ -31,11 +31,11 @@ struct ISquaredFunction_wrapper : ISquaredFunction, bp::wrapper< ISquaredFunctio virtual double calculateSquaredError( double real_value, double simulated_value=0.0 ) const { if( bp::override func_calculateSquaredError = this->get_override( "calculateSquaredError" ) ) return func_calculateSquaredError( real_value, simulated_value ); - else{ + else return this->ISquaredFunction::calculateSquaredError( real_value, simulated_value ); - } } + double default_calculateSquaredError( double real_value, double simulated_value=0.0 ) const { return ISquaredFunction::calculateSquaredError( real_value, simulated_value ); } diff --git a/Fit/PythonAPI/src/MinimizerFactory.pypp.cpp b/Fit/PythonAPI/src/MinimizerFactory.pypp.cpp index b868b189d1feb5a2d43f6ae8533a9a5c164587d2..4b11fda90e4dcbd3379f8ad18cf46bd5f4f256e1 100644 --- a/Fit/PythonAPI/src/MinimizerFactory.pypp.cpp +++ b/Fit/PythonAPI/src/MinimizerFactory.pypp.cpp @@ -31,17 +31,17 @@ void register_MinimizerFactory_class(){ , bp::return_value_policy< bp::reference_existing_object >() ); } - { //::MinimizerFactory::print_catalogue + { //::MinimizerFactory::printCatalogue - typedef void ( *print_catalogue_function_type )( ); + typedef void ( *printCatalogue_function_type )( ); MinimizerFactory_exposer.def( - "print_catalogue" - , print_catalogue_function_type( &::MinimizerFactory::print_catalogue ) ); + "printCatalogue" + , printCatalogue_function_type( &::MinimizerFactory::printCatalogue ) ); } MinimizerFactory_exposer.staticmethod( "createMinimizer" ); - MinimizerFactory_exposer.staticmethod( "print_catalogue" ); + MinimizerFactory_exposer.staticmethod( "printCatalogue" ); } } diff --git a/Fit/PythonAPI/src/OutputDataNormalizer.pypp.cpp b/Fit/PythonAPI/src/OutputDataNormalizer.pypp.cpp index 1f174b834df98ba7427c89851fdabb962ea652c5..e73f1c904aa56c1d756dddd015373eae70f6340c 100644 --- a/Fit/PythonAPI/src/OutputDataNormalizer.pypp.cpp +++ b/Fit/PythonAPI/src/OutputDataNormalizer.pypp.cpp @@ -33,11 +33,11 @@ struct OutputDataNormalizer_wrapper : OutputDataNormalizer, bp::wrapper< OutputD virtual ::OutputDataNormalizer * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->OutputDataNormalizer::clone( ); - } } + ::OutputDataNormalizer * default_clone( ) const { return OutputDataNormalizer::clone( ); } @@ -45,11 +45,11 @@ struct OutputDataNormalizer_wrapper : OutputDataNormalizer, bp::wrapper< OutputD virtual ::OutputData< double > * createNormalizedData( ::OutputData< double > const & data ) const { if( bp::override func_createNormalizedData = this->get_override( "createNormalizedData" ) ) return func_createNormalizedData( boost::ref(data) ); - else{ + else return this->OutputDataNormalizer::createNormalizedData( boost::ref(data) ); - } } + ::OutputData< double > * default_createNormalizedData( ::OutputData< double > const & data ) const { return OutputDataNormalizer::createNormalizedData( boost::ref(data) ); } @@ -57,11 +57,11 @@ struct OutputDataNormalizer_wrapper : OutputDataNormalizer, bp::wrapper< OutputD virtual void setMaximumIntensity( double max_intensity ) { if( bp::override func_setMaximumIntensity = this->get_override( "setMaximumIntensity" ) ) func_setMaximumIntensity( max_intensity ); - else{ + else this->OutputDataNormalizer::setMaximumIntensity( max_intensity ); - } } + void default_setMaximumIntensity( double max_intensity ) { OutputDataNormalizer::setMaximumIntensity( max_intensity ); } diff --git a/Fit/PythonAPI/src/OutputDataSimpleNormalizer.pypp.cpp b/Fit/PythonAPI/src/OutputDataSimpleNormalizer.pypp.cpp index 70b59588290d8d49c637096863ec5648dc3965f9..0bce6f350de766396e59c1525029ee93dd8f3714 100644 --- a/Fit/PythonAPI/src/OutputDataSimpleNormalizer.pypp.cpp +++ b/Fit/PythonAPI/src/OutputDataSimpleNormalizer.pypp.cpp @@ -33,11 +33,11 @@ struct OutputDataSimpleNormalizer_wrapper : OutputDataSimpleNormalizer, bp::wrap virtual ::OutputDataSimpleNormalizer * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->OutputDataSimpleNormalizer::clone( ); - } } + ::OutputDataSimpleNormalizer * default_clone( ) const { return OutputDataSimpleNormalizer::clone( ); } @@ -45,11 +45,11 @@ struct OutputDataSimpleNormalizer_wrapper : OutputDataSimpleNormalizer, bp::wrap virtual void setMaximumIntensity( double max_intensity ) { if( bp::override func_setMaximumIntensity = this->get_override( "setMaximumIntensity" ) ) func_setMaximumIntensity( max_intensity ); - else{ + else this->OutputDataSimpleNormalizer::setMaximumIntensity( max_intensity ); - } } + void default_setMaximumIntensity( double max_intensity ) { OutputDataSimpleNormalizer::setMaximumIntensity( max_intensity ); } @@ -57,11 +57,11 @@ struct OutputDataSimpleNormalizer_wrapper : OutputDataSimpleNormalizer, bp::wrap virtual ::OutputData< double > * createNormalizedData( ::OutputData< double > const & data ) const { if( bp::override func_createNormalizedData = this->get_override( "createNormalizedData" ) ) return func_createNormalizedData( boost::ref(data) ); - else{ + else return this->OutputDataNormalizer::createNormalizedData( boost::ref(data) ); - } } + ::OutputData< double > * default_createNormalizedData( ::OutputData< double > const & data ) const { return OutputDataNormalizer::createNormalizedData( boost::ref(data) ); } diff --git a/Fit/PythonAPI/src/PythonModule.cpp b/Fit/PythonAPI/src/PythonModule.cpp index c07346ae29958b52dfa4432a5d92272c21403dcc..f91603a5761fd4464f4161e900b803ec09a80cb6 100644 --- a/Fit/PythonAPI/src/PythonModule.cpp +++ b/Fit/PythonAPI/src/PythonModule.cpp @@ -6,21 +6,21 @@ GCC_DIAG_OFF(missing-field-initializers); GCC_DIAG_ON(unused-parameter); GCC_DIAG_ON(missing-field-initializers); -#include "AttLimits.pypp.h" -#include "ChiSquaredModule.pypp.h" -#include "FitSuite.pypp.h" -#include "FitSuiteParameters.pypp.h" -#include "IChiSquaredModule.pypp.h" -#include "IMinimizer.pypp.h" -#include "IOutputDataNormalizer.pypp.h" +#include "SquaredFunctionWithGaussianError.pypp.h" +#include "OutputDataSimpleNormalizer.pypp.h" #include "ISquaredFunction.pypp.h" #include "MinimizerFactory.pypp.h" #include "OutputDataNormalizer.pypp.h" -#include "OutputDataSimpleNormalizer.pypp.h" -#include "SquaredFunctionDefault.pypp.h" -#include "SquaredFunctionWhichOnlyWorks.pypp.h" -#include "SquaredFunctionWithGaussianError.pypp.h" #include "SquaredFunctionWithSystematicError.pypp.h" +#include "IOutputDataNormalizer.pypp.h" +#include "SquaredFunctionWhichOnlyWorks.pypp.h" +#include "IMinimizer.pypp.h" +#include "SquaredFunctionDefault.pypp.h" +#include "ChiSquaredModule.pypp.h" +#include "FitSuite.pypp.h" +#include "AttLimits.pypp.h" +#include "IChiSquaredModule.pypp.h" +#include "FitSuiteParameters.pypp.h" BOOST_PYTHON_MODULE(libBornAgainFit){ diff --git a/Fit/PythonAPI/src/SquaredFunctionDefault.pypp.cpp b/Fit/PythonAPI/src/SquaredFunctionDefault.pypp.cpp index 24c1031d440dfb73a3a0f7df006e34d0ea02bb61..3b0b52c824aaccf828d36061a7c0a4ba77a587a3 100644 --- a/Fit/PythonAPI/src/SquaredFunctionDefault.pypp.cpp +++ b/Fit/PythonAPI/src/SquaredFunctionDefault.pypp.cpp @@ -33,11 +33,11 @@ struct SquaredFunctionDefault_wrapper : SquaredFunctionDefault, bp::wrapper< Squ virtual double calculateSquaredDifference( double real_value, double simulated_value ) const { if( bp::override func_calculateSquaredDifference = this->get_override( "calculateSquaredDifference" ) ) return func_calculateSquaredDifference( real_value, simulated_value ); - else{ + else return this->SquaredFunctionDefault::calculateSquaredDifference( real_value, simulated_value ); - } } + double default_calculateSquaredDifference( double real_value, double simulated_value ) const { return SquaredFunctionDefault::calculateSquaredDifference( real_value, simulated_value ); } @@ -45,11 +45,11 @@ struct SquaredFunctionDefault_wrapper : SquaredFunctionDefault, bp::wrapper< Squ virtual double calculateSquaredError( double real_value, double arg1 ) const { if( bp::override func_calculateSquaredError = this->get_override( "calculateSquaredError" ) ) return func_calculateSquaredError( real_value, arg1 ); - else{ + else return this->SquaredFunctionDefault::calculateSquaredError( real_value, arg1 ); - } } + double default_calculateSquaredError( double real_value, double arg1 ) const { return SquaredFunctionDefault::calculateSquaredError( real_value, arg1 ); } @@ -57,11 +57,11 @@ struct SquaredFunctionDefault_wrapper : SquaredFunctionDefault, bp::wrapper< Squ virtual ::SquaredFunctionDefault * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->SquaredFunctionDefault::clone( ); - } } + ::SquaredFunctionDefault * default_clone( ) const { return SquaredFunctionDefault::clone( ); } diff --git a/Fit/PythonAPI/src/SquaredFunctionWhichOnlyWorks.pypp.cpp b/Fit/PythonAPI/src/SquaredFunctionWhichOnlyWorks.pypp.cpp index bbb302b394a39e8dbddda31cd8b59120bf12a96c..378918ee7ee2be818a1e7e61ee959902551042b7 100644 --- a/Fit/PythonAPI/src/SquaredFunctionWhichOnlyWorks.pypp.cpp +++ b/Fit/PythonAPI/src/SquaredFunctionWhichOnlyWorks.pypp.cpp @@ -33,11 +33,11 @@ struct SquaredFunctionWhichOnlyWorks_wrapper : SquaredFunctionWhichOnlyWorks, bp virtual double calculateSquaredDifference( double real_value, double simulated_value ) const { if( bp::override func_calculateSquaredDifference = this->get_override( "calculateSquaredDifference" ) ) return func_calculateSquaredDifference( real_value, simulated_value ); - else{ + else return this->SquaredFunctionWhichOnlyWorks::calculateSquaredDifference( real_value, simulated_value ); - } } + double default_calculateSquaredDifference( double real_value, double simulated_value ) const { return SquaredFunctionWhichOnlyWorks::calculateSquaredDifference( real_value, simulated_value ); } @@ -45,11 +45,11 @@ struct SquaredFunctionWhichOnlyWorks_wrapper : SquaredFunctionWhichOnlyWorks, bp virtual ::SquaredFunctionWhichOnlyWorks * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->SquaredFunctionWhichOnlyWorks::clone( ); - } } + ::SquaredFunctionWhichOnlyWorks * default_clone( ) const { return SquaredFunctionWhichOnlyWorks::clone( ); } @@ -57,11 +57,11 @@ struct SquaredFunctionWhichOnlyWorks_wrapper : SquaredFunctionWhichOnlyWorks, bp virtual double calculateSquaredError( double real_value, double simulated_value=0.0 ) const { if( bp::override func_calculateSquaredError = this->get_override( "calculateSquaredError" ) ) return func_calculateSquaredError( real_value, simulated_value ); - else{ + else return this->ISquaredFunction::calculateSquaredError( real_value, simulated_value ); - } } + double default_calculateSquaredError( double real_value, double simulated_value=0.0 ) const { return ISquaredFunction::calculateSquaredError( real_value, simulated_value ); } diff --git a/Fit/PythonAPI/src/SquaredFunctionWithGaussianError.pypp.cpp b/Fit/PythonAPI/src/SquaredFunctionWithGaussianError.pypp.cpp index 87abc082ddab8fe0715b108485d9918c947bae3c..6d869a72a869ab3957b46ac5c9d8a469bc25395d 100644 --- a/Fit/PythonAPI/src/SquaredFunctionWithGaussianError.pypp.cpp +++ b/Fit/PythonAPI/src/SquaredFunctionWithGaussianError.pypp.cpp @@ -33,11 +33,11 @@ struct SquaredFunctionWithGaussianError_wrapper : SquaredFunctionWithGaussianErr virtual double calculateSquaredDifference( double real_value, double simulated_value ) const { if( bp::override func_calculateSquaredDifference = this->get_override( "calculateSquaredDifference" ) ) return func_calculateSquaredDifference( real_value, simulated_value ); - else{ + else return this->SquaredFunctionWithGaussianError::calculateSquaredDifference( real_value, simulated_value ); - } } + double default_calculateSquaredDifference( double real_value, double simulated_value ) const { return SquaredFunctionWithGaussianError::calculateSquaredDifference( real_value, simulated_value ); } @@ -45,11 +45,11 @@ struct SquaredFunctionWithGaussianError_wrapper : SquaredFunctionWithGaussianErr virtual double calculateSquaredError( double arg0, double arg1 ) const { if( bp::override func_calculateSquaredError = this->get_override( "calculateSquaredError" ) ) return func_calculateSquaredError( arg0, arg1 ); - else{ + else return this->SquaredFunctionWithGaussianError::calculateSquaredError( arg0, arg1 ); - } } + double default_calculateSquaredError( double arg0, double arg1 ) const { return SquaredFunctionWithGaussianError::calculateSquaredError( arg0, arg1 ); } @@ -57,11 +57,11 @@ struct SquaredFunctionWithGaussianError_wrapper : SquaredFunctionWithGaussianErr virtual ::SquaredFunctionWithGaussianError * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->SquaredFunctionWithGaussianError::clone( ); - } } + ::SquaredFunctionWithGaussianError * default_clone( ) const { return SquaredFunctionWithGaussianError::clone( ); } diff --git a/Fit/PythonAPI/src/SquaredFunctionWithSystematicError.pypp.cpp b/Fit/PythonAPI/src/SquaredFunctionWithSystematicError.pypp.cpp index 1129f605a5790a1f9349c749d78ddce6dd9e3e5d..37b0378963542325d24c0bfba602a6189dff1f24 100644 --- a/Fit/PythonAPI/src/SquaredFunctionWithSystematicError.pypp.cpp +++ b/Fit/PythonAPI/src/SquaredFunctionWithSystematicError.pypp.cpp @@ -33,11 +33,11 @@ struct SquaredFunctionWithSystematicError_wrapper : SquaredFunctionWithSystemati virtual double calculateSquaredDifference( double real_value, double simulated_value ) const { if( bp::override func_calculateSquaredDifference = this->get_override( "calculateSquaredDifference" ) ) return func_calculateSquaredDifference( real_value, simulated_value ); - else{ + else return this->SquaredFunctionWithSystematicError::calculateSquaredDifference( real_value, simulated_value ); - } } + double default_calculateSquaredDifference( double real_value, double simulated_value ) const { return SquaredFunctionWithSystematicError::calculateSquaredDifference( real_value, simulated_value ); } @@ -45,11 +45,11 @@ struct SquaredFunctionWithSystematicError_wrapper : SquaredFunctionWithSystemati virtual double calculateSquaredError( double real_value, double simulated_value=0.0 ) const { if( bp::override func_calculateSquaredError = this->get_override( "calculateSquaredError" ) ) return func_calculateSquaredError( real_value, simulated_value ); - else{ + else return this->SquaredFunctionWithSystematicError::calculateSquaredError( real_value, simulated_value ); - } } + double default_calculateSquaredError( double real_value, double simulated_value=0.0 ) const { return SquaredFunctionWithSystematicError::calculateSquaredError( real_value, simulated_value ); } @@ -57,11 +57,11 @@ struct SquaredFunctionWithSystematicError_wrapper : SquaredFunctionWithSystemati virtual ::SquaredFunctionWithSystematicError * clone( ) const { if( bp::override func_clone = this->get_override( "clone" ) ) return func_clone( ); - else{ + else return this->SquaredFunctionWithSystematicError::clone( ); - } } + ::SquaredFunctionWithSystematicError * default_clone( ) const { return SquaredFunctionWithSystematicError::clone( ); } diff --git a/Fit/python_module.pri b/Fit/python_module.pri index c12606a3c3329b794180f574274794b23b94bf55..c6699b4472f92e150b919e96b62663199e61d56f 100644 --- a/Fit/python_module.pri +++ b/Fit/python_module.pri @@ -1,39 +1,39 @@ HEADERS += \ PythonAPI/inc/PythonFitExposer.h \ PythonAPI/inc/PythonFitList.h \ - PythonAPI/inc/AttLimits.pypp.h \ - PythonAPI/inc/ChiSquaredModule.pypp.h \ - PythonAPI/inc/FitSuite.pypp.h \ - PythonAPI/inc/FitSuiteParameters.pypp.h \ - PythonAPI/inc/IChiSquaredModule.pypp.h \ - PythonAPI/inc/IMinimizer.pypp.h \ - PythonAPI/inc/IOutputDataNormalizer.pypp.h \ + PythonAPI/inc/SquaredFunctionWithGaussianError.pypp.h \ + PythonAPI/inc/OutputDataSimpleNormalizer.pypp.h \ PythonAPI/inc/ISquaredFunction.pypp.h \ PythonAPI/inc/MinimizerFactory.pypp.h \ PythonAPI/inc/OutputDataNormalizer.pypp.h \ - PythonAPI/inc/OutputDataSimpleNormalizer.pypp.h \ - PythonAPI/inc/SquaredFunctionDefault.pypp.h \ + PythonAPI/inc/SquaredFunctionWithSystematicError.pypp.h \ + PythonAPI/inc/IOutputDataNormalizer.pypp.h \ PythonAPI/inc/SquaredFunctionWhichOnlyWorks.pypp.h \ - PythonAPI/inc/SquaredFunctionWithGaussianError.pypp.h \ - PythonAPI/inc/SquaredFunctionWithSystematicError.pypp.h + PythonAPI/inc/IMinimizer.pypp.h \ + PythonAPI/inc/SquaredFunctionDefault.pypp.h \ + PythonAPI/inc/ChiSquaredModule.pypp.h \ + PythonAPI/inc/FitSuite.pypp.h \ + PythonAPI/inc/AttLimits.pypp.h \ + PythonAPI/inc/IChiSquaredModule.pypp.h \ + PythonAPI/inc/FitSuiteParameters.pypp.h SOURCES += \ PythonAPI/src/PythonModule.cpp \ + PythonAPI/src/OutputDataSimpleNormalizer.pypp.cpp \ + PythonAPI/src/SquaredFunctionWithSystematicError.pypp.cpp \ PythonAPI/src/AttLimits.pypp.cpp \ PythonAPI/src/ChiSquaredModule.pypp.cpp \ - PythonAPI/src/FitSuite.pypp.cpp \ - PythonAPI/src/FitSuiteParameters.pypp.cpp \ PythonAPI/src/IChiSquaredModule.pypp.cpp \ - PythonAPI/src/IMinimizer.pypp.cpp \ - PythonAPI/src/IOutputDataNormalizer.pypp.cpp \ - PythonAPI/src/ISquaredFunction.pypp.cpp \ - PythonAPI/src/MinimizerFactory.pypp.cpp \ - PythonAPI/src/OutputDataNormalizer.pypp.cpp \ - PythonAPI/src/OutputDataSimpleNormalizer.pypp.cpp \ PythonAPI/src/SquaredFunctionDefault.pypp.cpp \ PythonAPI/src/SquaredFunctionWhichOnlyWorks.pypp.cpp \ + PythonAPI/src/OutputDataNormalizer.pypp.cpp \ + PythonAPI/src/FitSuite.pypp.cpp \ + PythonAPI/src/IMinimizer.pypp.cpp \ PythonAPI/src/SquaredFunctionWithGaussianError.pypp.cpp \ - PythonAPI/src/SquaredFunctionWithSystematicError.pypp.cpp + PythonAPI/src/MinimizerFactory.pypp.cpp \ + PythonAPI/src/ISquaredFunction.pypp.cpp \ + PythonAPI/src/IOutputDataNormalizer.pypp.cpp \ + PythonAPI/src/FitSuiteParameters.pypp.cpp INCLUDEPATH += ./PythonAPI/inc DEPENDPATH += ./PythonAPI/inc diff --git a/Tests/UnitTests/TestCore/CMakeLists.txt b/Tests/UnitTests/TestCore/CMakeLists.txt index dc5e80f143a0ab2d1d32bf7f5f1f503a3774f108..99b74ec53b925e741f60d580edc53d6374c09dd4 100644 --- a/Tests/UnitTests/TestCore/CMakeLists.txt +++ b/Tests/UnitTests/TestCore/CMakeLists.txt @@ -4,7 +4,9 @@ enable_testing() -add_executable( TestCore main.cpp ) +file(GLOB include_files "*.h") + +add_executable( TestCore main.cpp ${include_files}) # dependencies include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})