Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
ndcurves
Commits
c16c18c9
Commit
c16c18c9
authored
Jan 23, 2020
by
Pierre Fernbach
Browse files
[Python] fix return type of curves wrappers call() and derivate()
parent
e1e38ce6
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/curves/curves_python.cpp
View file @
c16c18c9
...
...
@@ -24,8 +24,8 @@ struct CurveWrapper : curve_abc_t, wrapper<curve_abc_t> {
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS
(
curve_abc_t_isEquivalent_overloads
,
curve_abc_t
::
isEquivalent
,
1
,
3
)
struct
Curve3Wrapper
:
curve_3_t
,
wrapper
<
curve_3_t
>
{
point_t
operator
()(
const
real
)
{
return
this
->
get_override
(
"operator()"
)();
}
point_t
derivate
(
const
real
,
const
std
::
size_t
)
{
return
this
->
get_override
(
"derivate"
)();
}
point
3
_t
operator
()(
const
real
)
{
return
this
->
get_override
(
"operator()"
)();
}
point
3
_t
derivate
(
const
real
,
const
std
::
size_t
)
{
return
this
->
get_override
(
"derivate"
)();
}
curve_t
*
compute_derivate_ptr
(
const
real
)
{
return
this
->
get_override
(
"compute_derivate"
)();
}
std
::
size_t
dim
()
{
return
this
->
get_override
(
"dim"
)();
}
real
min
()
{
return
this
->
get_override
(
"min"
)();
}
...
...
@@ -34,8 +34,8 @@ struct Curve3Wrapper : curve_3_t, wrapper<curve_3_t> {
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS
(
curve_3_t_isEquivalent_overloads
,
curve_3_t
::
isEquivalent
,
1
,
3
)
struct
CurveRotationWrapper
:
curve_rotation_t
,
wrapper
<
curve_rotation_t
>
{
point_t
operator
()(
const
real
)
{
return
this
->
get_override
(
"operator()"
)();
}
point
_t
derivate
(
const
real
,
const
std
::
size_t
)
{
return
this
->
get_override
(
"derivate"
)();
}
curve_rotation_t
::
point_t
operator
()(
const
real
)
{
return
this
->
get_override
(
"operator()"
)();
}
curve_rotation_t
::
point_derivate
_t
derivate
(
const
real
,
const
std
::
size_t
)
{
return
this
->
get_override
(
"derivate"
)();
}
curve_t
*
compute_derivate_ptr
(
const
real
)
{
return
this
->
get_override
(
"compute_derivate"
)();
}
std
::
size_t
dim
()
{
return
this
->
get_override
(
"dim"
)();
}
real
min
()
{
return
this
->
get_override
(
"min"
)();
}
...
...
@@ -44,8 +44,8 @@ struct CurveRotationWrapper : curve_rotation_t, wrapper<curve_rotation_t> {
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS
(
curve_rotation_t_isEquivalent_overloads
,
curve_rotation_t
::
isEquivalent
,
1
,
3
)
struct
CurveSE3Wrapper
:
curve_SE3_t
,
wrapper
<
curve_SE3_t
>
{
point_t
operator
()(
const
real
)
{
return
this
->
get_override
(
"operator()"
)();
}
point
_t
derivate
(
const
real
,
const
std
::
size_t
)
{
return
this
->
get_override
(
"derivate"
)();
}
curve_SE3_t
::
point_t
operator
()(
const
real
)
{
return
this
->
get_override
(
"operator()"
)();
}
curve_SE3_t
::
point_derivate
_t
derivate
(
const
real
,
const
std
::
size_t
)
{
return
this
->
get_override
(
"derivate"
)();
}
curve_t
*
compute_derivate_ptr
(
const
real
)
{
return
this
->
get_override
(
"compute_derivate"
)();
}
std
::
size_t
dim
()
{
return
this
->
get_override
(
"dim"
)();
}
real
min
()
{
return
this
->
get_override
(
"min"
)();
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment