1 #ifndef CANCELABLE_PYBIND_HH_ 2 #define CANCELABLE_PYBIND_HH_ 12 std::list< std::string> all_members;
14 all_members.push_back(
"Cancelable" );
16 .def( pybind11::init< >() )
Wrapper for Python extension modules.
bool is_canceled() const
check canceled state
void reset_cancel()
reset to non-canceled state
void cancel(int a_code=0)
asynchronous cancel function
std::list< std::string > export_cancelable(pybind11::module &mod)
bool typename Extra class_ & def(const char *name_, Func &&f, const Extra &... extra)