Library of Assembled Shared Sources
lass::python::PyExportTraitsCallback< CallbackType, PyCallbackImplType, ExportTraits > Struct Template Reference

Helper class to implement PyExportTraits for Callback types. More...

#include <callback_python.h>

Inheritance diagram for lass::python::PyExportTraitsCallback< CallbackType, PyCallbackImplType, ExportTraits >:

Detailed Description

template<typename CallbackType, typename PyCallbackImplType, typename ExportTraits>
struct lass::python::PyExportTraitsCallback< CallbackType, PyCallbackImplType, ExportTraits >

Helper class to implement PyExportTraits for Callback types.

Only the get() method is implemented, which allows you to use callbacks as C++ function parameters, but not als return values. Returning a callback from C++ to Python is not supported.

For full bidirectional support, use std::function instead.

Definition at line 189 of file callback_python.h.


The documentation for this struct was generated from the following file: