2015-10-13 00:57:16 +00:00
|
|
|
.. _reference:
|
|
|
|
|
2015-10-13 21:21:54 +00:00
|
|
|
.. warning::
|
|
|
|
|
|
|
|
Please be advised that the reference documentation discussing pybind11
|
|
|
|
internals is currently incomplete. Please refer to the previous sections
|
2015-10-15 16:13:33 +00:00
|
|
|
and the pybind11 header files for the nitty gritty details.
|
2015-10-13 21:21:54 +00:00
|
|
|
|
2015-10-13 00:57:16 +00:00
|
|
|
Reference
|
|
|
|
#########
|
|
|
|
|
2017-08-13 20:25:15 +00:00
|
|
|
.. _macros:
|
|
|
|
|
2015-10-13 00:57:16 +00:00
|
|
|
Macros
|
|
|
|
======
|
|
|
|
|
2017-04-23 23:51:44 +00:00
|
|
|
.. doxygendefine:: PYBIND11_MODULE
|
2015-10-13 00:57:16 +00:00
|
|
|
|
|
|
|
.. _core_types:
|
|
|
|
|
|
|
|
Convenience classes for arbitrary Python types
|
|
|
|
==============================================
|
|
|
|
|
2017-01-31 15:54:08 +00:00
|
|
|
Common member functions
|
|
|
|
-----------------------
|
2015-10-13 00:57:16 +00:00
|
|
|
|
2017-01-31 15:54:08 +00:00
|
|
|
.. doxygenclass:: object_api
|
|
|
|
:members:
|
2015-10-13 00:57:16 +00:00
|
|
|
|
2017-01-31 15:54:08 +00:00
|
|
|
Without reference counting
|
|
|
|
--------------------------
|
2015-10-13 00:57:16 +00:00
|
|
|
|
2017-01-31 15:54:08 +00:00
|
|
|
.. doxygenclass:: handle
|
|
|
|
:members:
|
2015-10-13 00:57:16 +00:00
|
|
|
|
|
|
|
With reference counting
|
|
|
|
-----------------------
|
|
|
|
|
2017-01-31 15:54:08 +00:00
|
|
|
.. doxygenclass:: object
|
|
|
|
:members:
|
2015-12-30 20:03:57 +00:00
|
|
|
|
2017-01-31 15:54:08 +00:00
|
|
|
.. doxygenfunction:: reinterpret_borrow
|
2015-12-30 20:03:57 +00:00
|
|
|
|
2017-01-31 15:54:08 +00:00
|
|
|
.. doxygenfunction:: reinterpret_steal
|
2015-10-13 00:57:16 +00:00
|
|
|
|
|
|
|
Convenience classes for specific Python types
|
|
|
|
=============================================
|
|
|
|
|
2020-09-16 21:15:42 +00:00
|
|
|
.. doxygenclass:: module_
|
2017-01-31 15:54:08 +00:00
|
|
|
:members:
|
2015-10-13 00:57:16 +00:00
|
|
|
|
2017-01-31 15:54:08 +00:00
|
|
|
.. doxygengroup:: pytypes
|
|
|
|
:members:
|
2015-10-13 00:57:16 +00:00
|
|
|
|
|
|
|
.. _extras:
|
|
|
|
|
2017-01-31 15:54:08 +00:00
|
|
|
Passing extra arguments to ``def`` or ``class_``
|
|
|
|
================================================
|
2015-10-13 00:57:16 +00:00
|
|
|
|
2017-01-31 15:54:08 +00:00
|
|
|
.. doxygengroup:: annotations
|
|
|
|
:members:
|
2015-10-13 00:57:16 +00:00
|
|
|
|
2017-03-29 22:20:42 +00:00
|
|
|
Embedding the interpreter
|
|
|
|
=========================
|
|
|
|
|
|
|
|
.. doxygendefine:: PYBIND11_EMBEDDED_MODULE
|
|
|
|
|
|
|
|
.. doxygenfunction:: initialize_interpreter
|
|
|
|
|
|
|
|
.. doxygenfunction:: finalize_interpreter
|
|
|
|
|
|
|
|
.. doxygenclass:: scoped_interpreter
|
|
|
|
|
2017-08-25 00:12:43 +00:00
|
|
|
Redirecting C++ streams
|
|
|
|
=======================
|
|
|
|
|
|
|
|
.. doxygenclass:: scoped_ostream_redirect
|
|
|
|
|
|
|
|
.. doxygenclass:: scoped_estream_redirect
|
|
|
|
|
|
|
|
.. doxygenfunction:: add_ostream_redirect
|
|
|
|
|
2018-07-01 15:47:22 +00:00
|
|
|
Python built-in functions
|
2017-01-31 15:54:08 +00:00
|
|
|
=========================
|
2015-10-13 00:57:16 +00:00
|
|
|
|
2017-01-31 15:54:08 +00:00
|
|
|
.. doxygengroup:: python_builtins
|
|
|
|
:members:
|
2015-10-13 00:57:16 +00:00
|
|
|
|
2019-06-10 20:12:28 +00:00
|
|
|
Inheritance
|
|
|
|
===========
|
|
|
|
|
|
|
|
See :doc:`/classes` and :doc:`/advanced/classes` for more detail.
|
|
|
|
|
2020-09-15 12:56:20 +00:00
|
|
|
.. doxygendefine:: PYBIND11_OVERRIDE
|
2019-06-10 20:12:28 +00:00
|
|
|
|
2020-09-15 12:56:20 +00:00
|
|
|
.. doxygendefine:: PYBIND11_OVERRIDE_PURE
|
2019-06-10 20:12:28 +00:00
|
|
|
|
2020-09-15 12:56:20 +00:00
|
|
|
.. doxygendefine:: PYBIND11_OVERRIDE_NAME
|
2019-06-10 20:12:28 +00:00
|
|
|
|
2020-09-15 12:56:20 +00:00
|
|
|
.. doxygendefine:: PYBIND11_OVERRIDE_PURE_NAME
|
2019-06-10 20:12:28 +00:00
|
|
|
|
2020-09-15 12:56:20 +00:00
|
|
|
.. doxygenfunction:: get_override
|
2019-06-10 20:12:28 +00:00
|
|
|
|
2017-01-31 15:54:08 +00:00
|
|
|
Exceptions
|
|
|
|
==========
|
2015-10-13 00:57:16 +00:00
|
|
|
|
2017-01-31 15:54:08 +00:00
|
|
|
.. doxygenclass:: error_already_set
|
|
|
|
:members:
|
2015-10-13 00:57:16 +00:00
|
|
|
|
2017-01-31 15:54:08 +00:00
|
|
|
.. doxygenclass:: builtin_exception
|
|
|
|
:members:
|
2015-10-13 00:57:16 +00:00
|
|
|
|
|
|
|
|
2017-01-31 15:54:08 +00:00
|
|
|
Literals
|
|
|
|
========
|
2016-06-09 14:10:26 +00:00
|
|
|
|
2017-01-31 15:54:08 +00:00
|
|
|
.. doxygennamespace:: literals
|