Template Function Karana::Core::CallbackRegistryPybind11

Template Function Karana::Core::CallbackRegistryPybind11#

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.