Template Function Karana::Core::CallbackRegistryPybind11#
Defined in File pybind11Utils.h
Function Documentation#
-
template<typename Return, typename ...Args>
auto Karana::Core::CallbackRegistryPybind11(const std::string &class_name, py::module &m)# Helper function to create pybind11 bindings for a CallbackRegistry.
- Template Parameters:
Return – The return type of the callback registry functions.
Args – The arguments that the callback registry functions take.
- Parameters:
class_name – The name of the class in Python.
m – The pybind11 module to add the class to.
- Returns:
The pybind11 class for the CallbackRegistry.