MCPcopy Create free account
hub / github.com/pybind/pybind11 / register_instance

Function register_instance

include/pybind11/detail/class.h:369–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369inline void register_instance(instance *self, void *valptr, const type_info *tinfo) {
370 register_instance_impl(valptr, self);
371 if (!tinfo->simple_ancestors) {
372 traverse_offset_bases(valptr, tinfo, self, register_instance_impl);
373 }
374}
375
376inline bool deregister_instance(instance *self, void *valptr, const type_info *tinfo) {
377 bool ret = deregister_instance_impl(valptr, self);

Callers 1

init_instanceMethod · 0.85

Calls 2

register_instance_implFunction · 0.85
traverse_offset_basesFunction · 0.85

Tested by

no test coverage detected