Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

wrapper.hpp

Introduction
Class override
Class override observer functions
Class template wrapper
Class wrapper observer functions
Example

To wrap a class T such that its virtual functions can be "overridden in Python"—so that the corresponding method of a Python derived class will be called when the virtual function is invoked from C++—you must create a C++ wrapper class derived from

T

that overrides those virtual functions so that they call into Python. This header contains classes that can be used to make that job easier.


PrevUpHomeNext