8 #include <pybind11/pybind11.h>
15 using namespace pybind11::literals;
19 py::class_<CCShareable, CCShareableHolder<CCShareable>>(cccorelib,
"CCShareable")
24 #ifdef CC_TRACK_ALIVE_SHARED_OBJECTS
25 .def_static(
"GetAliveCount", &CCShareable::GetAliveCount);
void define_CCShareable(py::module &cccorelib)
virtual void link()
Increase counter.
virtual void release()
Decrease counter and deletes object when 0.
virtual unsigned getLinkCount() const
Returns the current link count.