24 #include "pybind11/pybind11.h" 36 namespace typehandling {
45 cls.def(py::init<>());
47 cls.def(
"__eq__", [](Storable const& self, Storable const& other) { return self.equals(other); },
py::class_< Storable, std::shared_ptr< Storable >, table::io::Persistable, StorableHelper<> > PyStorable
void wrapStorable(utils::python::WrapperCollection &wrappers)
void addInheritanceDependency(std::string const &name)
Indicate an external module that provides a base class for a subsequent addType call.
pybind11::module module
The module object passed to the PYBIND11_MODULE block that contains this WrapperCollection.
A base class for objects that can be persisted via afw::table::io Archive classes.
A base class for image defects.
"Trampoline" for Storable to let it be used as a base class in Python.
A helper class for subdividing pybind11 module across multiple translation units (i.e.
PyType wrapType(PyType cls, ClassWrapperCallback function, bool setModuleName=true)
Add a type (class or enum) wrapper, deferring method and other attribute definitions until finish() i...