pybind11/docs
Wenzel Jakob 86d825f330 Redesigned virtual call mechanism and user-facing syntax (breaking change!)
Sergey Lyskov pointed out that the trampoline mechanism used to override
virtual methods from within Python caused unnecessary overheads when
instantiating the original (i.e. non-extended) class.

This commit removes this inefficiency, but some syntax changes were
needed to achieve this. Projects using this features will need to make a
few changes:

In particular, the example below shows the old syntax to instantiate a
class with a trampoline:

class_<TrampolineClass>("MyClass")
    .alias<MyClass>()
    ....

This is what should be used now:

class_<MyClass, std::unique_ptr<MyClass, TrampolineClass>("MyClass")
    ....

Importantly, the trampoline class is now specified as the *third*
argument to the class_ template, and the alias<..>() call is gone. The
second argument with the unique pointer is simply the default holder
type used by pybind11.
2016-05-26 13:36:24 +02:00
..
_static documentation improvements 2016-04-26 23:48:55 +02:00
advanced.rst Redesigned virtual call mechanism and user-facing syntax (breaking change!) 2016-05-26 13:36:24 +02:00
basics.rst transparent conversion of dense and sparse Eigen types 2016-05-05 21:44:29 +02:00
benchmark.py Much more efficient generation of function signatures, updated docs 2016-01-17 22:31:15 +01:00
benchmark.rst documentation improvements 2016-04-28 15:32:07 +02:00
changelog.rst Redesigned virtual call mechanism and user-facing syntax (breaking change!) 2016-05-26 13:36:24 +02:00
classes.rst minor comment about binding static methods 2016-02-07 17:24:41 +01:00
compiling.rst minor FAQ edits, referenced cppimport project 2016-05-17 10:47:52 +02:00
conf.py documentation improvements 2016-04-28 15:32:07 +02:00
faq.rst minor FAQ edits, referenced cppimport project 2016-05-17 10:47:52 +02:00
index.rst minor FAQ edits, referenced cppimport project 2016-05-17 10:47:52 +02:00
intro.rst convenience wrapper for constructing iterators (fixes #142) 2016-04-14 00:23:37 +02:00
limitations.rst added limitations section 2016-04-07 10:31:01 +02:00
Makefile took a stab at some documentation 2015-10-13 03:16:44 +02:00
pybind11_vs_boost_python1.png documentation improvements 2016-04-28 15:32:07 +02:00
pybind11_vs_boost_python1.svg Much more efficient generation of function signatures, updated docs 2016-01-17 22:31:15 +01:00
pybind11_vs_boost_python2.png documentation improvements 2016-04-28 15:32:07 +02:00
pybind11_vs_boost_python2.svg Much more efficient generation of function signatures, updated docs 2016-01-17 22:31:15 +01:00
pybind11-logo.png Very minor documentation fixes, updated logo 2016-01-17 22:31:15 +01:00
reference.rst general cleanup of the codebase 2016-01-17 22:31:15 +01:00
release.rst nicer type_caster::load() calling conventions 2016-05-15 20:23:27 +02:00