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
Stack Of Tasks
eigenpy
Commits
422877f4
Verified
Commit
422877f4
authored
Jun 20, 2019
by
Justin Carpentier
Browse files
core: add function to easy expose a type
parent
3917a9cf
Changes
3
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
422877f4
...
...
@@ -82,6 +82,7 @@ SET(${PROJECT_NAME}_HEADERS
${${
PROJECT_NAME
}
_SOLVERS_HEADERS
}
include/eigenpy/eigenpy.hpp
include/eigenpy/exception.hpp
include/eigenpy/expose.hpp
include/eigenpy/details.hpp
include/eigenpy/fwd.hpp
include/eigenpy/map.hpp
...
...
include/eigenpy/expose.hpp
0 → 100644
View file @
422877f4
/*
* Copyright 2019, INRIA
*/
#ifndef __eigenpy_expose_hpp__
#define __eigenpy_expose_hpp__
#include
"eigenpy/registration.hpp"
namespace
eigenpy
{
namespace
internal
{
///
/// \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.
///
template
<
typename
T
>
inline
void
expose
()
{
if
(
not
register_symbolic_link_to_registered_type
<
T
>
())
internal
::
call_expose
<
T
>::
run
();
}
}
#endif // ifndef __eigenpy_expose_hpp__
include/eigenpy/fwd.hpp
View file @
422877f4
...
...
@@ -26,5 +26,7 @@
#define EIGENPY_DEFAULT_ALIGNMENT_VALUE Eigen::Unaligned
#endif
#include
"eigenpy/expose.hpp"
#endif // ifndef __eigenpy_fwd_hpp__
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