33// copyright notice appears in all copies. This software is provided
44// "as is" without express or implied warranty, and with no claim as
55// to its suitability for any purpose.
6- #ifndef PYTYPE_EXTRACT_OBJECT_MANAGER_DWA2002716_HPP
7- # define PYTYPE_EXTRACT_OBJECT_MANAGER_DWA2002716_HPP
6+ #ifndef PYTYPE_OBJECT_MANAGER_TRAITS_DWA2002716_HPP
7+ # define PYTYPE_OBJECT_MANAGER_TRAITS_DWA2002716_HPP
88
99# include < boost/python/converter/pytype_result_from_python.hpp>
1010# include < boost/python/detail/raw_pyobject.hpp>
@@ -15,34 +15,34 @@ namespace boost { namespace python { namespace converter {
1515
1616// Provide a forward declaration as a convenience for clients, who all
1717// need it.
18- template <class T > struct extract_object_manager ;
18+ template <class T > struct object_manager_traits ;
1919
20- // Derive specializations of extract_object_manager from this class
20+ // Derive specializations of object_manager_traits from this class
2121// when T is an object manager for a particular Python type hierarchy.
2222//
2323template <PyTypeObject* pytype, class T >
24- struct pytype_extract_object_manager
24+ struct pytype_object_manager_traits
2525{
2626 BOOST_STATIC_CONSTANT (bool , is_specialized = true );
27- static inline python::detail::new_reference execute (PyObject*);
27+ static inline python::detail::new_reference adopt (PyObject*);
2828 static inline bool check (PyObject* x);
2929};
3030
3131//
3232// implementations
3333//
3434template <PyTypeObject* pytype, class T >
35- inline python::detail::new_reference pytype_extract_object_manager <pytype,T>::execute (PyObject* x)
35+ inline python::detail::new_reference pytype_object_manager_traits <pytype,T>::adopt (PyObject* x)
3636{
3737 return pytype_result_from_python (pytype, x);
3838}
3939
4040template <PyTypeObject* pytype, class T >
41- inline bool pytype_extract_object_manager <pytype,T>::check(PyObject* x)
41+ inline bool pytype_object_manager_traits <pytype,T>::check(PyObject* x)
4242{
4343 return ::PyObject_IsInstance (x, python::upcast<PyObject>(pytype));
4444}
4545
4646}}} // namespace boost::python::converter
4747
48- #endif // PYTYPE_EXTRACT_OBJECT_MANAGER_DWA2002716_HPP
48+ #endif // PYTYPE_OBJECT_MANAGER_TRAITS_DWA2002716_HPP
0 commit comments