Directory: | ./ |
---|---|
File: | src/dynamic_graph/sot/core/feature_generic/python-module-py.cc |
Date: | 2024-08-13 12:13:25 |
Exec | Total | Coverage | |
---|---|---|---|
Lines: | 7 | 7 | 100.0% |
Branches: | 3 | 6 | 50.0% |
Line | Branch | Exec | Source |
---|---|---|---|
1 | // Copyright (C) 2008-2014 LAAS-CNRS, JRL AIST-CNRS. | ||
2 | // | ||
3 | // This file is part of jrl-cmakemodules. | ||
4 | // jrl-mathtools is free software: you can redistribute it and/or modify | ||
5 | // it under the terms of the GNU Lesser General Public License as published by | ||
6 | // the Free Software Foundation, either version 3 of the License, or | ||
7 | // (at your option) any later version. | ||
8 | // | ||
9 | // jrl-mathtools is distributed in the hope that it will be useful, | ||
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | // GNU Lesser General Public License for more details. | ||
13 | // You should have received a copy of the GNU Lesser General Public License | ||
14 | // along with jrl-mathtools. If not, see <http://www.gnu.org/licenses/>. | ||
15 | |||
16 | #include "dynamic-graph/python/module.hh" | ||
17 | |||
18 | #include "/root/robotpkg/wip/py-sot-core-v3/work/sot-core-4.11.8/src/feature/feature-generic-python.h" | ||
19 | |||
20 | struct register_entity | ||
21 | { | ||
22 | 1 | template<typename T> inline void operator()(boost::type<T>) const | |
23 | { | ||
24 | 1 | dynamicgraph::python::exposeEntity<T>(); | |
25 | 1 | } | |
26 | }; | ||
27 | |||
28 |
2/4✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 1 times.
✗ Branch 4 not taken.
|
4 | BOOST_PYTHON_MODULE(wrap) |
29 | { | ||
30 |
1/2✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
|
2 | bp::import("dynamic_graph"); |
31 | 2 | boost::mpl::for_each<entities_t, boost::type<boost::mpl::_> >(register_entity()); | |
32 | 2 | } | |
33 |