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 209 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 63 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 177 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 9 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 25 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 132 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 52 of file test_local_bindings.py.

◆ test_stl_bind_global()

def test_local_bindings.test_stl_bind_global ( )

Definition at line 110 of file test_local_bindings.py.

◆ test_stl_bind_local()

def test_local_bindings.test_stl_bind_local ( )

Definition at line 76 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 185 of file test_local_bindings.py.



gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:53:19