from_python.hpp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright David Abrahams 2002.
  2. // Distributed under the Boost Software License, Version 1.0. (See
  3. // accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef FIND_FROM_PYTHON_DWA2002223_HPP
  6. # define FIND_FROM_PYTHON_DWA2002223_HPP
  7. # include <boost/python/detail/prefix.hpp>
  8. # include <boost/python/converter/rvalue_from_python_data.hpp>
  9. namespace boost { namespace python { namespace converter {
  10. struct registration;
  11. BOOST_PYTHON_DECL void* get_lvalue_from_python(
  12. PyObject* source, registration const&);
  13. BOOST_PYTHON_DECL bool implicit_rvalue_convertible_from_python(
  14. PyObject* source, registration const&);
  15. BOOST_PYTHON_DECL rvalue_from_python_stage1_data rvalue_from_python_stage1(
  16. PyObject* source, registration const&);
  17. BOOST_PYTHON_DECL void* rvalue_from_python_stage2(
  18. PyObject* source, rvalue_from_python_stage1_data&, registration const&);
  19. BOOST_PYTHON_DECL void* rvalue_result_from_python(
  20. PyObject*, rvalue_from_python_stage1_data&);
  21. BOOST_PYTHON_DECL void* reference_result_from_python(PyObject*, registration const&);
  22. BOOST_PYTHON_DECL void* pointer_result_from_python(PyObject*, registration const&);
  23. BOOST_PYTHON_DECL void void_result_from_python(PyObject*);
  24. BOOST_PYTHON_DECL void throw_no_pointer_from_python(PyObject*, registration const&);
  25. BOOST_PYTHON_DECL void throw_no_reference_from_python(PyObject*, registration const&);
  26. }}} // namespace boost::python::converter
  27. #endif // FIND_FROM_PYTHON_DWA2002223_HPP