Scarab  v2.9.1
Project 8 C++ Utility Library
Public Member Functions | List of all members
loader_life_support Class Reference

#include <cast.h>

Public Member Functions

 loader_life_support ()
 A new patient frame is created when a function is entered. More...
 
 ~loader_life_support ()
 ... and destroyed after it returns More...
 
 __attribute__ ((noinline)) static void add_patient(handle h)
 

Detailed Description

A life support system for temporary objects created by type_caster::load(). Adding a patient will keep it alive up until the enclosing function returns.

Definition at line 40 of file cast.h.

Constructor & Destructor Documentation

◆ loader_life_support()

loader_life_support ( )
inline

A new patient frame is created when a function is entered.

Definition at line 43 of file cast.h.

◆ ~loader_life_support()

~loader_life_support ( )
inline

... and destroyed after it returns

Definition at line 48 of file cast.h.

Member Function Documentation

◆ __attribute__()

__attribute__ ( (noinline)  )
inline

This can only be used inside a pybind11-bound function, either by argument_loader at argument preparation time or by py::cast() at execution time.

Definition at line 64 of file cast.h.


The documentation for this class was generated from the following file: