Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
eigenpy
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stack Of Tasks
eigenpy
Commits
5bd8ef10
Verified
Commit
5bd8ef10
authored
5 years ago
by
Justin Carpentier
Browse files
Options
Downloads
Patches
Plain Diff
all: define struct call for common expose
parent
56d706a7
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/eigenpy/angle-axis.hpp
+7
-10
7 additions, 10 deletions
include/eigenpy/angle-axis.hpp
include/eigenpy/expose.hpp
+10
-13
10 additions, 13 deletions
include/eigenpy/expose.hpp
include/eigenpy/quaternion.hpp
+8
-11
8 additions, 11 deletions
include/eigenpy/quaternion.hpp
with
25 additions
and
34 deletions
include/eigenpy/angle-axis.hpp
+
7
−
10
View file @
5bd8ef10
...
@@ -19,18 +19,15 @@ namespace eigenpy
...
@@ -19,18 +19,15 @@ namespace eigenpy
template
<
typename
AngleAxis
>
class
AngleAxisVisitor
;
template
<
typename
AngleAxis
>
class
AngleAxisVisitor
;
namespace
internal
template
<
typename
Scalar
>
struct
call
<
Eigen
::
AngleAxis
<
Scalar
>
>
{
{
t
emplate
<
typename
Scalar
>
t
ypedef
Eigen
::
AngleAxis
<
Scalar
>
AngleAxis
;
st
ruct
call_expose
<
Eigen
::
AngleAxis
<
Scalar
>
>
st
atic
inline
void
expose
()
{
{
typedef
Eigen
::
AngleAxis
<
Scalar
>
type
;
AngleAxisVisitor
<
AngleAxis
>::
expose
();
static
inline
void
run
()
}
{
};
AngleAxisVisitor
<
type
>::
expose
();
}
};
}
// namespace internal
template
<
typename
AngleAxis
>
template
<
typename
AngleAxis
>
class
AngleAxisVisitor
class
AngleAxisVisitor
...
...
This diff is collapsed.
Click to expand it.
include/eigenpy/expose.hpp
+
10
−
13
View file @
5bd8ef10
/*
/*
* Copyright 2019
,
INRIA
* Copyright 2019 INRIA
*/
*/
#ifndef __eigenpy_expose_hpp__
#ifndef __eigenpy_expose_hpp__
...
@@ -9,18 +9,15 @@
...
@@ -9,18 +9,15 @@
namespace
eigenpy
namespace
eigenpy
{
{
namespace
internal
///
/// \brief Allows a template specialization.
///
template
<
typename
T
>
struct
call
{
{
///
static
inline
void
expose
()
{
T
::
expose
();
}
/// \brief Allows a template specialization.
};
///
template
<
typename
T
>
struct
call_expose
{
static
inline
void
run
()
{
T
::
expose
();
}
};
}
// namespace internal
///
///
/// \brief Call the expose function of a given type T.
/// \brief Call the expose function of a given type T.
///
///
...
@@ -28,7 +25,7 @@ namespace eigenpy
...
@@ -28,7 +25,7 @@ namespace eigenpy
inline
void
expose
()
inline
void
expose
()
{
{
if
(
!
register_symbolic_link_to_registered_type
<
T
>
())
if
(
!
register_symbolic_link_to_registered_type
<
T
>
())
internal
::
call_expose
<
T
>::
run
();
call
<
T
>::
expose
();
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
include/eigenpy/quaternion.hpp
+
8
−
11
View file @
5bd8ef10
...
@@ -31,19 +31,16 @@ namespace eigenpy
...
@@ -31,19 +31,16 @@ namespace eigenpy
template
<
typename
QuaternionDerived
>
class
QuaternionVisitor
;
template
<
typename
QuaternionDerived
>
class
QuaternionVisitor
;
namespace
internal
template
<
typename
Scalar
,
int
Options
>
struct
call
<
Eigen
::
Quaternion
<
Scalar
,
Options
>
>
{
{
t
emplate
<
typename
Scalar
,
int
Options
>
t
ypedef
Eigen
::
Quaternion
<
Scalar
,
Options
>
Quaternion
;
st
ruct
call_expose
<
Eigen
::
Quaternion
<
Scalar
,
Options
>
>
st
atic
inline
void
expose
()
{
{
typedef
Eigen
::
Quaternion
<
Scalar
,
Options
>
type
;
QuaternionVisitor
<
Quaternion
>::
expose
();
static
inline
void
run
()
}
{
};
QuaternionVisitor
<
type
>::
expose
();
}
};
}
// namespace internal
template
<
typename
Quaternion
>
template
<
typename
Quaternion
>
class
QuaternionVisitor
class
QuaternionVisitor
:
public
bp
::
def_visitor
<
QuaternionVisitor
<
Quaternion
>
>
:
public
bp
::
def_visitor
<
QuaternionVisitor
<
Quaternion
>
>
...
...
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