Functions
test_local_bindings Namespace Reference

Functions

def test_cross_module_calls ()
 
def test_duplicate_local ()
 
def test_internal_locals_differ ()
 
def test_load_external ()
 
def test_local_bindings ()
 
def test_mixed_local_global ()
 
def test_nonlocal_failure ()
 
def test_stl_bind_global ()
 
def test_stl_bind_local ()
 
def test_stl_caster_vs_stl_bind (msg)
 

Function Documentation

◆ test_cross_module_calls()

def test_local_bindings.test_cross_module_calls ( )

Definition at line 207 of file test_local_bindings.py.

◆ test_duplicate_local()

def test_local_bindings.test_duplicate_local ( )
Tests expected failure when registering a class twice with py::local in the same module

Definition at line 61 of file test_local_bindings.py.

◆ test_internal_locals_differ()

def test_local_bindings.test_internal_locals_differ ( )
Makes sure the internal local type map differs across the two modules

Definition at line 175 of file test_local_bindings.py.

◆ test_load_external()

def test_local_bindings.test_load_external ( )
Load a `py::module_local` type that's only registered in an external module

Definition at line 7 of file test_local_bindings.py.

◆ test_local_bindings()

def test_local_bindings.test_local_bindings ( )
Tests that duplicate `py::module_local` class bindings work across modules

Definition at line 23 of file test_local_bindings.py.

◆ test_mixed_local_global()

def test_local_bindings.test_mixed_local_global ( )
Local types take precedence over globally registered types: a module with a `module_local`
type can be registered even if the type is already registered globally.  With the module,
casting will go to the local type; outside the module casting goes to the global type.

Definition at line 130 of file test_local_bindings.py.

◆ test_nonlocal_failure()

def test_local_bindings.test_nonlocal_failure ( )
Tests that attempting to register a non-local type in multiple modules fails

Definition at line 50 of file test_local_bindings.py.

◆ test_stl_bind_global()

def test_local_bindings.test_stl_bind_global ( )

Definition at line 108 of file test_local_bindings.py.

◆ test_stl_bind_local()

def test_local_bindings.test_stl_bind_local ( )

Definition at line 74 of file test_local_bindings.py.

◆ test_stl_caster_vs_stl_bind()

def test_local_bindings.test_stl_caster_vs_stl_bind (   msg)
One module uses a generic vector caster from `<pybind11/stl.h>` while the other
exports `std::vector<int>` via `py:bind_vector` and `py::module_local`

Definition at line 183 of file test_local_bindings.py.



gtsam
Author(s):
autogenerated on Tue Jun 25 2024 03:14:38