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

Function add_patient

include/pybind11/detail/class.h:420–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418}
419
420inline void add_patient(PyObject *nurse, PyObject *patient) {
421 auto *instance = reinterpret_cast<detail::instance *>(nurse);
422 instance->has_patients = true;
423 Py_INCREF(patient);
424
425 with_internals([&](internals &internals) { internals.patients[nurse].push_back(patient); });
426}
427
428inline void clear_patients(PyObject *self) {
429 auto *instance = reinterpret_cast<detail::instance *>(self);

Callers 4

loadMethod · 0.85
keep_alive_implFunction · 0.85
loadMethod · 0.85
load_implMethod · 0.85

Calls 2

with_internalsFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected