Go to the documentation of this file.
5 #ifndef __pinocchio_python_utils_macros_hpp__
6 #define __pinocchio_python_utils_macros_hpp__
8 #define PINOCCHIO_ADD_PROPERTY(STRUCT_NAME, PROPERTY_NAME, DOC) \
9 def_readwrite(#PROPERTY_NAME, &STRUCT_NAME::PROPERTY_NAME, DOC)
11 #define PINOCCHIO_ADD_PROPERTY_READONLY(STRUCT_NAME, PROPERTY_NAME, DOC) \
12 def_readonly(#PROPERTY_NAME, &STRUCT_NAME::PROPERTY_NAME, DOC)
14 #define PINOCCHIO_ADD_PROPERTY_READONLY_BYVALUE(STRUCT_NAME, PROPERTY_NAME, DOC) \
18 &STRUCT_NAME::PROPERTY_NAME, \
19 ::boost::python::return_value_policy<::boost::python::return_by_value>()), \
22 #define PINOCCHIO_ADD_STATIC_PROPERTY_READONLY_BYVALUE(STRUCT_NAME, PROPERTY_NAME, DOC) \
23 add_static_property( \
26 &STRUCT_NAME::PROPERTY_NAME, \
27 ::boost::python::return_value_policy<::boost::python::return_by_value>()), \
30 #endif // ifndef __pinocchio_python_utils_macros_hpp__
pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:11