python/fwd.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2022 CNRS INRIA
3 //
4 
5 #ifndef HPP_FCL_PYTHON_FWD_HH
6 #define HPP_FCL_PYTHON_FWD_HH
7 
8 #include <hpp/fcl/fwd.hh>
9 #ifdef HPP_FCL_HAS_DOXYGEN_AUTODOC
10 namespace doxygen {
11 using hpp::fcl::shared_ptr;
12 }
13 #endif
14 
15 // Silence a warning about a deprecated use of boost bind by boost python
16 // at least fo boost 1.73 to 1.75
17 // ref. https://github.com/stack-of-tasks/tsid/issues/128
18 #define BOOST_BIND_GLOBAL_PLACEHOLDERS
19 #include <boost/python.hpp>
20 #include <boost/python/suite/indexing/vector_indexing_suite.hpp>
21 #undef BOOST_BIND_GLOBAL_PLACEHOLDERS
22 
23 #include "../doc/python/doxygen.hh"
24 #include "../doc/python/doxygen-boost.hh"
25 
26 namespace bp = boost::python;
27 namespace dv = doxygen::visitor;
28 
29 #define DEF_RW_CLASS_ATTRIB(CLASS, ATTRIB) \
30  def_readwrite(#ATTRIB, &CLASS::ATTRIB, \
31  doxygen::class_attrib_doc<CLASS>(#ATTRIB))
32 #define DEF_RO_CLASS_ATTRIB(CLASS, ATTRIB) \
33  def_readonly(#ATTRIB, &CLASS::ATTRIB, \
34  doxygen::class_attrib_doc<CLASS>(#ATTRIB))
35 #define DEF_CLASS_FUNC(CLASS, ATTRIB) \
36  def(dv::member_func(#ATTRIB, &CLASS::ATTRIB))
37 #define DEF_CLASS_FUNC2(CLASS, ATTRIB, policy) \
38  def(#ATTRIB, &CLASS::ATTRIB, doxygen::member_func_doc(&CLASS::ATTRIB), policy)
39 
40 #endif // ifndef HPP_FCL_PYTHON_FWD_HH
boost::python
doxygen::visitor
Definition: doxygen-boost.hh:12
doxygen
Definition: doxygen-boost.hh:10
fwd.hh


hpp-fcl
Author(s):
autogenerated on Fri Aug 2 2024 02:45:13