unittest
multiple_registration.cpp
Go to the documentation of this file.
1
#include "
eigenpy/registration.hpp
"
2
#include <cstdio>
3
4
namespace
bp
=
boost::python
;
5
6
class
X
{
7
public
:
8
X
() {}
9
void
operator()
() { printf(
"DOOT\n"
); }
10
};
11
12
class
X_wrapper
:
public
X
, bp::wrapper<X> {
13
public
:
14
static
void
expose
() {
15
if
(!eigenpy::register_symbolic_link_to_registered_type<X>()) {
16
bp::class_<X>(
"X"
, bp::init<>()).def(
"__call__"
, &X::operator());
17
}
18
}
19
};
20
21
BOOST_PYTHON_MODULE
(multiple_registration) {
22
X_wrapper::expose
();
23
X_wrapper::expose
();
24
X_wrapper::expose
();
25
X_wrapper::expose
();
26
X_wrapper::expose
();
27
X_wrapper::expose
();
28
}
boost::python
Definition:
alignment.hpp:49
registration.hpp
BOOST_PYTHON_MODULE
BOOST_PYTHON_MODULE(multiple_registration)
Definition:
multiple_registration.cpp:21
X::operator()
void operator()()
Definition:
multiple_registration.cpp:9
X_wrapper::expose
static void expose()
Definition:
multiple_registration.cpp:14
X_wrapper
Definition:
multiple_registration.cpp:12
X::X
X()
Definition:
multiple_registration.cpp:8
X
Definition:
deprecation_policy.cpp:19
eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Sat Nov 2 2024 02:14:45