pytutorial/PyBind11/basics/PyMyModuleCPU.cpp
David Rotermund 0f74e9bb19
Add files via upload
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
2024-01-03 14:47:16 +01:00

14 lines
367 B
C++

#include <pybind11/pybind11.h>
#include "MyModuleCPU.h"
namespace py = pybind11;
PYBIND11_MODULE(PyMyModuleCPU, m)
{
m.doc() = "Example Module";
py::class_<MyModule>(m, "MyModule")
.def(py::init<>())
.def("PutStuffIn", &MyModule::PutStuffIn)
.def("DoStuff", &MyModule::DoStuff)
.def("GetStuffOut", &MyModule::GetStuffOut);
}