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
|
|
|
|
#########
|
|
|
|
|
|
|
|
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
|
|
|
|
=============================================
|
|
|
|
|
2017-01-31 15:54:08 +00:00
|
|
|
.. doxygenclass:: module
|
|
|
|
: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-01-31 15:54:08 +00:00
|
|
|
Python build-in functions
|
|
|
|
=========================
|
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
|
|
|
|
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
|