Public Member Functions | Static 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...
 

Static Public Member Functions

static PYBIND11_NOINLINE 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 44 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 47 of file cast.h.

loader_life_support::~loader_life_support ( )
inline

... and destroyed after it returns

Definition at line 52 of file cast.h.

Member Function Documentation

static PYBIND11_NOINLINE void loader_life_support::add_patient ( handle  h)
inlinestatic

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 68 of file cast.h.


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


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:48