From 0988f177cf1f3203c1ead16d68cb9be15ee2d2be Mon Sep 17 00:00:00 2001 From: Pierre Fernique Date: Wed, 24 Aug 2016 14:40:30 +0200 Subject: [PATCH] Update ignore structs --- src/py/autowig/boost_python_generator.py | 158 +++++++++++++---------- 1 file changed, 89 insertions(+), 69 deletions(-) diff --git a/src/py/autowig/boost_python_generator.py b/src/py/autowig/boost_python_generator.py index 017c5718..d5becdfc 100644 --- a/src/py/autowig/boost_python_generator.py +++ b/src/py/autowig/boost_python_generator.py @@ -813,75 +813,95 @@ class BoostPythonExportMappingFileProxy(BoostPythonExportBasicFileProxy): set_${cls.hash}_from_python();""")} - IGNORE = {"class ::std::shared_ptr", - "class ::boost::python::scope", - "struct ::boost::python::default_call_policies", - "struct ::boost::python::type_info", - "class ::boost::python::slice", - "class ::boost::python::list", - "class ::boost::python::tuple", - "class ::boost::python::docstring_options", - "class ::boost::python::str", - "struct ::boost::python::instance_holder", - "class ::boost::python::override", - "class ::boost::python::dict", - "struct ::boost::python::pickle_suite", - "class ::boost::python::long_", - "struct ::boost::python::error_already_set", - "class ::boost::python::numeric::array", - "struct ::boost::python::objects::py_function", - "struct ::boost::python::objects::stl_input_iterator_impl", - "struct ::boost::python::objects::class_base", - "struct ::boost::python::objects::py_function_impl_base", - "struct ::boost::python::objects::function", - "struct ::boost::python::objects::enum_base", - "class ::boost::python::detail::kwds_proxy", - "struct ::boost::python::detail::str_base", - "struct ::boost::python::detail::overloads_base", - "struct ::boost::python::detail::signature_element", - "struct ::boost::python::detail::list_base", - "class ::boost::python::detail::call_proxy", - "struct ::boost::python::detail::keyword", - "struct ::boost::python::detail::void_return", - "struct ::boost::python::detail::decref_guard", - "struct ::boost::python::detail::tuple_base", - "struct ::boost::python::detail::pickle_suite_registration", - "class ::boost::python::detail::wrapper_base", - "struct ::boost::python::detail::dict_base", - "struct ::boost::python::detail::write_type_id", - "struct ::boost::python::detail::exception_handler", - "struct ::boost::python::detail::py_func_sig_info", - "class ::boost::python::detail::args_proxy", - "struct ::boost::python::detail::builtin_to_python", - "class ::boost::python::detail::method_result", - "class ::boost::python::detail::slice_base", - "struct ::boost::python::detail::long_base", - "struct ::boost::python::converter::shared_ptr_deleter", - "struct ::boost::python::converter::registration", - "struct ::boost::python::converter::lvalue_from_python_chain", - "struct ::boost::python::converter::rvalue_from_python_stage1_data", - "struct ::boost::python::converter::rvalue_from_python_chain", - "struct ::boost::python::converter::arg_lvalue_from_python_base", - "struct ::boost::python::api::item_policies", - "struct ::boost::python::api::object_base", - "struct ::boost::python::api::const_attribute_policies", - "class ::boost::python::api::slice_nil", - "class ::boost::python::api::object", - "struct ::boost::python::api::slice_policies", - "struct ::boost::python::api::objattribute_policies", - "struct ::boost::python::api::attribute_policies", - "struct ::boost::python::api::const_slice_policies", - "struct ::boost::python::api::const_item_policies", - "struct ::boost::python::api::const_objattribute_policies", - "struct ::boost::python::numeric::aux::array_base", - "struct ::boost::python::numeric::aux::array_object_manager_traits", - "struct ::boost::python::converter::detail::unwind_type_id_helper", - "struct ::boost::python::converter::detail::arg_to_python_base", - "enum ::boost::python::no_init_t", - "enum ::boost::python::tag_t", - "enum ::boost::python::detail::operator_id", - "class ::std::unique_ptr"} - + IGNORE = {"class ::std::shared_ptr", + "class ::std::unique_ptr", + "class ::boost::python::numeric::array", + "struct ::boost::python::api::attribute_policies", + "struct ::boost::python::converter::detail::arg_to_python_base", + "class ::boost::python::detail::call_proxy", + "struct ::boost::python::objects::py_function", + "::boost::python::converter::detail::unwind_type_id_helper::result_type", + "class ::boost::python::override", + "::boost::python::api::const_attribute_policies::key_type", + "::boost::python::detail::yes_convertible", + "struct ::boost::python::type_info", + "::boost::python::type_handle", + "struct ::boost::python::detail::decref_guard", + "struct ::boost::python::detail::keyword", + "struct ::boost::python::api::slice_policies", + "::boost::python::str::base", + "struct ::boost::python::objects::function", + "struct ::boost::python::detail::exception_handler", + "class ::boost::python::detail::args_proxy", + "struct ::boost::python::pickle_suite", + "struct ::boost::python::objects::py_function_impl_base", + "struct ::boost::python::detail::long_base", + "struct ::boost::python::api::object_base", + "::boost::python::objects::class_id", + "struct ::boost::python::converter::shared_ptr_deleter", + "struct ::boost::python::api::const_slice_policies", + "struct ::boost::python::converter::arg_lvalue_from_python_base", + "struct ::boost::python::converter::rvalue_from_python_chain", + "struct ::boost::python::detail::py_func_sig_info", + "struct ::boost::python::detail::pickle_suite_registration", + "struct ::boost::python::objects::class_base", + "::boost::python::type_info::base_id_t", + "struct ::boost::python::api::const_item_policies", + "class ::boost::python::scope", + "::boost::python::slice::base", + "struct ::boost::python::detail::dict_base", + "::boost::python::default_call_policies::argument_package", + "struct ::boost::python::converter::registration", + "::boost::python::detail::void_result_to_python", + "class ::boost::python::docstring_options", + "class ::boost::python::str", + "class ::boost::python::detail::method_result", + "class ::boost::python::api::slice_nil", + "::boost::python::api::const_objattribute_policies::key_type", + "::boost::python::objects::default_iterator_call_policies", + "struct ::boost::python::instance_holder", + "class ::boost::python::tuple", + "enum ::boost::python::detail::operator_id", + "struct ::boost::python::detail::overloads_base", + "struct ::boost::python::error_already_set", + "struct ::boost::python::api::const_attribute_policies", + "struct ::boost::python::detail::list_base", + "::boost::python::ssize_t", + "class ::boost::python::dict", + "class ::boost::python::api::object", + "struct ::boost::python::converter::rvalue_from_python_stage1_data", + "class ::boost::python::detail::slice_base", + "struct ::boost::python::api::objattribute_policies", + "struct ::boost::python::objects::enum_base", + "struct ::boost::python::numeric::aux::array_object_manager_traits", + "::boost::python::long_::base", + "class ::boost::python::detail::kwds_proxy", + "struct ::boost::python::converter::lvalue_from_python_chain", + "struct ::boost::python::detail::builtin_to_python", + "::boost::python::detail::no_convertible", + "class ::boost::python::list", + "::boost::python::numeric::array::base", + "struct ::boost::python::api::const_objattribute_policies", + "struct ::boost::python::detail::signature_element", + "class ::boost::python::long_", + "struct ::boost::python::objects::stl_input_iterator_impl", + "::boost::python::api::const_item_policies::key_type", + "class ::boost::python::slice", + "::boost::python::tuple::base", + "struct ::boost::python::numeric::aux::array_base", + "enum ::boost::python::no_init_t", + "struct ::boost::python::default_call_policies", + "::boost::python::dict::base", + "struct ::boost::python::detail::write_type_id", + "enum ::boost::python::tag_t", + "::boost::python::list::base", + "struct ::boost::python::converter::detail::unwind_type_id_helper", + "class ::boost::python::detail::wrapper_base", + "struct ::boost::python::api::item_policies", + "struct ::boost::python::detail::str_base", + "struct ::boost::python::detail::void_return", + "struct ::boost::python::detail::tuple_base"} + def get_content(self): content = self.HEADER.render(headers = [self._asg[header] for header in self._asg._headers]) #[header for header in self._asg.files(header=True) if header.is_self_contained])