Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
f99abdc1
Commit
f99abdc1
authored
11 years ago
by
pospelov
Browse files
Options
Downloads
Patches
Plain Diff
Regenerated PythonAPI for ChiSquared module
parent
70e70e11
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Fit/PythonAPI/src/ChiSquaredModule.pypp.cpp
+26
-95
26 additions, 95 deletions
Fit/PythonAPI/src/ChiSquaredModule.pypp.cpp
Fit/PythonAPI/src/IChiSquaredModule.pypp.cpp
+26
-95
26 additions, 95 deletions
Fit/PythonAPI/src/IChiSquaredModule.pypp.cpp
with
52 additions
and
190 deletions
Fit/PythonAPI/src/ChiSquaredModule.pypp.cpp
+
26
−
95
View file @
f99abdc1
...
...
@@ -90,28 +90,16 @@ struct ChiSquaredModule_wrapper : ChiSquaredModule, bp::wrapper< ChiSquaredModul
return
IChiSquaredModule
::
getFittingDataSelector
(
);
}
virtual
bool
getIntensity
Log
(
)
const
{
if
(
bp
::
override
func_getIntensity
Log
=
this
->
get_override
(
"getIntensity
Log
"
)
)
return
func_getIntensity
Log
(
);
virtual
::
IIntensityFunction
const
*
getIntensity
Function
(
)
const
{
if
(
bp
::
override
func_getIntensity
Function
=
this
->
get_override
(
"getIntensity
Function
"
)
)
return
func_getIntensity
Function
(
);
else
{
return
this
->
IChiSquaredModule
::
getIntensity
Log
(
);
return
this
->
IChiSquaredModule
::
getIntensity
Function
(
);
}
}
bool
default_getIntensityLog
(
)
const
{
return
IChiSquaredModule
::
getIntensityLog
(
);
}
virtual
bool
getIntensitySqrt
(
)
const
{
if
(
bp
::
override
func_getIntensitySqrt
=
this
->
get_override
(
"getIntensitySqrt"
)
)
return
func_getIntensitySqrt
(
);
else
{
return
this
->
IChiSquaredModule
::
getIntensitySqrt
(
);
}
}
bool
default_getIntensitySqrt
(
)
const
{
return
IChiSquaredModule
::
getIntensitySqrt
(
);
::
IIntensityFunction
const
*
default_getIntensityFunction
(
)
const
{
return
IChiSquaredModule
::
getIntensityFunction
(
);
}
virtual
::
IOutputDataNormalizer
const
*
getOutputDataNormalizer
(
)
const
{
...
...
@@ -138,18 +126,6 @@ struct ChiSquaredModule_wrapper : ChiSquaredModule, bp::wrapper< ChiSquaredModul
return
IChiSquaredModule
::
getOutputDataNormalizer
(
);
}
virtual
double
getValue
(
)
const
{
if
(
bp
::
override
func_getValue
=
this
->
get_override
(
"getValue"
)
)
return
func_getValue
(
);
else
{
return
this
->
IChiSquaredModule
::
getValue
(
);
}
}
double
default_getValue
(
)
const
{
return
IChiSquaredModule
::
getValue
(
);
}
virtual
void
setFittingDataSelector
(
::
IFittingDataSelector
const
&
selector
)
{
if
(
bp
::
override
func_setFittingDataSelector
=
this
->
get_override
(
"setFittingDataSelector"
)
)
func_setFittingDataSelector
(
boost
::
ref
(
selector
)
);
...
...
@@ -162,28 +138,16 @@ struct ChiSquaredModule_wrapper : ChiSquaredModule, bp::wrapper< ChiSquaredModul
IChiSquaredModule
::
setFittingDataSelector
(
boost
::
ref
(
selector
)
);
}
virtual
void
setIntensityLog
(
bool
val
)
{
if
(
bp
::
override
func_setIntensityLog
=
this
->
get_override
(
"setIntensityLog"
)
)
func_setIntensityLog
(
val
);
else
{
this
->
IChiSquaredModule
::
setIntensityLog
(
val
);
}
}
void
default_setIntensityLog
(
bool
val
)
{
IChiSquaredModule
::
setIntensityLog
(
val
);
}
virtual
void
setIntensitySqrt
(
bool
val
)
{
if
(
bp
::
override
func_setIntensitySqrt
=
this
->
get_override
(
"setIntensitySqrt"
)
)
func_setIntensitySqrt
(
val
);
virtual
void
setIntensityFunction
(
::
IIntensityFunction
const
&
intensity_function
)
{
if
(
bp
::
override
func_setIntensityFunction
=
this
->
get_override
(
"setIntensityFunction"
)
)
func_setIntensityFunction
(
boost
::
ref
(
intensity_function
)
);
else
{
this
->
IChiSquaredModule
::
setIntensity
Sqrt
(
val
);
this
->
IChiSquaredModule
::
setIntensity
Function
(
boost
::
ref
(
intensity_function
)
);
}
}
void
default_setIntensity
Sqrt
(
bool
val
)
{
IChiSquaredModule
::
setIntensity
Sqrt
(
val
);
void
default_setIntensity
Function
(
::
IIntensityFunction
const
&
intensity_function
)
{
IChiSquaredModule
::
setIntensity
Function
(
boost
::
ref
(
intensity_function
)
);
}
virtual
void
setOutputDataNormalizer
(
::
IOutputDataNormalizer
const
&
data_normalizer
)
{
...
...
@@ -266,26 +230,16 @@ void register_ChiSquaredModule_class(){
,
bp
::
return_value_policy
<
bp
::
reference_existing_object
>
()
);
}
{
//::IChiSquaredModule::getIntensity
Log
{
//::IChiSquaredModule::getIntensity
Function
typedef
bool
(
::
IChiSquaredModule
::*
getIntensity
Log
_function_type
)(
)
const
;
typedef
bool
(
ChiSquaredModule_wrapper
::*
default_getIntensity
Log
_function_type
)(
)
const
;
typedef
::
IIntensityFunction
const
*
(
::
IChiSquaredModule
::*
getIntensity
Function
_function_type
)(
)
const
;
typedef
::
IIntensityFunction
const
*
(
ChiSquaredModule_wrapper
::*
default_getIntensity
Function
_function_type
)(
)
const
;
ChiSquaredModule_exposer
.
def
(
"getIntensityLog"
,
getIntensityLog_function_type
(
&::
IChiSquaredModule
::
getIntensityLog
)
,
default_getIntensityLog_function_type
(
&
ChiSquaredModule_wrapper
::
default_getIntensityLog
)
);
}
{
//::IChiSquaredModule::getIntensitySqrt
typedef
bool
(
::
IChiSquaredModule
::*
getIntensitySqrt_function_type
)(
)
const
;
typedef
bool
(
ChiSquaredModule_wrapper
::*
default_getIntensitySqrt_function_type
)(
)
const
;
ChiSquaredModule_exposer
.
def
(
"getIntensitySqrt"
,
getIntensitySqrt_function_type
(
&::
IChiSquaredModule
::
getIntensitySqrt
)
,
default_getIntensitySqrt_function_type
(
&
ChiSquaredModule_wrapper
::
default_getIntensitySqrt
)
);
"getIntensityFunction"
,
getIntensityFunction_function_type
(
&::
IChiSquaredModule
::
getIntensityFunction
)
,
default_getIntensityFunction_function_type
(
&
ChiSquaredModule_wrapper
::
default_getIntensityFunction
)
,
bp
::
return_value_policy
<
bp
::
reference_existing_object
>
()
);
}
{
//::IChiSquaredModule::getOutputDataNormalizer
...
...
@@ -311,17 +265,6 @@ void register_ChiSquaredModule_class(){
,
default_getOutputDataNormalizer_function_type
(
&
ChiSquaredModule_wrapper
::
default_getOutputDataNormalizer
)
,
bp
::
return_value_policy
<
bp
::
reference_existing_object
>
()
);
}
{
//::IChiSquaredModule::getValue
typedef
double
(
::
IChiSquaredModule
::*
getValue_function_type
)(
)
const
;
typedef
double
(
ChiSquaredModule_wrapper
::*
default_getValue_function_type
)(
)
const
;
ChiSquaredModule_exposer
.
def
(
"getValue"
,
getValue_function_type
(
&::
IChiSquaredModule
::
getValue
)
,
default_getValue_function_type
(
&
ChiSquaredModule_wrapper
::
default_getValue
)
);
}
{
//::IChiSquaredModule::setFittingDataSelector
...
...
@@ -335,28 +278,16 @@ void register_ChiSquaredModule_class(){
,
(
bp
::
arg
(
"selector"
)
)
);
}
{
//::IChiSquaredModule::setIntensityLog
typedef
void
(
::
IChiSquaredModule
::*
setIntensityLog_function_type
)(
bool
)
;
typedef
void
(
ChiSquaredModule_wrapper
::*
default_setIntensityLog_function_type
)(
bool
)
;
ChiSquaredModule_exposer
.
def
(
"setIntensityLog"
,
setIntensityLog_function_type
(
&::
IChiSquaredModule
::
setIntensityLog
)
,
default_setIntensityLog_function_type
(
&
ChiSquaredModule_wrapper
::
default_setIntensityLog
)
,
(
bp
::
arg
(
"val"
)
)
);
}
{
//::IChiSquaredModule::setIntensitySqrt
{
//::IChiSquaredModule::setIntensityFunction
typedef
void
(
::
IChiSquaredModule
::*
setIntensity
Sqrt
_function_type
)(
bool
)
;
typedef
void
(
ChiSquaredModule_wrapper
::*
default_setIntensity
Sqrt
_function_type
)(
bool
)
;
typedef
void
(
::
IChiSquaredModule
::*
setIntensity
Function
_function_type
)(
::
IIntensityFunction
const
&
)
;
typedef
void
(
ChiSquaredModule_wrapper
::*
default_setIntensity
Function
_function_type
)(
::
IIntensityFunction
const
&
)
;
ChiSquaredModule_exposer
.
def
(
"setIntensity
Sqrt
"
,
setIntensity
Sqrt
_function_type
(
&::
IChiSquaredModule
::
setIntensity
Sqrt
)
,
default_setIntensity
Sqrt
_function_type
(
&
ChiSquaredModule_wrapper
::
default_setIntensity
Sqrt
)
,
(
bp
::
arg
(
"
val
"
)
)
);
"setIntensity
Function
"
,
setIntensity
Function
_function_type
(
&::
IChiSquaredModule
::
setIntensity
Function
)
,
default_setIntensity
Function
_function_type
(
&
ChiSquaredModule_wrapper
::
default_setIntensity
Function
)
,
(
bp
::
arg
(
"
intensity_function
"
)
)
);
}
{
//::IChiSquaredModule::setOutputDataNormalizer
...
...
This diff is collapsed.
Click to expand it.
Fit/PythonAPI/src/IChiSquaredModule.pypp.cpp
+
26
−
95
View file @
f99abdc1
...
...
@@ -50,28 +50,16 @@ struct IChiSquaredModule_wrapper : IChiSquaredModule, bp::wrapper< IChiSquaredMo
return
IChiSquaredModule
::
getFittingDataSelector
(
);
}
virtual
bool
getIntensity
Log
(
)
const
{
if
(
bp
::
override
func_getIntensity
Log
=
this
->
get_override
(
"getIntensity
Log
"
)
)
return
func_getIntensity
Log
(
);
virtual
::
IIntensityFunction
const
*
getIntensity
Function
(
)
const
{
if
(
bp
::
override
func_getIntensity
Function
=
this
->
get_override
(
"getIntensity
Function
"
)
)
return
func_getIntensity
Function
(
);
else
{
return
this
->
IChiSquaredModule
::
getIntensity
Log
(
);
return
this
->
IChiSquaredModule
::
getIntensity
Function
(
);
}
}
bool
default_getIntensityLog
(
)
const
{
return
IChiSquaredModule
::
getIntensityLog
(
);
}
virtual
bool
getIntensitySqrt
(
)
const
{
if
(
bp
::
override
func_getIntensitySqrt
=
this
->
get_override
(
"getIntensitySqrt"
)
)
return
func_getIntensitySqrt
(
);
else
{
return
this
->
IChiSquaredModule
::
getIntensitySqrt
(
);
}
}
bool
default_getIntensitySqrt
(
)
const
{
return
IChiSquaredModule
::
getIntensitySqrt
(
);
::
IIntensityFunction
const
*
default_getIntensityFunction
(
)
const
{
return
IChiSquaredModule
::
getIntensityFunction
(
);
}
virtual
::
IOutputDataNormalizer
const
*
getOutputDataNormalizer
(
)
const
{
...
...
@@ -110,18 +98,6 @@ struct IChiSquaredModule_wrapper : IChiSquaredModule, bp::wrapper< IChiSquaredMo
return
IChiSquaredModule
::
getResidualValue
(
arg0
);
}
virtual
double
getValue
(
)
const
{
if
(
bp
::
override
func_getValue
=
this
->
get_override
(
"getValue"
)
)
return
func_getValue
(
);
else
{
return
this
->
IChiSquaredModule
::
getValue
(
);
}
}
double
default_getValue
(
)
const
{
return
IChiSquaredModule
::
getValue
(
);
}
virtual
void
setFittingDataSelector
(
::
IFittingDataSelector
const
&
selector
)
{
if
(
bp
::
override
func_setFittingDataSelector
=
this
->
get_override
(
"setFittingDataSelector"
)
)
func_setFittingDataSelector
(
boost
::
ref
(
selector
)
);
...
...
@@ -134,28 +110,16 @@ struct IChiSquaredModule_wrapper : IChiSquaredModule, bp::wrapper< IChiSquaredMo
IChiSquaredModule
::
setFittingDataSelector
(
boost
::
ref
(
selector
)
);
}
virtual
void
setIntensityLog
(
bool
val
)
{
if
(
bp
::
override
func_setIntensityLog
=
this
->
get_override
(
"setIntensityLog"
)
)
func_setIntensityLog
(
val
);
else
{
this
->
IChiSquaredModule
::
setIntensityLog
(
val
);
}
}
void
default_setIntensityLog
(
bool
val
)
{
IChiSquaredModule
::
setIntensityLog
(
val
);
}
virtual
void
setIntensitySqrt
(
bool
val
)
{
if
(
bp
::
override
func_setIntensitySqrt
=
this
->
get_override
(
"setIntensitySqrt"
)
)
func_setIntensitySqrt
(
val
);
virtual
void
setIntensityFunction
(
::
IIntensityFunction
const
&
intensity_function
)
{
if
(
bp
::
override
func_setIntensityFunction
=
this
->
get_override
(
"setIntensityFunction"
)
)
func_setIntensityFunction
(
boost
::
ref
(
intensity_function
)
);
else
{
this
->
IChiSquaredModule
::
setIntensity
Sqrt
(
val
);
this
->
IChiSquaredModule
::
setIntensity
Function
(
boost
::
ref
(
intensity_function
)
);
}
}
void
default_setIntensity
Sqrt
(
bool
val
)
{
IChiSquaredModule
::
setIntensity
Sqrt
(
val
);
void
default_setIntensity
Function
(
::
IIntensityFunction
const
&
intensity_function
)
{
IChiSquaredModule
::
setIntensity
Function
(
boost
::
ref
(
intensity_function
)
);
}
virtual
void
setOutputDataNormalizer
(
::
IOutputDataNormalizer
const
&
data_normalizer
)
{
...
...
@@ -219,26 +183,16 @@ void register_IChiSquaredModule_class(){
,
bp
::
return_value_policy
<
bp
::
reference_existing_object
>
()
);
}
{
//::IChiSquaredModule::getIntensity
Log
{
//::IChiSquaredModule::getIntensity
Function
typedef
bool
(
::
IChiSquaredModule
::*
getIntensity
Log
_function_type
)(
)
const
;
typedef
bool
(
IChiSquaredModule_wrapper
::*
default_getIntensity
Log
_function_type
)(
)
const
;
typedef
::
IIntensityFunction
const
*
(
::
IChiSquaredModule
::*
getIntensity
Function
_function_type
)(
)
const
;
typedef
::
IIntensityFunction
const
*
(
IChiSquaredModule_wrapper
::*
default_getIntensity
Function
_function_type
)(
)
const
;
IChiSquaredModule_exposer
.
def
(
"getIntensityLog"
,
getIntensityLog_function_type
(
&::
IChiSquaredModule
::
getIntensityLog
)
,
default_getIntensityLog_function_type
(
&
IChiSquaredModule_wrapper
::
default_getIntensityLog
)
);
}
{
//::IChiSquaredModule::getIntensitySqrt
typedef
bool
(
::
IChiSquaredModule
::*
getIntensitySqrt_function_type
)(
)
const
;
typedef
bool
(
IChiSquaredModule_wrapper
::*
default_getIntensitySqrt_function_type
)(
)
const
;
IChiSquaredModule_exposer
.
def
(
"getIntensitySqrt"
,
getIntensitySqrt_function_type
(
&::
IChiSquaredModule
::
getIntensitySqrt
)
,
default_getIntensitySqrt_function_type
(
&
IChiSquaredModule_wrapper
::
default_getIntensitySqrt
)
);
"getIntensityFunction"
,
getIntensityFunction_function_type
(
&::
IChiSquaredModule
::
getIntensityFunction
)
,
default_getIntensityFunction_function_type
(
&
IChiSquaredModule_wrapper
::
default_getIntensityFunction
)
,
bp
::
return_value_policy
<
bp
::
reference_existing_object
>
()
);
}
{
//::IChiSquaredModule::getOutputDataNormalizer
...
...
@@ -306,17 +260,6 @@ void register_IChiSquaredModule_class(){
,
getSquaredFunction_function_type
(
&::
IChiSquaredModule
::
getSquaredFunction
)
,
bp
::
return_value_policy
<
bp
::
reference_existing_object
>
()
);
}
{
//::IChiSquaredModule::getValue
typedef
double
(
::
IChiSquaredModule
::*
getValue_function_type
)(
)
const
;
typedef
double
(
IChiSquaredModule_wrapper
::*
default_getValue_function_type
)(
)
const
;
IChiSquaredModule_exposer
.
def
(
"getValue"
,
getValue_function_type
(
&::
IChiSquaredModule
::
getValue
)
,
default_getValue_function_type
(
&
IChiSquaredModule_wrapper
::
default_getValue
)
);
}
{
//::IChiSquaredModule::setChiSquaredFunction
...
...
@@ -340,28 +283,16 @@ void register_IChiSquaredModule_class(){
,
(
bp
::
arg
(
"selector"
)
)
);
}
{
//::IChiSquaredModule::setIntensityLog
typedef
void
(
::
IChiSquaredModule
::*
setIntensityLog_function_type
)(
bool
)
;
typedef
void
(
IChiSquaredModule_wrapper
::*
default_setIntensityLog_function_type
)(
bool
)
;
IChiSquaredModule_exposer
.
def
(
"setIntensityLog"
,
setIntensityLog_function_type
(
&::
IChiSquaredModule
::
setIntensityLog
)
,
default_setIntensityLog_function_type
(
&
IChiSquaredModule_wrapper
::
default_setIntensityLog
)
,
(
bp
::
arg
(
"val"
)
)
);
}
{
//::IChiSquaredModule::setIntensitySqrt
{
//::IChiSquaredModule::setIntensityFunction
typedef
void
(
::
IChiSquaredModule
::*
setIntensity
Sqrt
_function_type
)(
bool
)
;
typedef
void
(
IChiSquaredModule_wrapper
::*
default_setIntensity
Sqrt
_function_type
)(
bool
)
;
typedef
void
(
::
IChiSquaredModule
::*
setIntensity
Function
_function_type
)(
::
IIntensityFunction
const
&
)
;
typedef
void
(
IChiSquaredModule_wrapper
::*
default_setIntensity
Function
_function_type
)(
::
IIntensityFunction
const
&
)
;
IChiSquaredModule_exposer
.
def
(
"setIntensity
Sqrt
"
,
setIntensity
Sqrt
_function_type
(
&::
IChiSquaredModule
::
setIntensity
Sqrt
)
,
default_setIntensity
Sqrt
_function_type
(
&
IChiSquaredModule_wrapper
::
default_setIntensity
Sqrt
)
,
(
bp
::
arg
(
"
val
"
)
)
);
"setIntensity
Function
"
,
setIntensity
Function
_function_type
(
&::
IChiSquaredModule
::
setIntensity
Function
)
,
default_setIntensity
Function
_function_type
(
&
IChiSquaredModule_wrapper
::
default_setIntensity
Function
)
,
(
bp
::
arg
(
"
intensity_function
"
)
)
);
}
{
//::IChiSquaredModule::setNdegreeOfFreedom
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment